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 salesorder

Former Member
0 Kudos

Hello Guys,

Iam trying to create ZBAPI sales order.

I created one strucure with header details and item details.

HEADER DETAILS

VBELN

AUDAT

VBTYP

AUART

ITEM DETAILS

POSNR

MATNR

CHARG

Then created Function module I have give Import parameters as VBELN TYPE VBAK-VBELN then what should i give in export paramater , tables and source code so please let me know step by step procedure.

2 REPLIES 2

Former Member
0 Kudos

Hi Reddy,

Check this BAPI <b>BAPI_SALESORDER_CREATEFROMDAT1</b>

Regards,

Raj

uwe_schieferstein
Active Contributor
0 Kudos

Hello Reddy

If you are already working on 6.20 (or higher) then you can use <b>BAPI_SALESORDER_CREATEFROMDAT2</b>. If the BAPI does not allow you to create the sales order type you need then you can directly call the underlying RFC-enabled function module <b>SD_SALESDOCUMENT_CREATE</b>.

Regards

Uwe