Posted: Thu Sep 20, 2007 11:08 am Post subject: BAPI_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT1 - Sales order: Create Sales Order
Functionality
You can use this method to create sales orders.
Code:
DATA: l_salesdocument LIKE bapivbeln-vbeln,
l_return LIKE bapireturn1,
l_header LIKE bapisdhead.
DATA: i_items LIKE bapiitemin OCCURS 10 WITH HEADER LINE,
i_partners LIKE bapipartnr OCCURS 1 WITH HEADER LINE,
i_return LIKE bapireturn1 OCCURS 1 WITH HEADER LINE,
l_fin.
LOOP AT i_list.
AT NEW waers.
* Informamos los datos de cabecera de la BAPI
CLEAR l_header.
l_header-doc_type = 'ZPED'.
l_header-purch_no_c = 'Referencia'.
l_header-price_date = i_list-fecha.
l_header-sales_org = 'VORG'.
l_header-distr_chan = 'TI'.
l_header-division = '00'.
l_header-price_date = i_list-fecha.
l_header-currency = i_list-waers.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.