Customizing: From Application to Graphic

Purpose

The application can create a customizing object, then change various attributes in this object and assign the object to a port in the graphics proxy. Once the graphics proxy has been activated the graphic is displayed with the visualization attributes specified in the customizing object.

Prerequisites

In this case the customizing object is not loaded from the database and does not have to be saved to the database.

Process Flow

The graphic shows what happens when the application creates customizing objects, changes attributes and transfers the customizing data to the graphic. The order of events can be read vertically down the graphic:

  1. The application creates the customizing object. In this example of a drawing area it has the ID 4711.

  2. CREATE OBJECT <instance of CL_CU_DRAWING_AREA>

    EXPORTING INSTANCE_ID = "4711".

  3. The application can change individual values, for example the title of the drawing area.

  4. Start of the navigation pathCALL METHOD <instance of CL_CU_DRAWING_AREA  Next navigation step > Next navigation step  IF_CUSTOMIZING~SETEnd of the navigation path

    EXPORTING ATTR_ID = CL_CU_DRAWING_AREA => CO_TITLE

    VALUE = "This is the new title".

  5. Using the method ADD_CU_BUNDLE the application notifies the graphics proxy about the customizing object and at which port it is to be used.

  6. CALL METHOD <instance of graphics proxy >

    Start of the navigation path IF_GRAPHIC_PROXY~ADD_CU_BUNDLEEnd of the navigation path

    EXPORTING PORT = IF_GRAPHIC_PROXY => CO_PORT…

    BUNDLE = <instance of CL_CU_DRAWING_AREA>

    IMPORTING RETVAL = <return value>

  7. After all the customizing steps have been completed the graphics proxy has to be activated.

  8. Start of the navigation pathCALL METHOD <instance of graphics proxy  Next navigation step > Next navigation step  ACTIVATEEnd of the navigation path

    IMPORTING RETVAL = <return value>

  9. The graphic is displayed with the display attributes specified in the customizing object. The label 5:#§&:-) is to indicate that the method call is product-specific .