cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_DOC_CHECK_BADI

Former Member
0 Kudos

Hi,

My requirement is that When trying to “Order”, or “Check” a shopping cart via transactions BBPSC02 or BBPSC03, a message should be issued to the user that they cannot proceed if the GL code is prefixed “29”. I know I have to implement the code in this badi BBP_DOC_CHECK_BADI but as I am new to SRM I am not aware how to proceed.

Any help will be much appreciated.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

step1 : Go To SE18 Tcode. GIve the Badi name....

Display the Badi

Go to Implimentation Menu.

Create a new Implimentaion for the Filter Value you required lets say SC (BUS2121) by giving Implimentation name in the Customer names space.

Write ur logic in the Implimentation....

Thanks and Regards

Kalandi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Seema,

Did you try to delete that item which was not to be processed.

We are having the similar requirement.

we need to delete the particular item and the shopping should be processed for the remaining items as it is.

Can you please suggest ?

Rgds,

Sanjeet

Former Member
0 Kudos

Hi. If you use the BBP_DOC_CHANGE_BADI method BBP_SC_CHANGE instead you have all the cart data avaliable in IT_ITEM, IT_ACCOUNT and so on.

Then you can set the deletion flag in an item by changing the structure ET_ITEM.

Regards,

Dave.

Former Member
0 Kudos

Function module BBP_PD_SC_GETDETAIL

to get the SC details

Table BBP_PDACC

field G_L_ACCT

stores the GL account value

use GUID value to find particular SC item

BR

Dinesh

Former Member
0 Kudos

Hi Dinesh,

How can we delete that particular item from the shopping cart so that other items can be processed further.

Rgds,

Sanjeet

Former Member
0 Kudos

Hi Sanjeet,

I have used the table lt_items for checking the processed SC.

LOOP AT lt_items INTO ls_items WHERE del_ind <> 'X'.

and thn I am looping on the acc internal table with GUID and thn checking the prefix 29 for gl code AnD hence I have resolved the prob.

Hope this helps.

Regds,

Seema