‎2010 Feb 18 4:59 AM
Hi all,
Please help me in the issue. I have added custom fields to va01 in header and item levels and appended the strutures vbak and vbak. I using bapi BAPI_SALESORDER_CREATEFROMDAT1 to create sales order . how to update the addtional fields which were added to va01 through bapi .
‎2010 Feb 18 5:07 AM
Hi,
You need to append the same custom fields to the following structures which are used in BAPI.
For header : BAPISDHEAD
For Item : BAPIITEMIN.
Regards,
Chandravadan
‎2010 Feb 18 5:03 AM
hi,
you have to extend the structure used in the BAPI , by appending the new custom fields in it.
hope this helps
regards
RItesh
‎2010 Feb 18 5:07 AM
Hi,
You need to append the same custom fields to the following structures which are used in BAPI.
For header : BAPISDHEAD
For Item : BAPIITEMIN.
Regards,
Chandravadan
‎2010 Feb 18 5:14 AM
do i need to copy BAPI_SALESORDER_CREATEFROMDAT1 into Z and add the custom fields to the bapi.
‎2010 Feb 18 5:19 AM
‎2010 Feb 18 5:22 AM
‎2010 Feb 18 5:25 AM
‎2010 Feb 18 5:25 AM
in BAPISDHEAD append structure we need to add custom fields right and do we need to do any other code enhanceing other that adding append structure in BAPISDHEAD.
‎2010 Feb 18 5:39 AM
Hi,
Using "BAPI_SALESORDER_CREATEFROMDAT1", we will not be able to update custom fields. Instead, use 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 18 5:22 AM
‎2010 Feb 18 5:25 AM
‎2010 Feb 18 5:30 AM
hi,
In function module "SD_SALESDOCUMENT_CREATE" where the EXTENSIONIN parameter values are getting populated.
Doing this you will get a better idea how the system is populating the values from the extension.
Also you need to pass theZ fields in the update structure aswell followed by X or SPACE.
WIth Regards,
Ritesh