‎2006 Dec 21 7:02 PM
Hi Experts!
I am using BAPI_SALESORDER_CREATEFROMDAT2 bapi to create sales orders and trying to fullfill with this a field called "Customer Material Number" in transaction VA02.
Unfortunatelly I didn't get it with Table parameter called ORDER_ITEMS_IN, field CUST_MAT22.
Any suggestions?
Thansk!
Michel Khouri
‎2006 Dec 21 7:19 PM
Hi,
Use the field CUST_MAT35 instead of CUST_MAT22 for customer material..
Thanks,
Naren
‎2006 Dec 21 7:04 PM
Hi
U have to use extension structure (EXTENSIONIN)
In the table parameter of the BAPI you can see EXTENSIONIN structurated as BAPIPAREX.
U need to do the following steps before using it:
By SE11:
- Extend the structure BAPE_VBAP and BAPE_VBAPX in order to insert the new fields
- Extend the structure VBAPKOM and VBAPKOMX (if it's necessary) in order to insert the new fields
In your report
- Transfer the value to EXTENSIONIN:
BAPE_VBAP-POSNR = <POSNR>.
BAPE_VBAP-NEW FIELD = .......
EXTENSIONIN-STRUCTURE = 'BAPE_VBAP'.
EXTENSIONIN+30 = BAPE_VBAP.
APPEND EXTENSIONIN.
BAPE_VBAPX-POSNR = <POSNR>.
BAPE_VBAPX-NEW FIELD = 'X'.
EXTENSIONIN-STRUCTURE = 'BAPE_VBAPX'.
EXTENSIONIN+30 = BAPE_VBAPX.
APPEND EXTENSIONIN.
Max
‎2006 Dec 21 7:06 PM
‎2006 Dec 21 7:19 PM
Hi,
Use the field CUST_MAT35 instead of CUST_MAT22 for customer material..
Thanks,
Naren
‎2006 Dec 21 7:55 PM