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: 

Adding new characteristics to an existing class (via BAPI)

kumaro412
Active Participant
0 Kudos

Dear all,

I have to add new characteristics to excisting classes ...

I first start to read the details using BAPI_CLASS_GETDETAIL. I give only one class as input and as output I receive the classcharacteristics and classcharvalues correctly ... In the classdescriptions I receive a lot of descriptions, but I expected only one description (of the imported class) ?

To add the new characteristics, I use BAPI_CLASS_CHANGE. I add the new characteristics to the existing ones and the new values to the existing ones and this seems to work fine ... But what with the description of the class ? Do I have to give all the existing ones again ? Or can I give one new value ?

I know these are lot of questions, but my program does not seem to work as I would want it ? Hopefully I can make it better with some help ?

I also added the program to show how I try to do it ...

Thanks in advance for the advice !!!

Greetz,

Kurt.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

classdescriptions

o  Table_new and table_old empty: nothing happens

o  Table_new filled, table_old empty: will be added

o  Table_new empty, table_old filled: will be deleted

o  Table_new and table_old filled identically: will be saved

o  Table_new filled, table_old has wrong values: values of table_new will be saved

o  Table_new filled, table_old has right values: values of table_new will be saved

o  Order is important because of description and keywords

o  Delete-flag will delete

For your reference:

http://wiki.sdn.sap.com/wiki/display/PLM/BAPI_CLASS_CHANGE

1 REPLY 1

Former Member
0 Kudos

classdescriptions

o  Table_new and table_old empty: nothing happens

o  Table_new filled, table_old empty: will be added

o  Table_new empty, table_old filled: will be deleted

o  Table_new and table_old filled identically: will be saved

o  Table_new filled, table_old has wrong values: values of table_new will be saved

o  Table_new filled, table_old has right values: values of table_new will be saved

o  Order is important because of description and keywords

o  Delete-flag will delete

For your reference:

http://wiki.sdn.sap.com/wiki/display/PLM/BAPI_CLASS_CHANGE