Skip to Content
avatar image
Former Member

Using BAPI to create a Credit/Debit Memo

I would like to use a BAPI to create a credit/debit memo but the BAPI_SALESORDER_CREATEFROMDAT2 BAPI is hard coded for BUS2032. I need to create a credit/debit memo which is BUS2096. Has anyone ever copied the bapi to a zbapi* and used a different Business Object? Or do you all have any other suggestions?

Thanks,

Mike

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 29, 2004 at 08:05 AM

    Mike,

    If you can't find a BAPI which provides there are several options:

    -Use CALL TRANSACTION (if youre programming in ABAP)

    -Create your own BAPI that calls a CALL TRANSACTION

    -Post an IDOC to create the debit or credit memo

    Either way you loose the possibility to do a roll back of the LUW. If roll back of the LUW is a problem you might consider executing the creation of the debet/credit document last (if possible).

    I don't recommend copying a BAPI due to version upgrates, notes and hotpackages.

    Best regards,

    Harald

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 02, 2004 at 05:53 AM

    Mike, I rewrote one of our custom programs using BAPI's to create debet/credit memo's successfully. You have to use 2 BAPI's actually:

    BAPI_SALESDOCU_CREATEFROMDATA

    FOR CREATING BASIC ORDER WITHOUT HEADER TEXT

    AND PRICING CONDITIONS

    BAPI_SALESORDER_CHANGE

    FOR ADDING THE HEADER TEXT AND PRICING

    CONDITIONS.

    You also get related info from OSS note 93091.

    Best regards,

    Harold

    Add comment
    10|10000 characters needed characters exceeded