SAP FTR_CORR_DATA_RP_WRITE Function Module for Repos: Print Correspondence Data (SAPscript)
FTR_CORR_DATA_RP_WRITE is a standard ftr corr data rp write SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Repos: Print Correspondence Data (SAPscript) processing and below is the pattern details for this FM, 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 ftr corr data rp write FM, simply by entering the name FTR_CORR_DATA_RP_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB85
Program Name: SAPLTB85
Main Program: SAPLTB85
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FTR_CORR_DATA_RP_WRITE 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 'FTR_CORR_DATA_RP_WRITE'"Repos: Print Correspondence Data (SAPscript).
EXPORTING
I_VTBFHA = "
* SELECTION_I = 'X' "
* SELECTION_M = 'X' "
* IV_NEW = "Testflag for new correspondence
* IV_PRINT_NEW = "Datenelement zur Domäne BOOLE: TRUE (='X') und FALSE (=' ')
I_VTBFHAZU = "
I_VTBKORES = "
T_VTBFHAPO = "
I_TBCO_RP = "Output Structure for Repo Confirmations
FORM_TAB = "
* SHOW = ' ' "
* SELECTION_P = 'X' "
* SELECTION_F = 'X' "
IMPORTING
E_VTBKORES = "
ET_CONTENT = "
TABLES
T_TBCO_ZS = "
T_TBCO_REF = "
T_TBCO_BANK = "Output Structure for Bank Data (New with CFM 1.0)
IMPORTING Parameters details for FTR_CORR_DATA_RP_WRITE
I_VTBFHA -
Data type: VTBFHAOptional: No
Call by Reference: Yes
SELECTION_I -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: Yes
SELECTION_M -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_NEW - Testflag for new correspondence
Data type: COptional: Yes
Call by Reference: Yes
IV_PRINT_NEW - Datenelement zur Domäne BOOLE: TRUE (='X') und FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
I_VTBFHAZU -
Data type: VTBFHAZUOptional: No
Call by Reference: Yes
I_VTBKORES -
Data type: VTBKORESOptional: No
Call by Reference: No ( called with pass by value option)
T_VTBFHAPO -
Data type: TRTB_TFHAPOOptional: No
Call by Reference: Yes
I_TBCO_RP - Output Structure for Repo Confirmations
Data type: TBCO_RPOptional: No
Call by Reference: No ( called with pass by value option)
FORM_TAB -
Data type: AT80Optional: No
Call by Reference: No ( called with pass by value option)
SHOW -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: Yes
SELECTION_P -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: Yes
SELECTION_F -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FTR_CORR_DATA_RP_WRITE
E_VTBKORES -
Data type: VTBKORESOptional: No
Call by Reference: No ( called with pass by value option)
ET_CONTENT -
Data type: TCORFY_CONTENTOptional: No
Call by Reference: Yes
TABLES Parameters details for FTR_CORR_DATA_RP_WRITE
T_TBCO_ZS -
Data type: TBCO_ZSOptional: No
Call by Reference: No ( called with pass by value option)
T_TBCO_REF -
Data type: TBCO_REFOptional: No
Call by Reference: No ( called with pass by value option)
T_TBCO_BANK - Output Structure for Bank Data (New with CFM 1.0)
Data type: TBCO_BANKOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FTR_CORR_DATA_RP_WRITE 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_i_vtbfha | TYPE VTBFHA, " | |||
| lt_t_tbco_zs | TYPE STANDARD TABLE OF TBCO_ZS, " | |||
| lv_e_vtbkores | TYPE VTBKORES, " | |||
| lv_selection_i | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_selection_m | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_iv_new | TYPE C, " | |||
| lv_iv_print_new | TYPE BOOLE_D, " | |||
| lv_et_content | TYPE TCORFY_CONTENT, " | |||
| lv_i_vtbfhazu | TYPE VTBFHAZU, " | |||
| lt_t_tbco_ref | TYPE STANDARD TABLE OF TBCO_REF, " | |||
| lv_i_vtbkores | TYPE VTBKORES, " | |||
| lt_t_tbco_bank | TYPE STANDARD TABLE OF TBCO_BANK, " | |||
| lv_t_vtbfhapo | TYPE TRTB_TFHAPO, " | |||
| lv_i_tbco_rp | TYPE TBCO_RP, " | |||
| lv_form_tab | TYPE AT80, " | |||
| lv_show | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_selection_p | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_selection_f | TYPE BOOLE-BOOLE. " 'X' |
|   CALL FUNCTION 'FTR_CORR_DATA_RP_WRITE' "Repos: Print Correspondence Data (SAPscript) |
| EXPORTING | ||
| I_VTBFHA | = lv_i_vtbfha | |
| SELECTION_I | = lv_selection_i | |
| SELECTION_M | = lv_selection_m | |
| IV_NEW | = lv_iv_new | |
| IV_PRINT_NEW | = lv_iv_print_new | |
| I_VTBFHAZU | = lv_i_vtbfhazu | |
| I_VTBKORES | = lv_i_vtbkores | |
| T_VTBFHAPO | = lv_t_vtbfhapo | |
| I_TBCO_RP | = lv_i_tbco_rp | |
| FORM_TAB | = lv_form_tab | |
| SHOW | = lv_show | |
| SELECTION_P | = lv_selection_p | |
| SELECTION_F | = lv_selection_f | |
| IMPORTING | ||
| E_VTBKORES | = lv_e_vtbkores | |
| ET_CONTENT | = lv_et_content | |
| TABLES | ||
| T_TBCO_ZS | = lt_t_tbco_zs | |
| T_TBCO_REF | = lt_t_tbco_ref | |
| T_TBCO_BANK | = lt_t_tbco_bank | |
| . " FTR_CORR_DATA_RP_WRITE | ||
ABAP code using 7.40 inline data declarations to call FM FTR_CORR_DATA_RP_WRITE
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 BOOLE FROM BOOLE INTO @DATA(ld_selection_i). | ||||
| DATA(ld_selection_i) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_selection_m). | ||||
| DATA(ld_selection_m) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_show). | ||||
| DATA(ld_show) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_selection_p). | ||||
| DATA(ld_selection_p) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_selection_f). | ||||
| DATA(ld_selection_f) | = 'X'. | |||
Search for further information about these or an SAP related objects