Skip to Content

Update contract /PO using BBP_PD_UPDATE FMs

Hi Experts,

I am using BBP_PD_PO_UPDATE and BBP_PD_CTR_UPDATE to change existing lines / add new lines to contracts and POs. We have activated process controlled workflow for both documents. For POs there is a approval workflow and for contracts it automatic workflow by system. The FMs work absolutely fine. When I use these FMs to change / add new items I am seeing a change version created in BBP_PD and change version is in awaiting approval. But the problem is I don't see any WF instance or workitem related to the WF. If I do simillar changes using webui I see WF instance for change version in BBP_PD. So it is cleat that there is nothing wrong with WF setup. There is some issue with the way updating / Saving is happening using these FMs.

The call stack i am following is

- BBP_PD_CTR_UPDATE with i_park = 'X' and i_save = 'X'

- BBP_PD_CTR_SAVE

- COMMIT WORK AND WAIT

same call stack as above is followed for POs as well with PO related FMs

thanks,

sankar.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 29, 2014 at 09:53 AM

    Alternative, you can try to use class /SAPSRM/CL_WF_PROCESS_MANAGER to start worklfow manually.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 29, 2014 at 09:37 AM

    Hi Sankar,

    SAP moved some WF logic to *ADV classes. You should use new OO approach to have it working the right way

    Regards

    Konstantin

    Add comment
    10|10000 characters needed characters exceeded