on 07-21-2015 4:10 PM
Dear experts,
We have the need to replicate the behaviour of the "Include Role" standard functionality.
We looked for a BAPI but we could not find anything useful.
We need a piece of code that allows to retrieve a Role from a Template and copy it into a Project, including the already staffed resources.
We have SAP Portfolio and Project Management 5.0
Thank you inadvance for your answer.
Laura
Dear Laura,
you can use BAPI BAPI_BUS2178_GET_DETAIL to receive the role details of a template. Then
you can use the BAPI BAPI_BUS2177_CREATE to create the role and BAPI BAPI_BUS2177_STAFFING_ADD to add some staffings.
Best regards,
Judith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Laura,
below you can find the steps to find the GUID for the role in the project-template.
You have a Project template ID: ZJGA_ROLE1 where you can find the project GUID in table
DPR_PROJECT.
External ID: ZJGA_ROLE1
GUID: 6CAE8B774ED61ED4BDFD601A4AFEE92F
The role is available in table CGPL_ENTITY for the project-guid.
Table: CGPL_ENTITY
Project_Guid: 6CAE8B774ED61ED4BDFD601A4AFEE92F
Object_type: MTG
The result is the following:
GUID: 6CAE8B774ED61ED4BDFD61EBCC526931
EXTERNAL_ID: 180000000000000047732015
OBJECT_TYPE: MTG
PROJECT_GUID: 6CAE8B774ED61ED4BDFD601A4AFEE92F
Then you can start BAPI BAPI_BUS2178_GET_DETAIL with PROJECTROLE_TMPL_GUID = 6CAE8B774ED61ED4BDFD61EBCC526931.
Best regards,
Judith
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.