SAP Function RKE_POPUP_TEXT_DECIDE - Pop-up with long text and selection option

Parameter Reference Type Length Default Optional Text
NA_SHORTTEXT 0 ' ' X Display message short text in pop-up
OBJECT DOKHL-OBJECT C 60 Object name of document (example: KE780)
OBJECT_ID DOKHL-ID C 2 ID of document type (example: NA = message)
OPTIONS 0 'EC' X Flags for pushbuttons in pop-up
TITEL 0 ' ' X Dialog box title

Parameter Reference Type Length Text
ANSWER 0 Selected pushbutton

Functionality

This function module is released for internal purposes.
The module sends a dialog box with any long text.This can be a long text for an error message or a screen text, forexample.
The dialog box contains a pushbutton bar with a number of pushbuttonswith which the user can respond to the text.
This makes it possible to give the user an explanation, warning or errormessage and at the same time allow him or her to decide how toproceed.
This function module could be used, for example, to warn a user beforehe or she changes any critical control indicators, or as a confirmationprompt for actions that require an explanation.
Possible actions (in the pushbutton bar):

  • E: Continue

  • C: Cancel

  • D: Delete

  • T: Transport

  • Y: Yes

  • N: No

  • A: Activate

  • G: Generate

  • S: Save
  • Example
    You want to display a predefined screen text. The user can choosebetween "Continue" and "Cancel".
    call function 'RKE_POPUP_TEXT_DECIDE'
    exporting
    OPTIONS = 'EC'
    object_id = 'DT' "Screen text
    object = 'DT_NAME'. "Name of screen text
    * NA_SHORTTEXT = ' '
    TITEL = 'This is a long text'
    importing
    answer = var "var = E or C
    exceptions
    others = 1.