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

Problem in Sales document change

Former Member
0 Likes
715

Hi all,

while changing the sales order, i am getting this error.

"Field header_inx-updateflag is not an input field."

This error is not coming always, only sometimes. But as this error is coming in the production environment i am not able to debug also.

Here is the code.PLease help out.

  • Build order header structure

wa_order_header_inx-updateflag = 'U'.

  • Build the item table

MOVE: wa_items-new_item TO wa_item_in-itm_number,

v_matnr TO wa_item_in-material,

wa_so_lines-posex TO wa_item_in-po_itm_no.

MOVE: wa_vbkd-posex_e TO wa_item_in-poitm_no_s,

c_flag TO wa_item_inx-poitm_no_s.

MOVE: wa_vbkd-sdabw TO wa_item_in-s_proc_ind,

c_flag TO wa_item_inx-s_proc_ind.

MOVE: wa_vbkd-bstdk TO wa_item_in-purch_date.

MOVE: c_flag TO wa_item_inx-purch_date.

APPEND wa_item_in TO i_item_in.

CLEAR wa_item_in.

  • Build Schedule lines table

MOVE: wa_items-new_item TO wa_schedule_in-itm_number,

wa_so_lines-kwmeng TO wa_schedule_in-req_qty.

APPEND wa_schedule_in TO i_schedule_in.

CLEAR wa_schedule_in.

  • Build Schedule linex table

MOVE: wa_items-new_item TO wa_schedule_inx-itm_number,

'I' TO wa_schedule_inx-updateflag,

c_flag TO wa_schedule_inx-req_qty.

APPEND wa_schedule_inx TO i_schedule_inx.

CLEAR wa_schedule_inx.

CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'

EXPORTING

salesdocument = la_it_ato_data-sap_order

order_header_inx = wa_order_header_inx

TABLES

return = i_return

item_in = i_item_in

item_inx = i_item_inx

schedule_in = i_schedule_in

schedule_inx = i_schedule_inx.

Hi all,

while changing the sales order, i am getting this error.

"Field header_inx-updateflag is not an input field."

This error is not coming always, only sometimes. But as this error is coming in the production environment i am not able to debug also.

Here is the code.PLease help out.

  • Build order header structure

wa_order_header_inx-updateflag = 'U'.

  • Build the item table

MOVE: wa_items-new_item TO wa_item_in-itm_number,

v_matnr TO wa_item_in-material,

wa_so_lines-posex TO wa_item_in-po_itm_no.

MOVE: wa_vbkd-posex_e TO wa_item_in-poitm_no_s,

c_flag TO wa_item_inx-poitm_no_s.

MOVE: wa_vbkd-sdabw TO wa_item_in-s_proc_ind,

c_flag TO wa_item_inx-s_proc_ind.

MOVE: wa_vbkd-bstdk TO wa_item_in-purch_date.

MOVE: c_flag TO wa_item_inx-purch_date.

APPEND wa_item_in TO i_item_in.

CLEAR wa_item_in.

  • Build Schedule lines table

MOVE: wa_items-new_item TO wa_schedule_in-itm_number,

wa_so_lines-kwmeng TO wa_schedule_in-req_qty.

APPEND wa_schedule_in TO i_schedule_in.

CLEAR wa_schedule_in.

  • Build Schedule linex table

MOVE: wa_items-new_item TO wa_schedule_inx-itm_number,

'I' TO wa_schedule_inx-updateflag,

c_flag TO wa_schedule_inx-req_qty.

APPEND wa_schedule_inx TO i_schedule_inx.

CLEAR wa_schedule_inx.

CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'

EXPORTING

salesdocument = la_it_ato_data-sap_order

order_header_inx = wa_order_header_inx

TABLES

return = i_return

item_in = i_item_in

item_inx = i_item_inx

schedule_in = i_schedule_in

schedule_inx = i_schedule_inx.

1 REPLY 1
Read only

Former Member
0 Likes
597

Hi Robin,

I see that in your code

wa_order_header_inx-updateflag = 'U'.

But check if by any chance the value gets cleared or changed while passing to the function module, can cause the error you have mentioned.

Just check the function module in SE37

Suppose you give ORDER_HEADER_INX-UPDATEFLAG = 'A' , which is invalid value

You will get error message as

>Field header_inx-updateflagA is not an input field " Note A at end of error message which is your input

If the value is cleared by any chance then the error message will be

Field header_inx-updateflag is not an input field

Check if the value is passed properly when it is passed to the function module

Regards

Edited by: Rob Burbank on Jun 29, 2010 1:55 PM