Creating and Parametrizing Items

Procedure

Creating an item

  • Create a reference variable for an item

    DATA: CU_ITEM TYPE REF TO CL_CU_ITEM
  • Create an instance of the item

    CREATE OBJECT CU_ITEM
    EXPORTING INSTANCE_ID = <unique name>.

    The INSTANCE_ID must be unique for all item customizing objects.

    For more information, see Creating Customizing Bundles .

Setting parameters for an item

Call the SET method in IF_CUSTOMIZING

CALL METHOD CU_ITEM -> IF_CUSTOMIZING~SET
EXPORTING
ATTR_ID = CL_CU_ITEM => CO_TYPE "type of item
VALUE = 1 "icon
IMPORTING RETVAL = RETVAL.

You have to call the SET method every time you want to assign an attribute to an item.