Application Development 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: 

BAPI to create sales order

Former Member
0 Kudos

Hi please send me a sample code to create sales order from text file using BAPI (bapi_salesorder_credat2 ) answers will be rewarded,Thanks in advance,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Neerja,

You cannot create sales Orders through the BAPI you've mentioned.Since Business Object 'BUS2032' has been hard coded in this BAPI which is used for creating Debit Memo request,hence please use the function module which is inside this BAPI and pass on the respective Business Object manually on the basis of the Sales Doc type. You will find a Note in service,sap.com regarding this.

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

Check this link out:

http://www.saptechies.com/bapi_salesorder_createfromdat2/

Sample code is given.. but code alignment is not proper.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Neerja,

You cannot create sales Orders through the BAPI you've mentioned.Since Business Object 'BUS2032' has been hard coded in this BAPI which is used for creating Debit Memo request,hence please use the function module which is inside this BAPI and pass on the respective Business Object manually on the basis of the Sales Doc type. You will find a Note in service,sap.com regarding this.