cancel
Showing results for 
Search instead for 
Did you mean: 

Work flow Problem in Updating Central Contracts in SRM

Former Member
0 Kudos

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!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Naveen,

I want the change version to be auto approved. My PCW auto approves the contracts.

So either of the ways is ok for me.

Former Member
0 Kudos

Dear Karuna,

Did you find the solution for this issue? If yes, could you please share.

Thanks in advance.

Muzamil