cancel
Showing results for 
Search instead for 
Did you mean: 

Bid Invitation - BBP_DOC_CHANGE_BADI

Former Member
0 Kudos

Dear Gurus,

I have to implement BBP_DOC_CHANGE_BADI and the method is BBP_BID_CHANGE when creating /changea Bid Invitation. This BADI should suppose to copy fields from Shopping Cart to Bid Invitation. My question is how do I know whether my BADI is triggering for create or change mode? Do I have to check syst-pfkey? Lets say if user is changing the Bid invitation to add a new line item, if this is the case how do I know inside the BADI. Look forward to hear from Gurus?

Thanks,

GS

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Yes one of the ways is to use SY-UCOMM to check for creation or change.

ANother way is - query CRMD_ORDERADM_H based on the object ID (Bid number).

- If an entry exists means that the BADI is called for a bid which is already in DB - means a change.

- If no entry exists means that the BADI is called for a bid which doesnt exist yet in DB - means bid is being created newly.

Rgds,

Prasanna