Show TOC

Function documentationInterfaces, Methods, and Function Modules in the EGF

 

The Easy Graphics Framework (EGF) allows you to work with various interfaces, methods, and function modules.

Features

Interfaces and Methods

The following table gives you an overview of the methods in the EGF.

Interface

Method

Description

/SCWM/IF_EGF_SP

GET_DATA

Gets chart data from the application. Most charts require a group of row values and a group of data categories as data format. A simple chart, such as a traffic light, only sets the color of the traffic light.

/SCWM/IF_EGF_SP

GET_URL

Gets a URL from the application. This URL forms the link to the graphic that the EGF is to display.

/SCWM/IF_EGF_SP

HANDLE_FUNCTION

If the application receives a function code for a follow-up activity, this interface method enters the function code for the chart.

/SCWM/IF_EGF_SP

DRILL_DOWN

Specifies what to do if the user chooses (drills down to) the corresponding EGF object.

/SCWM/IF_EGF_SP

OBJECT_REMOVED

If the object is removed from the display, a notification of this event can be implemented with this interface method.

/SCWM/IF_EGF_SP

SET_FUNCTIONS

Adds functions dynamically for an object, which are then displayed in the object’s context menu and can be handled in method HANDLE_FUNCTION.

You can use these interfaces to do the following:

For more information, see the interface documentation.

Function Modules

The following table gives you an overview of the function modules in the EGF.

Function Module

Description

/SCWM/EGF_COCKPIT

Starts an EGF cockpit implementation. You must enter the cockpit ID as an import parameter.

/SCWM/EGF_CONTAINER

You transfer a container instance to the function module, such as to class CL_GUI_CUSTOM_CONTAINER, in which the required EGF object is displayed.

/SCWM/EGF_POPUP

The system generates a modeless dialog box in which the required EGF object is displayed.

/SCWM/EGF_COCKPIT_DYNAMIC

Starts an EGF cockpit dynamically. All the data required for generating the cockpit is transferred using the interfaces of the function module. No Customizing is required here.

/SCWM/EGF_CONTAINER_DYNAMIC

You transfer a container instance to the function module, such as to class CL_GUI_CUSTOM_CONTAINER, in which the required EGF object is displayed. The EGF object definition is done dynamically using the interface of the function module. No Customizing is required here.

/SCWM/EGF_POPUP_DYNAMIC

The system generates a modeless dialog box in which the required EGF object is displayed. The EGF object definition is done dynamically using the interface of the function module. No Customizing is required here.

You can use these function modules to do the following:

  • Start an EGF cockpit implementation

  • Transfer a container instance to a function module

  • Generate a modeless dialog box

    You can display a graphic as a subscreen or as a separate modeless dialog box in your application. To do this, in Customizing for EWM, choose the following activities under Start of the navigation path Monitoring Next navigation step Easy Graphics Framework End of the navigation path:

    • Define Chart Types

    • Define Cockpits

For more information, see the function module documentation.