sapdev logo background
sapdev logo sapdev logo
Comments

SAP DYNP SPLITTER CONTROL SPCL documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Splitter Control s
A splitter control is a screen element that divides the area which it covers into two subscreen areas
, either horizontally beside each other or vertically one above the other. The division is made by a ( sash ). The horizontal or vertical position of the sash is specified statically in the definition of the splitter control . It can be set to PBO in the ABAP program and changed by the user whilst the screen is being displayed.
Inserting subscreen dynpros into both subscreen areas takes place in exactly the same way as direct insertion using the
CALL SUBSCREEN statement in the dynpro flow logic. Any subscreens can be inserted, particularly those that contain splitter control
s again.
In ABAP programs, the position of the sash of a splitter control s is controlled using an instance of the CL_DYNPRO_SPLITTER class. If, before sending this screen, an object of this class is created and its constructor is given the name of a splitter control , this is bound to the splitter control and its methods can be used to set and read the position of the sash. The sash position is specified by percentage and refers to the width or height of the splitter control . In the object, the position is represented by a private attribute. Important methods of the class are:
  • GET_GUISASH


  • For PAI , it sets the sash position of the object to the current value of the bound splitter control .
  • SET_SASH


  • If no value is passed at the POSITION parameter, the method for PBO sets the sash position of the bound splitter control to the value of the object. If a value is passed at the
    POSITION parameter, the method for PBO sets the attribute of the object and the sash position of the bound splitter control to this value. For PAI , only the attribute of the object is set.
  • GET_SASH


  • Gets the sash position of the bound splitter control for PBO and PAI .
    A splitter control can have a
    function code assigned to it, which can be used to react to changes to the sash position made by the user in ABAP programs.

    Notes
  • A splitter control can only be created in the alphanumeric Screen Painter by using Edit - Create Element - Splitter Control

  • . For this reason it should only be used in cases when the functionality offered is required on classic dynpros. Usually, Web Dynpro ABAP should be used instead of classic dynpros for new developments.
  • Splitter control s offer certain advantages over the corresponding

  • CFW containers. One advantage is that they allow all screen elements of a classic dynpro to be displayed directly in a flexible frame, another is that they have better performance than CFW controls. An example of intensive use of splitter control s is the flexible interface of the ABAP Debugger.

    Example
    Refer to Dynpros, Splitter Control s .
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    DYNP_FIELD_MESSAGES
    DYNP_SUBSCREEN




    comments powered by Disqus