11-30-2011 12:55 PM
Hi,
i have tried to add a new item to an existing sales order and created the item 000020 for example successfully in the order that has just an item, namely 000010.
However when i created first the sales order with BAPI_SALESORDER_CREATEFROMDAT2 and specified the configuration values,it completely ok, no problem but when i created the second item, namely 000020, i was not successfull in configuration values,i want to enter customer identity number to a charactericstic but it did not do it.
But it is ok in item 000010, not ok for item 000020; what is the problem?
*configuration data for : BAPI_SALESORDER_CREATEFROMDAT2
CLEAR: tb_order_cfgs_ref.
tb_order_cfgs_ref-posex = i_count."000010
tb_order_cfgs_ref-config_id = i_cfg_id."000001
tb_order_cfgs_ref-root_id = '00000001'.
APPEND tb_order_cfgs_ref.
CLEAR: tb_order_cfgs_inst.
tb_order_cfgs_inst-config_id = i_cfg_id.
tb_order_cfgs_inst-inst_id = '00000001'.
tb_order_cfgs_inst-obj_type = 'MARA'.
tb_order_cfgs_inst-class_type = '300'.
tb_order_cfgs_inst-obj_key = zsd_kimlik-mlzkd."st_mch1-matnr.
APPEND tb_order_cfgs_inst.
CLEAR: tb_order_cfgs_value.
tb_order_cfgs_value-config_id = i_cfg_id.
tb_order_cfgs_value-inst_id = '00000001'.
tb_order_cfgs_value-charc = 'A276' .
tb_order_cfgs_value-value = zsd_kimlik-kmlno.
APPEND tb_order_cfgs_value.
CLEAR: tb_order_cfgs_refinst.
tb_order_cfgs_refinst-posex = i_count.
tb_order_cfgs_refinst-config_id = i_cfg_id.
tb_order_cfgs_refinst-inst_id = '00000001'.
APPEND tb_order_cfgs_refinst.
it is same for the BAPI_SALESORDER_CHANGE also.
so where i am wrong that i can not add config. data to item 000020?
Thanks.
12-01-2011 3:37 AM
HI ,
i assume that ,item 20 material doesn't take that configuration values , try to do create manually then see.
regards
Prabhu
12-01-2011 3:37 AM
HI ,
i assume that ,item 20 material doesn't take that configuration values , try to do create manually then see.
regards
Prabhu