Show TOC

Procedure documentationCreating and Parametrizing Items

Procedure

Creating an item
  1. Create a reference variable for an item

    Syntax Syntax

    1. DATA: CU_ITEM TYPE REF TO CL_CU_ITEM
    End of the code.
  2. Create an instance of the item

    Syntax Syntax

    1. CREATE OBJECT CU_ITEM
      EXPORTING INSTANCE_ID = <unique name>.
    End of the code.

    The INSTANCE_ID must be unique for all item customizing objects.

    For more information, see Creating Customizing Bundles.

Setting parameters for an item

Syntax Syntax

  1. 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.
End of the code.

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