Skip to Content
avatar image
Former Member

Work flow Problem in Updating Central Contracts in SRM

Hi Experts,

Currently i am updating Tolerance limit in Contract Header 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_header = ls_header_upd
i_save = 'X'
iv_with_change_approval = 'X'
IMPORTING
e_changed = lv_changed
es_header = ls_new_header
TABLES
e_messages = lt_messages
i_tol = lt_tol.

and then calling BBP_PD_CTR_SAVE with the GUID imported by the previous function module.

CALL FUNCTION 'BBP_PD_CTR_SAVE'
EXPORTING
iv_usertype = 'E'
iv_header_guid = ls_new_header-guid .

Contract Header data changes Successfully !!! But problem is, change version is getting created with status 'Awaiting approval'.

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.

I want the change version to be approved after execution of report. we are using SRM 7.0

Thanks a lot in advance!!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 04, 2013 at 03:21 PM

    Hi Karuna,

    Do you want the approval to occur or not after the execution of your report? I mean do you want the system to automatically approve the contract or do you want your process schema (assuming you are using PCW ) to be triggered to determine the approvers?

    Regards,

    Naveen

    Add comment
    10|10000 characters needed characters exceeded