Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV Grid OO T.O.P. center

FORM EVENT_TOP_OF_PAGE USING   DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.

DATA : DL_TEXT(255) TYPE C.  "Text

  CALL METHOD DG_DYNDOC_ID->ADD_TEXT
    EXPORTING
    TEXT = TEXT-002
    SAP_EMPHASIS = CL_DD_AREA=>HEADING.

* Add new-line
  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

  CALL METHOD DG_DYNDOC_ID->ADD_TEXT
    EXPORTING
    TEXT = TEXT-003
    SAP_EMPHASIS = CL_DD_AREA=>HEADING.

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

  CALL METHOD DG_DYNDOC_ID->ADD_TEXT
    EXPORTING
    TEXT = TEXT-004
    SAP_EMPHASIS = CL_DD_AREA=>HEADING.

  CALL METHOD DG_DYNDOC_ID->NEW_LINE.

CLEAR : DL_TEXT.

* Add new-line
  CALL METHOD DG_DYNDOC_ID->NEW_LINE.


PERFORM DISPLAYOOA.

ENDFORM.                    " EVENT_TOP_OF_PAGE

How do i center those text elements shown on codes above?.

Former Member
Not what you were looking for? View more on this topic or Ask a question