SAP Function POPUP_DISPLAY_TEXT_USER_BUTTON - Popup with user-defined pushbuttons to display a text

Parameter Reference Type Length Default Optional Text
DISPLAY_CANCEL_BUTTON 0 'X' X Cancel button display switch
DISPLAY_OK_BUTTON 0 'X' X OK button display switch
DOCU_CLASS DOKIL-ID C 2 'DT' X
LANGUAGE SYST-LANGU C 1 SY-LANGU X Text document language key
POPUP_TITLE 0 Text of title line
START_COLUMN SYST-CUCOL I 4 5 X Start column of the dialog box
START_ROW SYST-CUROW I 4 5 X Start line of the dialog box
TEXT_OBJECT DOKHL-OBJECT C 60 Name of the text document

Parameter Reference Type Length Text
ANSWER RSNEWLENG-FCODE C 20 OK code

Parameter Reference Length Optional Text
PARAMETER SPAR 85
USER_BUTTONS SMP_DYNTXT 145 X Pushbutton transfer table

Exception Text
ERROR_IN_TEXT Parameters not restricted correctly in text
TEXT_NOT_FOUND Document not found


INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX
Functionality
The function module displays a dialog box in which the text of adocument is displayed.
The document parameters are replaced as specified in the internaltable.
The document to be passed must be created with the documentationmaintenance transaction as a "Text in dialog" class document.
If the document does nicht exist in the specified language, the Englishversion is output, if there is one. If there is no English versioneither, the German version is output.
Examples
Program RSSPO601 contains an example
Notes
  • There is no check that all parameters used in the text document are
  • passed in the internal table PARAMETERS. Missing parameters are notdisplayed.
    • You should use numbered texts to make parameter values translatable.

    • This module does not support amodal display.

    • Icons, texts and Quick info can be passed for the pushbuttons and
    • function text.
      • The total length of all pushbutton texts must not be greater than 70
      • characters. If it is, the pushbutton text is suppressed, if an icon waspassed. The pushbutton text is then in the function text.

        Description
        OK code

        Value range
        OKAY, CANCEL
        BUTTON1, BUTTON2, BUTTON3, BUTTON4, BUTTON5, BUTTON6, BUTTON7, BUTTON8,BUTTON9

        Description
        Pushbutton transfer table

        Value range
        -TEXT: Function text. If there is no ICON_ID, also pushbutton text
        -ICON_ID: Icon on the pushbutton. The include should be includedin the calling program, to avoid errors.
        -ICON_TEXT: Pushbutton icon text. If there is no ICON_ID, the text isignored.
        -QUICKINFO: Pushbutton Quick info