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

BAPI to create sales order

Former Member
0 Likes
580

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
Read only

Former Member
0 Likes
486

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.

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,

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
486

Check this link out:

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

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

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
487

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.