cancel
Showing results for 
Search instead for 
Did you mean: 

Appending new characteristic in existing class (class type 300)

0 Kudos

Hi,

We have created multiple classes with various characteristics assigned to it. Now, we have a requirement to add new characteristics to all classes.

Can you please suggest a way to update this new characteristic to multiple classes. We have tried LSMW Idoc method but it expects to delete all existing characteristics within the class and add new set of characteristics which is not possible.

Thanks & Regards,

Manohar

Accepted Solutions (0)

Answers (2)

Answers (2)

ravi_kumar204
Active Participant
0 Kudos

Hi Manohar,

Need to consider below details for BDC.

What is the position of the Char. in all classes? It should be same for all class.

AND

All classes should have same number of chars. (preceded by this char.) because  in BDC recording we need to specify the position of the char. in the corresponding class.

You can also try with BAPI with in ABAP code.

BAPI_CLASS_CHANGE .

Documentation:

Change Class

This function module changes a class and its data.

Important

Structures and tables for new data that enter with NEW must be maintained correctly.

If these structures or tables are empty, the data in them is deleted.

If no data is to be changed, the structures and tables ending with NEW must match the current data.

To fill structures and tables with current data, use the relevant GETDETAIL module to copy the old data from the class first.

The class-specific overwrite data for characteristics and values must be made available using the data copied by calling the GETDETAIL module.

If nothing is transferred in these tables, there is no overwrite.

This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit.

  NAME_CHAR

Characteristic Name

  CODE_LETTER

Standard Code Letter

  CHARACT_ORIGIN

Characteristic origin

  DEPARTMENT_VIEW

Organizational Area

  INSERT_BEFORE

Name of characteristic before which you want to insert

  DELETEVALUE

Deletion Indicator

  PRINT_RELEV

Print Relevant

  SELECT_RELEV

Search Relevant

  DISPLAY_RELEV

Display Relevant

  INDEX_RELEV

Index Characteristic

Ravikumar. B

former_member214775
Contributor
0 Kudos

Hi Manohar,

you can try BDC script (transaction: SHDB)

Best regards

Tamas