Hi Nilima,
Hope you are doing good. I have similar erquirement.
My requirement is to create Contract order from File into SAP system using BAPI BAPI_QUOTATION_CREATEFROMDATA2.
I have 4 characteristics which are mandatory and remaining will be taken through configuration. These 4 characteristics are coming from file, so I'm passing to the BAPI structure as below.
CALL FUNCTION'BAPI_QUOTATION_CREATEFROMDATA2'
EXPORTING
quotation_header_in = lw_ord_header
testrun = pv_simulation
IMPORTING
salesdocument = lv_order
TABLES
return = lt_return
quotation_items_in = lt_ord_items
quotation_items_inx = lt_ord_itemsx
quotation_partners = lt_ord_partners
quotation_schedules_in = lt_ord_schedules
quotation_schedules_inx = lt_ord_schedulesx
quotation_cfgs_ref = lt_order_cfgs_ref_crea
quotation_cfgs_inst = lt_order_cfgs_inst_crea
quotation_cfgs_part_of = lt_order_cfgs_part_of_crea
quotation_cfgs_value = lt_order_cfgs_value_crea
quotation_cfgs_refinst = lt_curef_in_crea.
I'm able to create the Order, but characteristics are not getting updated.
So, as suggested in this post by you I have implemented an Enhancement at the begining of FM CE_I_CONFIGURE with the same code of yours. But still the characteristics are not getting populated, and the FM is not getting called when we create orders through the above BAPI??
Your comments will be highly appreciated. Thanks
Regards
-Syed