cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug the Shopping cart to Purchase order flow

0 Kudos

Hi Gurus

I am using Extended classic senario in SRM 7.0 and ECC 6.0, the process is once shopping cart is approved gets converted into the PO. I need to debug the flow of data from shopping cart to purchase order. Kindly help me on how to debug the flow.

Thanks in Advance.

Regards,

Kamal

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Kamal,

For Extended classic scenario the BADI used for PO is BBP_ECS_PO_OUT_BADI.

Regards,

Naveen

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

You can create a saved shopping cart.

Then, take its header GUID and provide it as input of function module BBP_PD_SC_TRANSFER.

You can set a breakpoint in BBP_PD_PO_CREATE. When it stops, you can check the call stack.

Regards,

Ricardo

0 Kudos

Hi,

Thanks for your valuable information.

As you said i tried executing BBP_PD_SC_TRANSFER FM with saved shopping cart GUID.

But I am getting a dump 'Access via NULL object reference not possible'.

Regards,

Kamal

Former Member
0 Kudos

Hello

Have you tried to put a external BreakPoint in the MF BBP_PD_PO_CREATE?

Regards

0 Kudos

HI

Thanks for your reply.

I tried with external BreakPoint in the FM BBP_PD_PO_CREATE, but debugger is not triggering.

Regards,

Kamalakannan

RicardoRomero_1
Active Contributor
0 Kudos

Hi Kamalakannan,

I think the PO is created from the SC in background by the user WF-BATCH.

For debug it you can try to put an infinite loop in the code and use transaction SM50 to debug the process.

If you manage to debug it you can see the flow in the ABAP stack within the "Desktop 2" tab of the debugger.

Be careful if you put the infinite loop, remember to remove it.

Regards,

Ricardo.