Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI SALESORDER CHANGE

Former Member
0 Likes
1,673

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.

4 REPLIES 4
Read only

Former Member
0 Likes
1,132

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

Read only

Former Member
0 Likes
1,132

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...

Read only

Former Member
0 Likes
1,132

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

Read only

Former Member
0 Likes
1,132

This message was moderated.