back to all posts

genil_model_browser

Published in sap-crm-2007 by max.favilli, 04/10/2006 (edited on 01/02/2015 ) 0

Let’s suppose you are customizing CRM_IC bsp application (better known as ICWC); sometimes you have an entity (CL_CRM_BOL_ENTITY) you obtained from CuCoBDC (maybe you did
me->get_custom_controller( controller_id = ‘CuCoBDC’ )) like “BTOrder”; in debug you can check the entity kind navigating inside CONTAINER_PROXY (check DATA_REF).
You have an entity, but you need attributes of another entity, which is related to yours in GENIL (transaction genil_model_browser).

Using the following code:

TRY.
new_entity = entity_followup->get_related_entity(
iv_relation_name = ‘BTOrderHeader’
).
CATCH cx_crm_genil_model_error.
RETURN.
ENDTRY.

You obtain a new exciting entity, the attribute list of this entity could be more interesting (as such as this example you could not locate GUID in BTOrder but you easily find it in BTOrderHeader), a complete list is shown in GENIL.

Join the discussion

OR
{{newComment.error.msg}}

Comments

No comments yet! Be the first to comment!