Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.