MultiplexerLocate this document in the navigation structure

Definition

The multiplexer is responsible for handling program graphics and synchronizing graphics proxies with respect to certain graphical events.

The multiplexer as handler of program graphics

Graphics started as an external program to the SAP system GUI (program graphics) are programmed differently than other graphics. The graphics proxies encapsulate most of the functionality involved in programming the graphics (formatting the data and so on) in their product-specific section.

Implementing endless loops necessary for program graphics and sending events are independent of the Control Framework but must be carried out by an instance. The multiplexer in the Graphical Framework carries out these tasks.

The multiplexer as synchronization instance

The multiplexer sends selected events from one graphical object to another automatically. For more information, see Synchronizing Events.

Use

To ensure that program graphics are handled properly the application has to call the method ACTIVATE in CL_GFW_MUX at the end of PBO. If you do not want to use program graphics at any time make sure that you enforce the required graphics product when the graphics proxy is initialized. To do this set the parameter FORCE_PROD to GFW_TRUE. Unless you do this you will have to call the method ACTIVATE at the end of PBO.

Activating the multiplexer

CALL METHOD CL_GFW_MUX=>ACTIVATE IMPORTING RETVAL = RETVAL.

IF RETVAL <> CL_GFW=>OK.

CALL METHOD CL_GFW=>SHOW_MSG EXPORTING MSGNO = RETVAL.

ENDIF.

If you want the multiplexer to synchronize graphics with respect to certain events you have to give the multiplexer a list of synchronization jobs.

Structure

The definition of the individual methods in the multiplexer can be found in the class definition (CL_GFW_MUX) in the class builder.

There can be only one multiplexer during the runtime of a program or else graphics registered with another multiplexer might not be dealt with. Therefore there is only one implementation of the multiplexer in the SAP system. The multiplexer has no interface, only a class definition. SAP provides the implementation of the global class.