Quantcast
Channel: SCN : Discussion List - Supplier Relationship Management (SAP SRM)
Viewing all articles
Browse latest Browse all 3184

Work flow Problem in Updating Central Contracts in SRM

$
0
0

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


Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>