on 04-21-2009 3:29 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.