on ‎2019 Jun 18 3:13 PM
Hi Experts,
Currently i am updating Contract data through following FM's from a Zreport.
Getting Contract details using BBP_PROCDOC_GETDETAIL and calling update method as below.
CALL FUNCTION 'BBP_PD_CTR_UPDATE'
EXPORTING
i_save = 'X'
i_park = ' '
i_header = ls_pd_header_u
it_conditions = lt_chg_conditions
iv_with_change_approval = 'X'
IMPORTING
e_changed = lv_changed
es_header = e_header
TABLES
i_item = lt_chg_item
i_longtext = i_longtext
i_partner = lt_chg_partner
i_orgdata = lt_chg_orgdata
e_messages = e_messages
i_dis = lt_chg_dis.
and then calling BBP_PD_CTR_SAVE with the GUID imported by the previous function module.
CALL FUNCTION 'BBP_PD_CTR_SAVE'
EXPORTING
iv_header_guid = e_header-guid.
Contract changed data is updated successfully in BBP_PD Transaction. change version also created and it went to "AWAITING APPROVAL" status. But the Work Item and Approver is not picked up. I need to generate the work Item and Approver for contract.
When I open the contract in portal, I can see error messages "Cannot get process info; function BBP_PDH_WFL_APPROVAL_SIMULATE throws exception Workflow Not Found" and "PDO Layer error". When I check in Approval tab there is no work item created for change version of Contract.
we are using SRM 7.02
I am Very new to SAP SRM, Could you please help me out.
Thanks in Advance a lot.
Regards,
S.Prabhakar.
Request clarification before answering.
Hi Shankar,'Did u resolved this issue ? can you share answer ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurent ,
Thanks for your reply.
Now I am using BBP_PD_CTR_CREATE Bapi for create the contract . In this case my evaluation id, process schema is picking from SPRO level. Based this process schema we developed badi to pick who is approver from Ztable. It is working fine.
For change we are using BBP_PD_CTR_UPDATE Using in this case my Evaluation I'd and process schema is not picking from SPRO level. Is it any badi or classes to write my logic to trigger work flow and pick approver from my Ztable.
Please suggest if any code changes need to do or any SPRO level Evaluation id, process schema level need to do .
Thanks a lot in advance.
Regards,
S.Prabhakar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
use method CREATE_CTR_ADV_INSTANCE of class /SAPSRM/CL_PDO_BO_CTR_ADV to create your contract.
For update, try method /SAPSRM/IF_PDO_BO_CTR~UPDATE_ENTIRE_CONTRACT from class /SAPSRM/CL_PDO_BO_CTR, then do a SUBMIT_UPDATE.
Regards.
Laurent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
Can you please suggest me on this issue.
Where I need to check to resolve the issue. Contract change level status changing to Awaiting approval but work item and Approver id is not picking. Please help on this.
Regards,
S.prabhakar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.