cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to read parent project

Former Member
0 Kudos

Hi Experts,

on the 'Assigned Projects' tab, sub-projects can be assigned to a parent-project.

Via BAPI BAPI_BUS2172_GET_SUBOBJECTS it is possible to read the sub-projects of a project.

Is there a way to read the parent-project of a sub-project via BAPI too?

Best regards,

Patrik

Accepted Solutions (1)

Accepted Solutions (1)

former_member201206
Active Contributor
0 Kudos

Hi Patrik

To get the paraent project (actually the parent task) you can use

BAPI_BUS2172_GET_MASTER_TASKS

As far as I see the document of BAPI_BUS2172_GET_SUBOBJECTS, it is not possible to get the sub-project. Maybe you can do a test.

Kind regards,

Zhenbo

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,guys

Here is a table DPR_OBJLINK_MPM.

May help you.

Happy day!

Audi Yan

Former Member
0 Kudos

Hi Zhenbo,

when I call BAPI_BUS2172_GET_SUBOBJECTS with PROJECT_DEFINITION_GUID =

<parent project guid> and 'DPP' in IT_SUBOJECT_TYPE, I get the GUIDs of the two sub-projects which I have assigned within the "Assigned Projects" tab of the parent project.

However, when I call BAPI_BUS2172_GET_MASTER_TASKS with PROJECT_DEFINITION_GUID = <sub-project guid>, I do not get a result.

Any ideas?

Thank you and best regards,

Patrik