cancel
Showing results for 
Search instead for 
Did you mean: 

To debug the PO Transfer FM BBP_PROCDOC_TRANSFER

Former Member
0 Kudos

Hi ,

I am creating a shopping cart in SRM and this gets approved via a workflow automatically and a PO is generated .

This PO is transfered to a backend system . I want to make some change in PO before it is transfered to the backend. The problem is I am not able to reach this FM in debug mode at all . I have added external breakpoints . I am able to see some abap screens while I check and order the cart , But after the order is complete , it directly saves a shopping cart and approves the SC and creates  the PO . How can I debug this ? Please help.

Regards,

Sunitha

Accepted Solutions (1)

Accepted Solutions (1)

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

You can create a shopping cart and put it in saved status.

Then, take its header GUID and use the FM BBP_PD_SC_TRANSFER to debug its transfer.

If it is classic scenario, you can debug through this FM till reach the badi BBP_CREATE_BE_PO_NEW, which will allow you to perform changes in PO before transferring it to ECC.

Code has some comments, so you can find the correct steps.

If you are using extended classic scenario, you can set a breakpoint in BBP_PD_PO_CREATE. Within this FM, bbp_doc_change_badi for PO is called, where you can perform your changes.

Regards,

Ricardo

Former Member
0 Kudos

Hi

Set the parameter 'FBGENDAT' = X for the RFC user of the backend

(SU01).

- Start the report 'FBGENDAT' in the backend with the parameter value

'BAPI_PO_CREATE1' and Mode 'A'.

- Create the SC and approve it

The test data will be created automatically

- Check in SE37 with FM 'BAPI_PO_CREATE1' under test directory to check test data is really available in the backend.

After this, FBGENDAT should be deactivated.

In this way you will stop the PO getting replicated to backend but your PO will be available in FM

Now you have the option to change the PO

Regards

Trinath

Answers (0)