Application Development and Automation 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: 
Read only

Help required for 'coping classification'

Former Member
0 Likes
394

Dear All,

My requirement is to copy the classification (Class: 032) with all characteristics and values.

For ex: if classification PR-01 is created in class 032(Release Strategies), I want to create a copy of same with another name.

I used the FM CLFM_COPY_CLASSIFICATION, but it will not work.

I have searched a lot and also ‘googling’ it, but unfortunately nothing found related to this.

Please help me on this.

Regards,

Kaushik Savaliya

Message was edited by: Kaushik Savaliya

Message was edited by: Kaushik Savaliya

1 REPLY 1
Read only

Former Member
0 Likes
329

Hello Kaushik,

To copy a class programmatically will take three steps:

1-BAPI_CLASS_GETDETAIL

2-BAPI_CLASS_CREATE

3-BAPI_TRANSACTION_COMMIT.

These BAPIs are well documented.

There are also BAPIs for the Characteristics.  For example: BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_CREATE.

To find all the BAPIs for Classification, execute t-code BAPI and

navigate to 'Cross-Application Components->Classification->Class/Characteristic'.

You can also  see the BAPis by the Business Object methods by executing tcode SWO1

and inspect business objects BUS1003 (Class), BUS1088 (Characteristic) and BUS3060 (Object Classification).

Regards,

Kim