Skip to Content
avatar image
Former Member

Bid Invitation - BBP_DOC_CHANGE_BADI

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 21, 2009 at 03:45 AM

    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

    Add comment
    10|10000 characters needed characters exceeded