‎2013 Sep 11 10:34 AM
Hii All,
i was trying to create a credit memo from the invoice number . i was using 'SD_SALEDOCUMENT_CREATE' bapi for this . in this bapi , there is a field 'BUSINESS_OBJECT'. what i have to pass in this ????
Thanks in advance ,
Nitin Kumar Upadhyay
‎2013 Sep 11 4:09 PM
Hi Nitin,
The business object for a credit memo request is 'BUS2094'. For a sales order, this is 'BUS2032'.
You also have 'BUS2102' for return orders and 'BUS2096' for debet memo requests.
Regards,
Freek
‎2013 Sep 11 4:28 PM
Hi Nitin this field its blank .
See:
call function 'SD_SALESDOCUMENT_CREATE'
exporting
* SALESDOCUMENT =
sales_header_in = ibapisdhd1
sales_header_inx = ibapisdhd1x
BUSINESS_OBJECT = ' '
importing
salesdocument_ex = ibapivbeln
tables
return = ibapiret2
sales_items_in = ibapisditm
sales_items_inx = ibapisditmx
sales_partners = ibapiparnr
sales_schedules_in = ibapischdl
sales_schedules_inx = ibapischdlx
sales_conditions_in = ibapicond
sales_conditions_inx = ibapicondx
sales_text = ibapisdtext
partneraddresses = ibapiparad
‎2013 Sep 11 4:57 PM
Hi
I think you can use the BAPI BAPI_SALESORDER_CREATEFROMDAT2, this BAPI uses SD_SALESDOCUMENT_CREATE, so if you want to use it the busness object is BUS2032
Max