on 08-25-2015 11:24 AM
Hi Team,
Change version is not getting created after updation of SRM contract. I have used below BAPI to updated contract price and MPN.
BBP_PROCDOC_GET_CHANGE_VERSION
BBP_PD_CTR_GETDETAIL
BBP_PD_CTR_UPDATE
BAPI_TRANSACTION_COMMIT
fields are getting updating in BBP_PD and SRM portal as well but change version is not getting created.
Please can you help us to resolve this issue.
Thanks in advance
Dipak
Issue is resolved now..
After contract SAVE and Commit BAPI..need to call release contract code...
now change version is getting created.
TRY.
* Instance of ctr to release
* lv_o_pdo_ctr
lo_ctr_adv_instance = /sapsrm/cl_pdo_factory_ctr_adv=>get_instance( iv_header_guid = ls_upd_header-guid
iv_mode = 'EDIT' ). " 'EDIT'
* release ctr
lo_message_handler = NEW /sapsrm/cl_pdo_msg( ).
lo_ctr_adv_instance->/sapsrm/if_pdo_bo_ctr~release( CHANGING co_message_handler = lo_message_handler ).
*
* Read messages
CLEAR lt_messages.
lo_message_handler->get_messages( IMPORTING et_messages = lt_messages ).
*
CATCH cx_root INTO lo_exception.
* ERROR!
ENDTRY.
CALL FUNCTION 'BBP_PROCDOC_RESET_BUFFER'.
COMMIT WORK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dipak ,
Have you done any custom code in order to update the contract changes on the same version rather than creating a new version . I am asking this because many times when change version is created for a contract then it gives problem while releasing the contract and gives error . We had this problem and sap suggested the above mentioned idea in order to release the contract without error . Moreover we used to delete the change version and then again make some changes in the contract and then release it without saving . Please get it checked with the help of a abaper .
BR
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Appreciate your help....
Thanks
Dipak..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
check blog below if it can help:
Update PO using BBP_PD_PO_UPDATE and trigger Process-Controlled Workflow
This is for PO, but process should be the same for contracts.
Regards.
Laurent.
User | Count |
---|---|
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.