2009 Jun 23 8:39 AM
Hi,
I want to update a custom field in VBAK table using BAPI_SALESORDER_CHANGE.
I have primary key (VBELN) and the value to be updated. How can I use EXTENSIONIN.
I have seen in BAPI_SALESORDER_CHANGE, two parameters are mandatory SALESDOCUMENT and ORDER_HEADER_INX. In the later one, what to set in updateflag as I dont want to update values in ORDER_HEADER_INX fields.
Please suggest .
Thanks.
Hi,
I want to update a custom field in VBAK table using BAPI_SALESORDER_CHANGE.
I have primary key (VBELN) and the value to be updated. How can I use EXTENSIONIN.
I have seen in BAPI_SALESORDER_CHANGE, two parameters are mandatory SALESDOCUMENT and ORDER_HEADER_INX. In the later one, what to set in updateflag as I dont want to update values in ORDER_HEADER_INX fields.
Please suggest .
Thanks.
2009 Jun 23 8:43 AM
Hi,
For filling up the EXTENSIONIN structure; you need to have the relevant custom fields in the relevant structures.
Just read the documentation of the BAPI for the EXTENSIONIN structure.
It shows you with an example as how to pass data in that structure.
Regards,
Ankur Parab
2009 Jun 23 10:27 AM
Hi,
If you want to update 'VBAK' table then in the 'order_header_inx' parameter send the flag as 'U'... The 'extensionin' structure is used for updating the custom fields present in VBAP table... Send in the details with this to the FM and your field will get updated...
2009 Jun 23 10:52 AM
Hi Gaurav,
Only specify fields that should be changed.
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the Checkboxes
ORDER_HEADER_INX fulfills the following two tasks:
Controls processing functions with the value in the UPDATEFLAG field (change indicator).
The following entries are available:
' ' : Create a new sales document
I: Create a new sales document
U: Change an existing sales document
😧 Delete an existing sales document
Controls the field entry with checkboxes
If the UPDATEFLAG field has been activated, the system only copies those fields from the SALES_HEADER_IN parameter that have been activated with 'X'.
For more information, please refer to the documenation of this FM (BAPI)
Best Regards,
Deepa Kulkarni
2009 Jun 23 11:03 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |