Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SD_SALESDOCUMENT_CREATE

Former Member
0 Likes
1,892

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

3 REPLIES 3
Read only

freek_cavens2
Participant
0 Likes
1,323

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

Read only

ronaldo_aparecido
Contributor
0 Likes
1,323

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

Read only

Former Member
0 Likes
1,323

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