cancel
Showing results for 
Search instead for 
Did you mean: 

[cProjects] Retrieve Web Dynpro object as instance

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Let's say I am in one of the Web Dynpro components DPR_xxxx.

What is the best way to retrieve a selected object, not as a WD context node, but as a reference to its belonging class (CL_DPR_PARTICIPANT, ...) ?

Should we use the singletons such as : cl_dpr_session_state or cl_dpr_api_core_service_mngr or... ?

Thanks in advance.

Best regards,

Guillaume

Accepted Solutions (1)

Accepted Solutions (1)

former_member201206
Active Contributor
0 Kudos

Hi Guillaume,

There is no 1 : 1 relationship between them, examples: DPR_TREE, DPR_GANTT etc. Some of them like DPR_DET_DATA_PROJECT_O refers to the project, if you have the guid, you can use CL_DPR_APPL_OBJECT_MAPPER method GET_APPLICATION_OBJECT_BY_GUID to get the corresponding appl. object.

Kind regards,

Zhenbo

Answers (0)