cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_DOC_CHECK_BADI

Former Member
0 Kudos

Hello, my requirement is as follows.

Actually shopping carts which are associated to blocked suppliers are being created. You only get an information message during creation. The need is to block further creation of SC but allow approval to continue for SCs already created(with blocked supplier).

I wish to implement a control in BBP_DOC_CHECK_BADI.

The control should distinguish between approval and creation of shopping cart.How can i do this.thx in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Please implment the below logic inside the BBP_DOC_CHECK_BADI.

IF SY-TCODE = 'BBPSC01' " Transaction for creation of SC.

Get the vendor numbers from the line item of the SC

Check whether the locked vendor exist in the line item of the SC

IF YES then show an error message.

else

continue.

ENDIF.

Regards,

Anindya

Answers (0)