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
630

Hi All,

I have a requirement to change the reasons for rejection for selective items in the sales order.

but when i use BAPI_SALESORDER_CHANGE. i get the error:

Field ABGRU cannot be changed VBAPKOM 0003000ready for input.

Sales document not changed.

These are the following values i pass:

IMPORT PARAMETERS:

Salesdocument :' 100000356'

Order_header_inx-Updateflag = 'X'

TABLES:

order_item_in-item_number = '003000'.

order_item_in-plant = '1000'.

order_item_in-reason_rej = ' '.

order_item_inx-item_number = '003000'.

order_item_inx-updateflag = 'U'.

order_item_inx-reason_rej = 'X'.

order_item_inx-plant = 'X'.

do i have to input any other values .Pls help.

thanks,

Kavitha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
578

Hi,

First try to change the Reason of Rejection using VA02 tcode. In va02 tcode allow to change the reason of rejection. Then u can check with BAPI parameters. The parameters whatever you are passing is correct. Still if if you are not able to change the Reason of Rejection, try to pass additional parameters in item structure material number, item category and storage location.

Regards

Pratap.M

Hi All,

I have a requirement to change the reasons for rejection for selective items in the sales order.

but when i use BAPI_SALESORDER_CHANGE. i get the error:

Field ABGRU cannot be changed VBAPKOM 0003000ready for input.

Sales document not changed.

These are the following values i pass:

IMPORT PARAMETERS:

Salesdocument :' 100000356'

Order_header_inx-Updateflag = 'X'

TABLES:

order_item_in-item_number = '003000'.

order_item_in-plant = '1000'.

order_item_in-reason_rej = ' '.

order_item_inx-item_number = '003000'.

order_item_inx-updateflag = 'U'.

order_item_inx-reason_rej = 'X'.

order_item_inx-plant = 'X'.

do i have to input any other values .Pls help.

thanks,

Kavitha

2 REPLIES 2
Read only

Former Member
0 Likes
579

Hi,

First try to change the Reason of Rejection using VA02 tcode. In va02 tcode allow to change the reason of rejection. Then u can check with BAPI parameters. The parameters whatever you are passing is correct. Still if if you are not able to change the Reason of Rejection, try to pass additional parameters in item structure material number, item category and storage location.

Regards

Pratap.M

Read only

Former Member
0 Likes
578

Hi Dude,

Go through this link :[;