cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Shopping Cart via RFC

Former Member
0 Kudos

Hi,

We are using BBP_PD_SC_CREATE RFC enable Function Module with I_PARK = 'X' to park the document. Once the SC is parked, it returns the SC#. Now if I want to order the same SC, what RFC should I use? If I use BBP_PD_SC_CREATE with I_SAVE = 'X' now, it will create another shoping cart. I want to just order or submit that parked Shopping cart. How do I do that via RFC function module? Please help.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you have to oreder an held SC, then you to follow below logic:

1. Lock SC using BBP_PD_SC_LOCK

2. Update SC calling BBP_PD_SC_UPDATE with I_SAVE = X

3. Call BBP_PD_SC_SAVE

4. COMMIT WORK

5. Unlock SC using BBP_PD_SC_UNLOCK

Make sure you do the update after the SC is successfully locked. Also only call BBP_PD_SC_SAVE when no errors are returned by BBP_PD_SC_UPDATE.

At any cost always remember to unlock if you have locked.

Regards,

Prasanna

Former Member
0 Kudos

Hi Prabu,

Did you get the solution. Even i'm working on this now. If you know the solution, will you please let me know.

Thanks in advance.

Karthik.