SAP EFG_GET_PRINT_PARAMETERS Function Module for









EFG_GET_PRINT_PARAMETERS is a standard efg get print parameters 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 get print parameters FM, simply by entering the name EFG_GET_PRINT_PARAMETERS into the relevant SAP transaction such as SE37 or SE38.

Function Group: EFGPO
Program Name: SAPLEFGPO
Main Program: SAPLEFGPO
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EFG_GET_PRINT_PARAMETERS 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_GET_PRINT_PARAMETERS'"
EXPORTING
* X_PRINTPARAMS = "
* X_NO_PREVIEW = "
* X_ONLY_PRINTER = "
* X_NO_LAST_DOC = "
* X_NO_DIALOG = "ID: No dialog
* X_ONLY_SENDTYPE_PRINTER = "
* X_NO_OCL_ACTIVE = 'X' "
* X_NO_SENDCONTROL = 'X' "
* X_SUPPRESS_BCI_DIALOG = "
* I_FLG_EMSG = 'X' "
* X_FLG_DISPLAY_ONLY = "
* X_ARCHIVE_BOR_OBJECT = "
* X_ARCHIVE_ARC_OBJECT = "
* X_ARCHIVE_OBJECT_ID = "
* X_NO_DELAYED_PRINT = 'X' "General Checkbox: X or ' '
* X_NO_FORMKEY = 'X' "
* X_NO_ARCHIVE = "
* X_CHECK_ARCHIVE = 'X' "
* X_FORCE_SAPSCRIPT = '' "

IMPORTING
Y_PRINTPARAMS = "
Y_ARCHIVE_INDEX = "
Y_ARCHIVE_PARAMS = "
Y_RECIPIENT = "

EXCEPTIONS
CANCELLED = 1 INPUT_ERROR = 2 FAILED = 3
.



IMPORTING Parameters details for EFG_GET_PRINT_PARAMETERS

X_PRINTPARAMS -

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

X_NO_PREVIEW -

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

X_ONLY_PRINTER -

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

X_NO_LAST_DOC -

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

X_NO_DIALOG - ID: No dialog

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

X_ONLY_SENDTYPE_PRINTER -

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

X_NO_OCL_ACTIVE -

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

X_NO_SENDCONTROL -

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

X_SUPPRESS_BCI_DIALOG -

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

I_FLG_EMSG -

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

X_FLG_DISPLAY_ONLY -

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

X_ARCHIVE_BOR_OBJECT -

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

X_ARCHIVE_ARC_OBJECT -

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

X_ARCHIVE_OBJECT_ID -

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

X_NO_DELAYED_PRINT - General Checkbox: X or SPACE

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

X_NO_FORMKEY -

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

X_NO_ARCHIVE -

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

X_CHECK_ARCHIVE -

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

X_FORCE_SAPSCRIPT -

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

EXPORTING Parameters details for EFG_GET_PRINT_PARAMETERS

Y_PRINTPARAMS -

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

Y_ARCHIVE_INDEX -

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

Y_ARCHIVE_PARAMS -

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

Y_RECIPIENT -

Data type: SWOTOBJID
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)

FAILED -

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

Copy and paste ABAP code example for EFG_GET_PRINT_PARAMETERS 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_cancelled  TYPE STRING, "   
lv_x_printparams  TYPE EPRINTPARAMS, "   
lv_y_printparams  TYPE EPRINTPARAMS, "   
lv_x_no_preview  TYPE ITCPO-TDNOPREV, "   
lv_x_only_printer  TYPE C, "   
lv_x_no_last_doc  TYPE C, "   
lv_x_no_dialog  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 C, "   'X'
lv_x_flg_display_only  TYPE C, "   
lv_input_error  TYPE C, "   
lv_y_archive_index  TYPE TOA_DARA, "   
lv_x_archive_bor_object  TYPE ARC_PARAMS-SAP_OBJECT, "   
lv_failed  TYPE ARC_PARAMS, "   
lv_y_archive_params  TYPE ARC_PARAMS, "   
lv_x_archive_arc_object  TYPE ARC_PARAMS-AR_OBJECT, "   
lv_y_recipient  TYPE SWOTOBJID, "   
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_force_sapscript  TYPE C. "   ''

  CALL FUNCTION 'EFG_GET_PRINT_PARAMETERS'  "
    EXPORTING
         X_PRINTPARAMS = lv_x_printparams
         X_NO_PREVIEW = lv_x_no_preview
         X_ONLY_PRINTER = lv_x_only_printer
         X_NO_LAST_DOC = lv_x_no_last_doc
         X_NO_DIALOG = lv_x_no_dialog
         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_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_FORCE_SAPSCRIPT = lv_x_force_sapscript
    IMPORTING
         Y_PRINTPARAMS = lv_y_printparams
         Y_ARCHIVE_INDEX = lv_y_archive_index
         Y_ARCHIVE_PARAMS = lv_y_archive_params
         Y_RECIPIENT = lv_y_recipient
    EXCEPTIONS
        CANCELLED = 1
        INPUT_ERROR = 2
        FAILED = 3
. " EFG_GET_PRINT_PARAMETERS




ABAP code using 7.40 inline data declarations to call FM EFG_GET_PRINT_PARAMETERS

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 TDNOPREV FROM ITCPO INTO @DATA(ld_x_no_preview).
 
 
 
 
 
DATA(ld_x_no_ocl_active) = 'X'.
 
DATA(ld_x_no_sendcontrol) = 'X'.
 
 
DATA(ld_i_flg_emsg) = 'X'.
 
 
 
 
"SELECT single SAP_OBJECT FROM ARC_PARAMS INTO @DATA(ld_x_archive_bor_object).
 
 
 
"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'.
 
DATA(ld_x_force_sapscript) = ''.
 


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!