cancel
Showing results for 
Search instead for 
Did you mean: 

How to get access to attribute values from core or entity manager ?

h_senden2
Active Contributor
0 Kudos

Hi,

in a bapi i can access the core object for an Opportunity. Also i can get the entitymanager with all related entities.

During debugging i can read the attribute values of all entities for the entity manager.

But i cannot access the various entities during processing, because the attributes are private, or the relevant methods are private. So i cannot use them.

What is a way to access the attribute values ?

CORE --> ENTITY_MANAGER --> ENTITY_LIST --> ENTITY --> ATTRIBUTE --> VALUE

regards,

Hans

Accepted Solutions (1)

Accepted Solutions (1)

former_member189678
Active Contributor
0 Kudos

From cl_crm_bol_core you can get the instance of the root object by using the method GET_ENTITY. After getting the entity you have access to related entities, incase you want to get the data from there.

Rg,

Harshit

h_senden2
Active Contributor
0 Kudos

Problem solved.

Core --> Root object --> by using relationships get the entities

Thanx for the suggestions,

Hans

Answers (1)

Answers (1)

h_senden2
Active Contributor
0 Kudos

Any suggestions ?

I have an instance of CL_CRM_BOL_CORE and CL_CRM_BOL_ENTITY_MANAGER, but i cannot get access to the CL_CRM_BOL_ENTITY instances, because the methods and attributes i want to use are private.

regards,

Hans

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

Check the GET_***_Entity(ies) methods in the cl_crm_bol_core class. These methods accept either the GUID with the bol object name or the object ids with the bol object name. For generating object id from GUID/key structure, use CL_CRM_GENIL_CONTAINER_TOOLS=>BUILD_OBJECT_ID.

Regards,

Arun Prakash