on 07-05-2013 8:14 AM
Hello,
Is any BAdI or enahncement available for staffing a role?
We have a requirement to staff the creator of project as the PM during project creation. There is also a requirement to staff based on location.
We have tried using BAPI but it tries to lock the project which is being edited.
Thanks,
Anuradha
Hi Anuradha,
I am not sure but you can try this.
Use BAdI DPR_EVENTS (create an implementation)
Filter Method: ON_IF_DPR_COMMON_CREATED
get the project GUID
get BP GUID .
get Project Role GUID
in IS_STAFFINGLINK-PARTNER_GUID add the GUID of the BP
Make sure you have set IS_STAFFINGLINK_X-PARTNER_GUID = 'X'
Regards,
Runjhun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anuradha,
there is no explicit BAdI for that purpose.
You may use the DPR_EVENTS as Runjhun mentioned.
Import is, not use the BAPI rahter use call method
lr_bupa_link = lr_role->mr_bupa_links->add( lv_partner_guid ).
Using the guid of the created role (PM role) to determine the lr_role. The lv_partner_guid refers the BP guid of the project creator.
Using BAPI call within the standard process is really very 'dirty'.
Kind regards,
Zhenbo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.