SAP RKE_POPUP_TEXT_DECIDE_VARTEXT Function Module for Dialog box with documentation, parameters and free text









RKE_POPUP_TEXT_DECIDE_VARTEXT is a standard rke popup text decide vartext SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Dialog box with documentation, parameters and free text processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rke popup text decide vartext FM, simply by entering the name RKE_POPUP_TEXT_DECIDE_VARTEXT into the relevant SAP transaction such as SE37 or SE38.

Function Group: KEA6
Program Name: SAPLKEA6
Main Program: SAPLKEA6
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RKE_POPUP_TEXT_DECIDE_VARTEXT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RKE_POPUP_TEXT_DECIDE_VARTEXT'"Dialog box with documentation, parameters and free text
EXPORTING
* OPTIONS = 'EC' "Flags for pushbuttons in pop-up
OBJECT_ID = "ID of document type (example: NA = message)
OBJECT = "Object name of document (example: KE780)
* NA_SHORTTEXT = ' ' "Display message short text in pop-up
* TITEL = ' ' "Title for pop-up

IMPORTING
ANSWER = "Selected pushbutton

TABLES
* T_PARAMS = "Table with &V1& - &V4& parameters
* T_TEXTTAB = "Table with free text in SAPscript format

EXCEPTIONS
DOCU_NOT_FOUND = 1
.



IMPORTING Parameters details for RKE_POPUP_TEXT_DECIDE_VARTEXT

OPTIONS - Flags for pushbuttons in pop-up

Data type:
Default: 'EC'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT_ID - ID of document type (example: NA = message)

Data type: DOKHL-ID
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT - Object name of document (example: KE780)

Data type: DOKHL-OBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

NA_SHORTTEXT - Display message short text in pop-up

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITEL - Title for pop-up

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RKE_POPUP_TEXT_DECIDE_VARTEXT

ANSWER - Selected pushbutton

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RKE_POPUP_TEXT_DECIDE_VARTEXT

T_PARAMS - Table with &V1& - &V4& parameters

Data type: SPAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_TEXTTAB - Table with free text in SAPscript format

Data type: TLINE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

DOCU_NOT_FOUND - Documentation not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RKE_POPUP_TEXT_DECIDE_VARTEXT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_answer  TYPE STRING, "   
lv_options  TYPE STRING, "   'EC'
lt_t_params  TYPE STANDARD TABLE OF SPAR, "   
lv_docu_not_found  TYPE SPAR, "   
lv_object_id  TYPE DOKHL-ID, "   
lt_t_texttab  TYPE STANDARD TABLE OF TLINE, "   
lv_object  TYPE DOKHL-OBJECT, "   
lv_na_shorttext  TYPE DOKHL, "   ' '
lv_titel  TYPE DOKHL. "   ' '

  CALL FUNCTION 'RKE_POPUP_TEXT_DECIDE_VARTEXT'  "Dialog box with documentation, parameters and free text
    EXPORTING
         OPTIONS = lv_options
         OBJECT_ID = lv_object_id
         OBJECT = lv_object
         NA_SHORTTEXT = lv_na_shorttext
         TITEL = lv_titel
    IMPORTING
         ANSWER = lv_answer
    TABLES
         T_PARAMS = lt_t_params
         T_TEXTTAB = lt_t_texttab
    EXCEPTIONS
        DOCU_NOT_FOUND = 1
. " RKE_POPUP_TEXT_DECIDE_VARTEXT




ABAP code using 7.40 inline data declarations to call FM RKE_POPUP_TEXT_DECIDE_VARTEXT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
DATA(ld_options) = 'EC'.
 
 
 
"SELECT single ID FROM DOKHL INTO @DATA(ld_object_id).
 
 
"SELECT single OBJECT FROM DOKHL INTO @DATA(ld_object).
 
DATA(ld_na_shorttext) = ' '.
 
DATA(ld_titel) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!