Skip to Content
May 07, 2010 at 10:00 AM

Create Configuration Id for material characteristics


Hi Experts,

I am doing LSMW for PR creation which will create the PR header and Item.I have a second LSMW for creating the characteristics for the configurable material. In second LSMW, I have made my own customized BAPI but I am not sure how to generate the CUOBJ number. I have tried with the following function modules and methods:


METHOD Cl_cbase=>create_new_cbase


The new instance is generated and then i call the Function: CUXM_SET_CONFIGURATION and this also works fine but at last i call the FM: CUCB_CONFIGURATION_TO_DB to save the configuration to the database but this FM returns me an exception that the instance generated from the above FM/ method is not found and the configuration data is not saved.

I am not sure how its going to work.

Please suggest .

Thanks and BR,