Anfang des Inhaltsbereichs

Funktionsdokumentation Setting Parameters  Dokument im Navigationsbaum lokalisieren

Use

To set an attribute value for a customizing object use the method IF_CUSTOMIZING~SET. You can use this method to set a whole display context for a customizing object.

Prerequisites

You have already created an instance of the relevant customizing object.

Features

If a display context is set all the attributes of this context instance are copied. No reference to the original context is held.

Since the graphics proxy is given a reference to the customizing object the parameters for the customizing object can be set before or after it is assigned to the graphics proxy using IF_GRAPHIC_PROXY~ADD_CU_BUNDLE.

Activities

Setting a title for the drawing area:

CALL METHOD <reference variable for drawing area>->IF_CUSTOMIZING~SET EXPORTING

ATTR_ID = CL_CU_DRAWING_AREA=>CO_TITLE

VALUE = (text title).

ATTR_ID specifies the attribute to be changed in the bundle. VALUE contains the new value of the attribute.

Setting a display context for the title of the drawing area:

  1. Create display context:
  2. CREATE OBJECT <display context> EXPORTING INSTANCE_ID = 'Dummy'.

  3. Set area style of display context to waves
  4. CALL METHOD <display context>=>IF_CUSTOMIZING~SET

    EXPORTING

    ATTR_ID = CL_CU_DISPLAY_CONTEXT=>CO_AREA_STYLE

    VALUE = 1. "Structure

    CALL METHOD <display context>=>IF_CUSTOMIZING~SET

    EXPORTING

    ATTR_ID = CL_CU_DISPLAY_CONTEXT=>CO_BG_STRUCTURE

    VALUE = 13. "Waves

  5. Set display context of drawing area as title context

CALL METHOD <drawing area>->IF_CUSTOMIZING~SET

EXPORTING

ATTR_ID = CL_CU_DRAWING_AREA=>CO_TITLE_CONTEXT

VALUE = <display context>.