SAP G_POPUP_FOR_ENTERING_VALUES Function Module for









G_POPUP_FOR_ENTERING_VALUES is a standard g popup for entering values SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 g popup for entering values FM, simply by entering the name G_POPUP_FOR_ENTERING_VALUES into the relevant SAP transaction such as SE37 or SE38.

Function Group: GARC
Program Name: SAPLGARC
Main Program: SAPLGARC
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function G_POPUP_FOR_ENTERING_VALUES 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 'G_POPUP_FOR_ENTERING_VALUES'"
EXPORTING
* EXTERNAL_CHECK = ' ' "
* STATUS = ' ' "
FIELD = "
* FIELD2 = ' ' "
* FORM_NAME = ' ' "
* KEYWORD = ' ' "
* PROGRAM_NAME = ' ' "
* TAB2 = ' ' "
TAB = "
TITLE_OF_POPUP = "

IMPORTING
VALUE = "
SELECTED_FIELD = "
SELECTED_TABLE = "

EXCEPTIONS
CANCELLED = 1 INPUT_ERROR = 2
.



IMPORTING Parameters details for G_POPUP_FOR_ENTERING_VALUES

EXTERNAL_CHECK -

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

STATUS -

Data type: SY-PFKEY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELD -

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

FIELD2 -

Data type: DFIES-FIELDNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORM_NAME -

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

KEYWORD -

Data type: DFIES-SCRTEXT_L
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROGRAM_NAME -

Data type: TRDIR-NAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TAB2 -

Data type: DFIES-TABNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TAB -

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

TITLE_OF_POPUP -

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

EXPORTING Parameters details for G_POPUP_FOR_ENTERING_VALUES

VALUE -

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

SELECTED_FIELD -

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

SELECTED_TABLE -

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

EXCEPTIONS details

CANCELLED -

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

INPUT_ERROR -

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

Copy and paste ABAP code example for G_POPUP_FOR_ENTERING_VALUES 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_value  TYPE STRING, "   
lv_cancelled  TYPE STRING, "   
lv_external_check  TYPE STRING, "   SPACE
lv_status  TYPE SY-PFKEY, "   SPACE
lv_field  TYPE DFIES-FIELDNAME, "   
lv_input_error  TYPE DFIES, "   
lv_selected_field  TYPE DFIES-FIELDNAME, "   
lv_field2  TYPE DFIES-FIELDNAME, "   SPACE
lv_selected_table  TYPE DFIES-TABNAME, "   
lv_form_name  TYPE DFIES, "   SPACE
lv_keyword  TYPE DFIES-SCRTEXT_L, "   SPACE
lv_program_name  TYPE TRDIR-NAME, "   SPACE
lv_tab2  TYPE DFIES-TABNAME, "   SPACE
lv_tab  TYPE DFIES-TABNAME, "   
lv_title_of_popup  TYPE DFIES. "   

  CALL FUNCTION 'G_POPUP_FOR_ENTERING_VALUES'  "
    EXPORTING
         EXTERNAL_CHECK = lv_external_check
         STATUS = lv_status
         FIELD = lv_field
         FIELD2 = lv_field2
         FORM_NAME = lv_form_name
         KEYWORD = lv_keyword
         PROGRAM_NAME = lv_program_name
         TAB2 = lv_tab2
         TAB = lv_tab
         TITLE_OF_POPUP = lv_title_of_popup
    IMPORTING
         VALUE = lv_value
         SELECTED_FIELD = lv_selected_field
         SELECTED_TABLE = lv_selected_table
    EXCEPTIONS
        CANCELLED = 1
        INPUT_ERROR = 2
. " G_POPUP_FOR_ENTERING_VALUES




ABAP code using 7.40 inline data declarations to call FM G_POPUP_FOR_ENTERING_VALUES

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_external_check) = ' '.
 
"SELECT single PFKEY FROM SY INTO @DATA(ld_status).
DATA(ld_status) = ' '.
 
"SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_field).
 
 
"SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_selected_field).
 
"SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_field2).
DATA(ld_field2) = ' '.
 
"SELECT single TABNAME FROM DFIES INTO @DATA(ld_selected_table).
 
DATA(ld_form_name) = ' '.
 
"SELECT single SCRTEXT_L FROM DFIES INTO @DATA(ld_keyword).
DATA(ld_keyword) = ' '.
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_program_name).
DATA(ld_program_name) = ' '.
 
"SELECT single TABNAME FROM DFIES INTO @DATA(ld_tab2).
DATA(ld_tab2) = ' '.
 
"SELECT single TABNAME FROM DFIES INTO @DATA(ld_tab).
 
 


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!