Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Configuration Id for material characteristics

former_member317731
Participant
0 Kudos

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:

FUNCTION 'IBPP_CREATE_IBASE'

METHOD Cl_cbase=>create_new_cbase

FUNCTION 'CUCB_CREATE_CBASE_WITH_NO_INST'

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,

Sahil

3 REPLIES 3

former_member317731
Participant
0 Kudos

solved on my own

Former Member
0 Kudos

Hi,

nice that you have solved it. Great job.

0 Kudos

Dear Sahil,

could you tell how you managed to CREATE config for a material from scratch:

What's the sequence of which FM/BAPI's/events in order to:

- create an instance

- set config values

- make sure all is properly saved in the database?

thanks!

Maggie