on 03-01-2011 5:46 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.