2010 Feb 24 1:17 PM
Hi all,
Please help me in the issue . I have added user custom fields for sales order va01 in header and item . i am using bapi for creating sales order . I need do use Extensionin struture for updating table vbak and vbap. Can anyone brief the procedure for acheiving the same.
Thanks in advance,
Hi all,
Please help me in the issue . I have added user custom fields for sales order va01 in header and item . i am using bapi for creating sales order . I need do use Extensionin struture for updating table vbak and vbap. Can anyone brief the procedure for acheiving the same.
Thanks in advance,
2010 Feb 24 1:24 PM
Hi,
Refer to the documentation of the BAPI "BAPI_SALESORDER_CREATEFROMDAT2". It will update custom fields as well.
Please refer to the documentation given for EXTENSIONIN parameter of this BAPI. It contains all the details to handle custom fields updation.
Hope this helps you!!
Regards,
Ganga
2010 Feb 24 2:03 PM
Hi Eric,
Extensions for VBAK, VBAP can be filled like this:
CLEAR e_extension.
e_extension-structure = 'BAPE_VBAK'. ---> For VBAK
e_extension-valuepart1+10 = VAL1
e_extension-valuepart1+46 = VAL2.
e_extension-valuepart1+56 = VAL3.
e_extension-valuepart1+59 = VAL4
APPEND e_extension TO t_extension.
The same for VBAP
CLEAR e_extension.
e_extension-structure = 'BAPE_VBAP'. ---> For VBAP
e_extension-valuepart1+10 = VAL1
e_extension-valuepart1+46 = VAL2.
e_extension-valuepart1+56 = VAL3.
e_extension-valuepart1+59 = VAL4
APPEND e_extension TO t_extension.
CALL FUNCTION 'BAPI_SALESORDER...."
...
TABLES
...
extensionin = t_extension.
Hope this helps.
Ernesto
Edited by: Ernesto Caballero on Feb 24, 2010 3:03 PM
2010 Feb 24 2:08 PM
2010 May 28 5:39 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |