SAP EFG_PP_SUBSCREEN_INIT Function Module for
EFG_PP_SUBSCREEN_INIT is a standard efg pp subscreen init 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 efg pp subscreen init FM, simply by entering the name EFG_PP_SUBSCREEN_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EFGPO
Program Name: SAPLEFGPO
Main Program: SAPLEFGPO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EFG_PP_SUBSCREEN_INIT 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 'EFG_PP_SUBSCREEN_INIT'".
EXPORTING
* X_PRINTPARAMS = "Print Workbench Print Option
* X_ONLY_PRINTER = "
* X_NO_LAST_DOC = "
* X_NO_DIALOG = "Suppress Dialog
* X_FORCE_SAPSCRIPT = '' "
* X_ONLY_SENDTYPE_PRINTER = "
* X_NO_OCL_ACTIVE = 'X' "
* X_NO_SENDCONTROL = 'X' "
* X_SUPPRESS_BCI_DIALOG = "
* I_FLG_EMSG = '+' "
* X_FLG_DISPLAY_ONLY = "
* X_ARCHIVE_BOR_OBJECT = "SAP ArchiveLink: Object type of business object
* X_FLG_NO_GET_RDI = '' "
* X_ARCHIVE_ARC_OBJECT = "Document Type
* X_ARCHIVE_OBJECT_ID = "SAP ArchiveLink: Object ID (Object Identifier)
* X_NO_DELAYED_PRINT = 'X' "
* X_NO_FORMKEY = 'X' "
* X_NO_ARCHIVE = "No archiving
* X_CHECK_ARCHIVE = 'X' "
* X_NO_PREVIEW = "No print preview
IMPORTING
Y_PROG = "Subscreen Program
Y_DYNNR = "
EXCEPTIONS
INPUT_ERROR = 1
IMPORTING Parameters details for EFG_PP_SUBSCREEN_INIT
X_PRINTPARAMS - Print Workbench Print Option
Data type: EPRINTPARAMSOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ONLY_PRINTER -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_LAST_DOC -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_DIALOG - Suppress Dialog
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_FORCE_SAPSCRIPT -
Data type: CDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ONLY_SENDTYPE_PRINTER -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_OCL_ACTIVE -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_SENDCONTROL -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SUPPRESS_BCI_DIALOG -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_EMSG -
Data type: EMSG_USAGE_FLAGDefault: '+'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_FLG_DISPLAY_ONLY -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_ARCHIVE_BOR_OBJECT - SAP ArchiveLink: Object type of business object
Data type: ARC_PARAMS-SAP_OBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_FLG_NO_GET_RDI -
Data type: CDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ARCHIVE_ARC_OBJECT - Document Type
Data type: ARC_PARAMS-AR_OBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ARCHIVE_OBJECT_ID - SAP ArchiveLink: Object ID (Object Identifier)
Data type: TOA_DARA-OBJECT_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_DELAYED_PRINT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_FORMKEY -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_ARCHIVE - No archiving
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
X_CHECK_ARCHIVE -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_PREVIEW - No print preview
Data type: ITCPO-TDNOPREVOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EFG_PP_SUBSCREEN_INIT
Y_PROG - Subscreen Program
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
Y_DYNNR -
Data type: SY-DYNNROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INPUT_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for EFG_PP_SUBSCREEN_INIT 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_y_prog | TYPE SY-REPID, " | |||
| lv_input_error | TYPE SY, " | |||
| lv_x_printparams | TYPE EPRINTPARAMS, " | |||
| lv_x_only_printer | TYPE C, " | |||
| lv_x_no_last_doc | TYPE C, " | |||
| lv_x_no_dialog | TYPE C, " | |||
| lv_x_force_sapscript | TYPE C, " '' | |||
| lv_x_only_sendtype_printer | TYPE C, " | |||
| lv_x_no_ocl_active | TYPE C, " 'X' | |||
| lv_x_no_sendcontrol | TYPE C, " 'X' | |||
| lv_x_suppress_bci_dialog | TYPE C, " | |||
| lv_i_flg_emsg | TYPE EMSG_USAGE_FLAG, " '+' | |||
| lv_x_flg_display_only | TYPE C, " | |||
| lv_y_dynnr | TYPE SY-DYNNR, " | |||
| lv_x_archive_bor_object | TYPE ARC_PARAMS-SAP_OBJECT, " | |||
| lv_x_flg_no_get_rdi | TYPE C, " '' | |||
| lv_x_archive_arc_object | TYPE ARC_PARAMS-AR_OBJECT, " | |||
| lv_x_archive_object_id | TYPE TOA_DARA-OBJECT_ID, " | |||
| lv_x_no_delayed_print | TYPE C, " 'X' | |||
| lv_x_no_formkey | TYPE C, " 'X' | |||
| lv_x_no_archive | TYPE C, " | |||
| lv_x_check_archive | TYPE C, " 'X' | |||
| lv_x_no_preview | TYPE ITCPO-TDNOPREV. " |
|   CALL FUNCTION 'EFG_PP_SUBSCREEN_INIT' " |
| EXPORTING | ||
| X_PRINTPARAMS | = lv_x_printparams | |
| X_ONLY_PRINTER | = lv_x_only_printer | |
| X_NO_LAST_DOC | = lv_x_no_last_doc | |
| X_NO_DIALOG | = lv_x_no_dialog | |
| X_FORCE_SAPSCRIPT | = lv_x_force_sapscript | |
| X_ONLY_SENDTYPE_PRINTER | = lv_x_only_sendtype_printer | |
| X_NO_OCL_ACTIVE | = lv_x_no_ocl_active | |
| X_NO_SENDCONTROL | = lv_x_no_sendcontrol | |
| X_SUPPRESS_BCI_DIALOG | = lv_x_suppress_bci_dialog | |
| I_FLG_EMSG | = lv_i_flg_emsg | |
| X_FLG_DISPLAY_ONLY | = lv_x_flg_display_only | |
| X_ARCHIVE_BOR_OBJECT | = lv_x_archive_bor_object | |
| X_FLG_NO_GET_RDI | = lv_x_flg_no_get_rdi | |
| X_ARCHIVE_ARC_OBJECT | = lv_x_archive_arc_object | |
| X_ARCHIVE_OBJECT_ID | = lv_x_archive_object_id | |
| X_NO_DELAYED_PRINT | = lv_x_no_delayed_print | |
| X_NO_FORMKEY | = lv_x_no_formkey | |
| X_NO_ARCHIVE | = lv_x_no_archive | |
| X_CHECK_ARCHIVE | = lv_x_check_archive | |
| X_NO_PREVIEW | = lv_x_no_preview | |
| IMPORTING | ||
| Y_PROG | = lv_y_prog | |
| Y_DYNNR | = lv_y_dynnr | |
| EXCEPTIONS | ||
| INPUT_ERROR = 1 | ||
| . " EFG_PP_SUBSCREEN_INIT | ||
ABAP code using 7.40 inline data declarations to call FM EFG_PP_SUBSCREEN_INIT
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 REPID FROM SY INTO @DATA(ld_y_prog). | ||||
| DATA(ld_x_force_sapscript) | = ''. | |||
| DATA(ld_x_no_ocl_active) | = 'X'. | |||
| DATA(ld_x_no_sendcontrol) | = 'X'. | |||
| DATA(ld_i_flg_emsg) | = '+'. | |||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_y_dynnr). | ||||
| "SELECT single SAP_OBJECT FROM ARC_PARAMS INTO @DATA(ld_x_archive_bor_object). | ||||
| DATA(ld_x_flg_no_get_rdi) | = ''. | |||
| "SELECT single AR_OBJECT FROM ARC_PARAMS INTO @DATA(ld_x_archive_arc_object). | ||||
| "SELECT single OBJECT_ID FROM TOA_DARA INTO @DATA(ld_x_archive_object_id). | ||||
| DATA(ld_x_no_delayed_print) | = 'X'. | |||
| DATA(ld_x_no_formkey) | = 'X'. | |||
| DATA(ld_x_check_archive) | = 'X'. | |||
| "SELECT single TDNOPREV FROM ITCPO INTO @DATA(ld_x_no_preview). | ||||
Search for further information about these or an SAP related objects