Entering content frame

Function documentationGeneral Processing Rules Locate the document in its SAP Library structure

There are API modules for maintaining all objects, such as characteristics, classes, and object dependencies. These APIs allow you to create, change, and delete the object.

Before you can use APIs to maintain objects, specific data must be transferred to the API, either as individual parameters or in internal tables.

Example: Create Characteristic

You want to create the characteristics COLOR and LENGTH, with the description in English "Paintwork" and "Tube length" and characteristic status "2". To do this, transfer the following information to internal table Characteristic attributes:

Characteristic name

=

‘COLOR’

Status

=

‘2’

Data type

=

‘CHAR’

Number of characters

=

‘9’

 

Characteristic name

=

‘LENGTH’

Status

=

‘2’

Data type

=

‘NUM’

Number of characters

=

‘4’

Negative values allowed

=

‘X’

 

In addition, transfer the following data to internal table Descriptions:

Characteristic name

=

‘COLOR’

Language

=

‘E’

Description

=

‘Paintwork’

 

Characteristic name

=

‘LENGTH’

Language

=

‘E’

Description

=

‘Tube length’

 

With this information, you can call and execute function module CAMA_CHARACT_MAINTAIN. The characteristic is then created in the SAP system.

Example:  Change Characteristic

You want to change the existing characteristic COLOR. You want to change the characteristic status from "2" to "1" and change the English description from "Paintwork" to "Paintwork color".

To do this, call function module CAMA_CHARACT_MAINTAIN with the following input for internal tableCharacteristic attributes:

Characteristic name

=

‘COLOR’

Status

=

‘1’

 

In addition, transfer the following data to internal table Descriptions:

Characteristic name

=

‘COLOR’

Language

=

‘E’

Description

=

‘Paintwork’

Deletion indicator

=

‘X’

 

Characteristic name

=

‘COLOR’

Language

=

‘E’

Description

=

‘Paintwork color’

Deletion indicator

=

SPACE

 

First the old description is deleted. Then the new description is inserted.

Note

      If you try to change an object that does not yet exist, the object is created.

      If you try to delete an object that does not yet exist, your entry is ignored.

 

 

Leaving content frame