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: 

Assign Characteristic to Class

Former Member
0 Kudos

Hi,

I need a help on assigning characteristic to class in BDC programming. My BDC programming will handle around 8 transactions which are executed sequentially like CT01, CU01, CL01, CU41 etc...

I have a newly created Characteristic which has to be assigned to a Class (which can be a newly created class or an existing class). Suggest me which transaction code ASSIGNS CHARACTERISTIC TO CLASS?

Many a thanks.

1 ACCEPTED SOLUTION

former_member226234
Contributor
0 Kudos

Use CL02

6 REPLIES 6

Former Member
0 Kudos

Hi,

Global class can be created from the transaction <b>SE24</b>.

I didn't what do you mean by asign characteristic to class?

Regards,

Azaz Ali.

0 Kudos

Hi Azaz,

The tcode u mentioned is Class Builder. It will not satisfy my requirement. I have created a characteristic through transaction 'CT01'. <b>I want to assign this characteristic to a Class</b>. The characteristic and class name will be input in selection screen. Which transaction will do this job?

0 Kudos

If you have to use a transaction you can use CL02 transaction and type in the list of CHAR's in the CHAR table after typing in the CLASS name on the top text fields.

If you want to do it using BAPI's.

BAPI_CHARACT_CREATE - To create a CHAR

BAPI_CLASS_CREATE - To create the CLASS and also assign CHAR to the class.

If you want to do it separately, you can call the BAPI_CLASS_CHANGE to assign new CHAR's to the class.

To assign objects to classes, you can use BAPI_OBJCL_CREATE to do the same

Regards

Ravi

Note : Please mark all the helpful answers

Former Member
0 Kudos

1. I am not sure why can't use BAPI's for the same. You have BAPI's to CREATE A CLASS, CREATE CHARACTERISTC, ASSIGN A CHAR to a CLASS.

Regards,

Ravi

Note : Please mark all the helpful answers

former_member226234
Contributor
0 Kudos

Use CL02

Former Member
0 Kudos

You can assign Characteristic to Class: 1- while creating Class (CL01) and 2-if its already created then changing the Class(CL02)