SAP FI_PDF_PRINT_PREPARE Function Module for
FI_PDF_PRINT_PREPARE is a standard fi pdf print prepare 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 fi pdf print prepare FM, simply by entering the name FI_PDF_PRINT_PREPARE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FREGU2
Program Name: SAPLFREGU2
Main Program: SAPLFREGU2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FI_PDF_PRINT_PREPARE 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 'FI_PDF_PRINT_PREPARE'".
EXPORTING
IS_REGUH = "Payment Medium: Prepared Data for Payment
* IS_FINAA = "Data for transmission medium for correspondence
* IS_ITCPO = "SAPscript Output Interface
* I_LANGU = SY-LANGU "Language key of the payee
* I_SORT_VARIANT = "Sort Variant for the Line Items
IMPORTING
ES_FPAYH = "Payment medium: Payment data
ES_FPAYHX = "Payment Medium: Prepared Data for Payment
ES_FPPARAMS = "Form Processing Output Parameter
TABLES
* IT_REGUP = "Processed items from payment program
* ET_FPAYP = "Payment medium: Data on paid items
* ET_PAYM_NOTE_TEXT = "
IMPORTING Parameters details for FI_PDF_PRINT_PREPARE
IS_REGUH - Payment Medium: Prepared Data for Payment
Data type: REGUHOptional: No
Call by Reference: Yes
IS_FINAA - Data for transmission medium for correspondence
Data type: FINAAOptional: Yes
Call by Reference: Yes
IS_ITCPO - SAPscript Output Interface
Data type: ITCPOOptional: Yes
Call by Reference: Yes
I_LANGU - Language key of the payee
Data type: DZSPRADefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
I_SORT_VARIANT - Sort Variant for the Line Items
Data type: SVARPOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FI_PDF_PRINT_PREPARE
ES_FPAYH - Payment medium: Payment data
Data type: FPAYHOptional: No
Call by Reference: Yes
ES_FPAYHX - Payment Medium: Prepared Data for Payment
Data type: FPAYHXOptional: No
Call by Reference: Yes
ES_FPPARAMS - Form Processing Output Parameter
Data type: SFPOUTPUTPARAMSOptional: No
Call by Reference: Yes
TABLES Parameters details for FI_PDF_PRINT_PREPARE
IT_REGUP - Processed items from payment program
Data type: REGUPOptional: Yes
Call by Reference: Yes
ET_FPAYP - Payment medium: Data on paid items
Data type: FPAYPOptional: Yes
Call by Reference: Yes
ET_PAYM_NOTE_TEXT -
Data type: TLINEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FI_PDF_PRINT_PREPARE 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_es_fpayh | TYPE FPAYH, " | |||
| lv_is_reguh | TYPE REGUH, " | |||
| lt_it_regup | TYPE STANDARD TABLE OF REGUP, " | |||
| lt_et_fpayp | TYPE STANDARD TABLE OF FPAYP, " | |||
| lv_is_finaa | TYPE FINAA, " | |||
| lv_es_fpayhx | TYPE FPAYHX, " | |||
| lv_is_itcpo | TYPE ITCPO, " | |||
| lv_es_fpparams | TYPE SFPOUTPUTPARAMS, " | |||
| lt_et_paym_note_text | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_i_langu | TYPE DZSPRA, " SY-LANGU | |||
| lv_i_sort_variant | TYPE SVARP. " |
|   CALL FUNCTION 'FI_PDF_PRINT_PREPARE' " |
| EXPORTING | ||
| IS_REGUH | = lv_is_reguh | |
| IS_FINAA | = lv_is_finaa | |
| IS_ITCPO | = lv_is_itcpo | |
| I_LANGU | = lv_i_langu | |
| I_SORT_VARIANT | = lv_i_sort_variant | |
| IMPORTING | ||
| ES_FPAYH | = lv_es_fpayh | |
| ES_FPAYHX | = lv_es_fpayhx | |
| ES_FPPARAMS | = lv_es_fpparams | |
| TABLES | ||
| IT_REGUP | = lt_it_regup | |
| ET_FPAYP | = lt_et_fpayp | |
| ET_PAYM_NOTE_TEXT | = lt_et_paym_note_text | |
| . " FI_PDF_PRINT_PREPARE | ||
ABAP code using 7.40 inline data declarations to call FM FI_PDF_PRINT_PREPARE
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_i_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects