2007 Jan 11 2:49 PM
Hi all,
I am working on an enhancement for configurable materials. After we enter the configurable material number in the material field (VBAP_MATNR) while creating an order (in t-code VA01), at that point the variant configuration screen pops up for you to enter the characteristic values. I need a function module/BAPI to set the characteristic values. I tried using CUD0_GET_VAL_FROM_INSTANCE and CUD0_SET_VAL_TO_INSTANCE but these are not working.
Please help me find a solution for the above.
Thanks,
Jigisha
Hi all,
I am working on an enhancement for configurable materials. After we enter the configurable material number in the material field (VBAP_MATNR) while creating an order (in t-code VA01), at that point the variant configuration screen pops up for you to enter the characteristic values. I need a function module/BAPI to set the characteristic values. I tried using CUD0_GET_VAL_FROM_INSTANCE and CUD0_SET_VAL_TO_INSTANCE but these are not working.
Please help me find a solution for the above.
Thanks,
Jigisha
2007 Jan 11 3:51 PM
ckeck mara-kzkfg if material is configurable
i hope you have only one class type, you'll find in table KLAH (compare with your screen in VA01)
all values for this class type are in table KSML.
Now you can get all characteristics which belongs to KSML from table CAWN. you have to filter out all
entries from CAWN which are EQ "your desired configuration<value>".
you can use BAPI_SALESORDER_CREATEFROMDAT2 to create your order plus configuartion, provide the config data in the tables order_cfgs_ref, order_cfgs_inst, order_cfgs_value
Rgds,
JP
2007 Jan 11 5:47 PM
if you want to use pre-configured product - you can always create a variant (plant-specific) in material master, in this case when you create an order with htis material - it will load variant configuraiton automatically.