SAP Function POPUP_DISPLAY_TEXT_WITH_PARAMS - Dialog box for displaying a text with parameters

Parameter Reference Type Length Default Optional Text
HELP_MODAL 0 'X' X Modal/modeless button for text window
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 10 X Start column of the dialog box
START_ROW SYST-CUROW I 4 3 X Start line of the dialog box
TEXT_OBJECT DOKHL-OBJECT C 60 Name of the text document

Parameter Reference Type Length Text
CANCELLED 0 Ind. whether text display was terminated

Parameter Reference Length Optional Text
PARAMETERS SPAR 85 Value 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 sends a dialog box in which the text of a documentis displayed.
The parameters in the document are replaced, as specified in theinternal table.
The document to be transferred must be created with thedocumentation maintenance transaction(SE61) as a document of the class "Text in dialog".
If the document does not exist in the specified language, an Englishversion is first looked for, and output if found. If no English versionexists either, a German version is looked for.
Examples
The program RSSPO600 contains an example.
Notes
  • Texts which contain no parameters can be displayed with the function
  • module POPUP_DISPLAY_TEXT.
    • It is not checked whether all parameters used in the text document are
    • transferred into the internal table PARAMETERS. Missing parameters arenot displayed.
      • Use numbered texts to make parameters translatable .

      • You can choose between modal and amodal dialog boxes with the parameter
      • HELP_MODAL. If amodal display is not possible, a modal window is used.
        • You can go directly to the text maintenance with the function key F7.
        • Bedeutung
          This parameter specifies whether the text display was ended withthe pushbutton "Cancel" or the pushbutton "Continue".

          Wertebereich
          The parameter can have one of the following values:
          'X' ,,Display ended with "Cancel"
          Space,,Display ended with "Continue"
          The dialog box title line text is passed in this parameter. You can usenumbered texts to make it translatable.
          The column in which the dialog box should start is passed in thisparameter. The proposed value is 10.
          The line in which the dialog box should start is passed in thisparameter The proposed value is 3.
          A document of the class "Text im Dialog" which was created with thedocumentation maintenance transaction SE61 must be specified as textdocument.
          The parameters which are used in the text document, und theirassociated values, are passed in this table.
          Use only upper-case letters in the parameter names. If you uselower-case letters, the parameters will not be found, and thus will notbe replaced for display.