04-28-2004 9:01 PM
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
04-29-2004 9: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
06-02-2004 6: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