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_CHNGE

venkateswaran_k
Active Contributor
0 Likes
976

Hi

I was trying to update an existing sales order using the above BAPI.

But I am getting this error;

The system will not accept the entry of a functional area

Error in ITEM_IN 000010

I do not know where i am missing.

Can someone help me please

Regards,

Venkat

8 REPLIES 8
Read only

sachin_yadav3
Active Participant
0 Likes
946

are you passing function area to item table ORDER_ITEM_IN ? If yes then remove it from ORDER_ITEM_IN and ORDER_ITEM_INX. You are getting this error because functional area might be non editable field in your sales order.

Read only

0 Likes
946

Hi Sachin,

I passed only the new item quantity.

  s_order_header_inx-updateflag = 'U'.

   MOVE-CORRESPONDING itab_ch TO i_order_item_in.

   i_order_item_in-itm_number = itab_ch-itm_number.

   i_order_item_in-material =   itab_ch-material.

   i_order_item_in-target_qty = ( itab_ch-target_qty + 10 ).

   i_order_item_in-sales_unit = itab_ch-sales_unit.

   i_order_item_inx-updateflag = 'U'.

   i_order_item_inx-itm_number = itab_ch-itm_number.

   i_order_item_inx-material =   'X'.                       "itab_ch-material.

   i_order_item_inx-target_qty = 'X'.

   i_order_item_inx-sales_unit = 'X'.                       "itab_ch-sales_unit.

   APPEND: i_order_item_in, i_order_item_inx.

Read only

0 Likes
946

are you changing the material number also ? If no then please comment the material code and check ?

Read only

0 Likes
946

I tried with that s well, Sachin

Still facing the problem

Read only

0 Likes
946

Additonal informlation,  it is the plant value that shows in return table.

I do not know, how it comes, even though i did not spcify in my i_order_item_in table.

Regards

Venkat

Read only

Juwin
Active Contributor
0 Likes
946

There should be some other messages also, apart from this message. Can you check what else is present in the BAPI return table?

Thanks,

Juwin

Read only

0 Likes
946

No other messages.   Juwin,

I saw in return table.   It shows only a value  5100  - which is my plant ... 

Regards,

Venkat

Read only

0 Likes
946

Any idea please..