SAP FIELD_GET_SCREEN Function Module for
FIELD_GET_SCREEN is a standard field get screen 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 field get screen FM, simply by entering the name FIELD_GET_SCREEN into the relevant SAP transaction such as SE37 or SE38.
Function Group: MGDS
Program Name: SAPLMGDS
Main Program: SAPLMGDS
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FIELD_GET_SCREEN 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 'FIELD_GET_SCREEN'".
EXPORTING
BILDSEQUENZ = "
FIELDNAME = "
AKTVSTATUS = "
* KZRFB = ' ' "
* WERKS_TYP = ' ' "
* CHECK_AKTVSTATUS = 'X' "
* ONLY_MAIN_SCREENS = ' ' "
IMPORTING
NAUSW = "
LTYP = "
NFCOD = "
AKTVSTATUS = "
EXCEPTIONS
PSTAT_NOT_IN_AKTVSTAT = 1 NOT_FOUND = 2
IMPORTING Parameters details for FIELD_GET_SCREEN
BILDSEQUENZ -
Data type: T133A-BILDSOptional: No
Call by Reference: No ( called with pass by value option)
FIELDNAME -
Data type: T130F-FNAMEOptional: No
Call by Reference: No ( called with pass by value option)
AKTVSTATUS -
Data type: T130M-PSTATOptional: No
Call by Reference: No ( called with pass by value option)
KZRFB -
Data type: MTCOM-KZRFBDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WERKS_TYP -
Data type: T001W-VLFKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_AKTVSTATUS -
Data type: SY-DATARDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONLY_MAIN_SCREENS -
Data type: SY-DATARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FIELD_GET_SCREEN
NAUSW -
Data type: T133D-NAUSWOptional: No
Call by Reference: No ( called with pass by value option)
LTYP -
Data type: D021S-LTYPOptional: No
Call by Reference: No ( called with pass by value option)
NFCOD -
Data type: T133D-NFCODOptional: No
Call by Reference: No ( called with pass by value option)
AKTVSTATUS -
Data type: T130M-PSTATOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PSTAT_NOT_IN_AKTVSTAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FIELD_GET_SCREEN 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_nausw | TYPE T133D-NAUSW, " | |||
| lv_bildsequenz | TYPE T133A-BILDS, " | |||
| lv_pstat_not_in_aktvstat | TYPE T133A, " | |||
| lv_ltyp | TYPE D021S-LTYP, " | |||
| lv_fieldname | TYPE T130F-FNAME, " | |||
| lv_not_found | TYPE T130F, " | |||
| lv_nfcod | TYPE T133D-NFCOD, " | |||
| lv_aktvstatus | TYPE T130M-PSTAT, " | |||
| lv_kzrfb | TYPE MTCOM-KZRFB, " SPACE | |||
| lv_aktvstatus | TYPE T130M-PSTAT, " | |||
| lv_werks_typ | TYPE T001W-VLFKZ, " SPACE | |||
| lv_check_aktvstatus | TYPE SY-DATAR, " 'X' | |||
| lv_only_main_screens | TYPE SY-DATAR. " SPACE |
|   CALL FUNCTION 'FIELD_GET_SCREEN' " |
| EXPORTING | ||
| BILDSEQUENZ | = lv_bildsequenz | |
| FIELDNAME | = lv_fieldname | |
| AKTVSTATUS | = lv_aktvstatus | |
| KZRFB | = lv_kzrfb | |
| WERKS_TYP | = lv_werks_typ | |
| CHECK_AKTVSTATUS | = lv_check_aktvstatus | |
| ONLY_MAIN_SCREENS | = lv_only_main_screens | |
| IMPORTING | ||
| NAUSW | = lv_nausw | |
| LTYP | = lv_ltyp | |
| NFCOD | = lv_nfcod | |
| AKTVSTATUS | = lv_aktvstatus | |
| EXCEPTIONS | ||
| PSTAT_NOT_IN_AKTVSTAT = 1 | ||
| NOT_FOUND = 2 | ||
| . " FIELD_GET_SCREEN | ||
ABAP code using 7.40 inline data declarations to call FM FIELD_GET_SCREEN
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.| "SELECT single NAUSW FROM T133D INTO @DATA(ld_nausw). | ||||
| "SELECT single BILDS FROM T133A INTO @DATA(ld_bildsequenz). | ||||
| "SELECT single LTYP FROM D021S INTO @DATA(ld_ltyp). | ||||
| "SELECT single FNAME FROM T130F INTO @DATA(ld_fieldname). | ||||
| "SELECT single NFCOD FROM T133D INTO @DATA(ld_nfcod). | ||||
| "SELECT single PSTAT FROM T130M INTO @DATA(ld_aktvstatus). | ||||
| "SELECT single KZRFB FROM MTCOM INTO @DATA(ld_kzrfb). | ||||
| DATA(ld_kzrfb) | = ' '. | |||
| "SELECT single PSTAT FROM T130M INTO @DATA(ld_aktvstatus). | ||||
| "SELECT single VLFKZ FROM T001W INTO @DATA(ld_werks_typ). | ||||
| DATA(ld_werks_typ) | = ' '. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_check_aktvstatus). | ||||
| DATA(ld_check_aktvstatus) | = 'X'. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_only_main_screens). | ||||
| DATA(ld_only_main_screens) | = ' '. | |||
Search for further information about these or an SAP related objects