04-23-2007 9:36 PM
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.
04-24-2007 7:13 AM
Hi Reddy,
Check this BAPI <b>BAPI_SALESORDER_CREATEFROMDAT1</b>
Regards,
Raj
04-24-2007 7:30 AM
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