2006 Nov 28 9:36 PM
Hello ABAPers:
I am using BAPI_CUSTOMERQUOTATION_CHANGE for changing Variant Configuration information on quotes. I am filling the table quotation_item_inx with quotation_item_inx-UPDATEFLAG = 'U' quotation_item_inx-CONFIG_ID = 'X' and other VC tables QUOTATION_CFGS_REF, QUOTATION_CFGS_INST, and QUOTATION_CFGS_VALUE. It updates other header and item fields except the config info. Has anybody tried updating Variant Configuration info on quotes?
Thanks for your time.
2006 Nov 28 10:57 PM
Hi Ramana - the quotation_item_inx table will not do anything without the quotation_item_in table being populated with the same key - are you filling in the quotation_item_in table?
Is the config_id you are using in the quotation_item_in table matching the config_id in the config tables?
Did you fill in the quotation number in salesdocument?
Did you set the update_flag in quotation_header_inx?
Andy
Andy
Hello ABAPers:
I am using BAPI_CUSTOMERQUOTATION_CHANGE for changing Variant Configuration information on quotes. I am filling the table quotation_item_inx with quotation_item_inx-UPDATEFLAG = 'U' quotation_item_inx-CONFIG_ID = 'X' and other VC tables QUOTATION_CFGS_REF, QUOTATION_CFGS_INST, and QUOTATION_CFGS_VALUE. It updates other header and item fields except the config info. Has anybody tried updating Variant Configuration info on quotes?
Thanks for your time.
2006 Nov 28 10:57 PM
Hi Ramana - the quotation_item_inx table will not do anything without the quotation_item_in table being populated with the same key - are you filling in the quotation_item_in table?
Is the config_id you are using in the quotation_item_in table matching the config_id in the config tables?
Did you fill in the quotation number in salesdocument?
Did you set the update_flag in quotation_header_inx?
Andy
Andy
2006 Nov 28 11:56 PM
Hello Andrew,
Yes I am filling in quotation_item_in table with the following info.
sd_item_it-itm_number = '000030'.
sd_item_it-hg_lv_item = '000000'.
sd_item_it-material= '10435-5562'.
sd_item_it-alt_to_itm = '000000'.
sd_item_it-dlv_group = '000'.
sd_item_it-target_qty = '1'.
sd_item_it-target_qu = 'EA'.
sd_item_it-t_unit_iso = 'EA'.
sd_item_it-po_itm_no = '000030'.
sd_item_it-PMNTTRMS = 'NT45'.
sd_item_it-CONFIG_ID = '000001'.
sd_item_it-inst_id = '00000001'.
append sd_item_IT.
quotation_item_inx is filled with
sd_item_x_it-itm_number = '000030'.
sd_item_x_it-updateflag = 'U'.
sd_item_x_it-PMNTTRMS = 'X'.
APPEND sd_item_x_it.
QUOTATION_CFGS_REF is filled with
q_cfgs_ref-posex = '000030'.
q_cfgs_ref-config_id = '000001'.
q_cfgs_ref-root_id = '00000001'.
q_cfgs_ref-complete = 'T'.
q_cfgs_ref-consistent = 'T'.
append q_cfgs_ref.
QUOTATION_CFGS_INST is filled with
q_cfgs_inst-config_id = '000001'.
q_cfgs_inst-inst_id = '00000001'.
q_cfgs_inst-obj_type = 'MARA'.
q_cfgs_inst-class_type = '300'.
q_cfgs_inst-OBJ_KEY = '10435-5562'.
q_cfgs_inst-quantity = '1'.
q_cfgs_inst-quantity_unit = 'EA'.
q_cfgs_inst-complete = 'T'.
q_cfgs_inst-consistent = 'T'.
append q_cfgs_inst.
QUOTATION_CFGS_VALUE is filled with
q_cfgs_value-config_id = '000001'.
q_cfgs_value-inst_id = '00000001'.
q_cfgs_value-charc = 'ART_REFERENCE'.
q_cfgs_value-charc_txt = 'Art Reference'.
q_cfgs_value-value = 'B'.
append q_cfgs_value.
As you can see config_id id matching. I am filling in the quote number in salesdocument and the update_flag in quotation_header_inx is set to 'U'.
In the above situation, I am able Payment terms on the item but not config info.