SAP FTR_CORR_DATA_LC_WRITE Function Module for Fixed-Term Deposit, Deposit at Notice: Output Correspondence (SAPscript)
FTR_CORR_DATA_LC_WRITE is a standard ftr corr data lc 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 Fixed-Term Deposit, Deposit at Notice: Output Correspondence (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 lc write FM, simply by entering the name FTR_CORR_DATA_LC_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB85
Program Name: SAPLTB85
Main Program: SAPLTB85
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FTR_CORR_DATA_LC_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_LC_WRITE'"Fixed-Term Deposit, Deposit at Notice: Output Correspondence (SAPscript).
EXPORTING
I_VTBFHA = "
* SELECTION_M = 'X' "
* IV_NEW = "Testflag for new correspondence
* IV_PRINT_NEW = "Datenelement zur Domäne BOOLE: TRUE (='X') und FALSE (=' ')
I_TBCO_LC = "Output Struct. Letter of Credit
I_VTBFHAZU = "
I_VTBKORES = "
T_VTBFHAPO = "
FORM_TAB = "
* SHOW = ' ' "
* SELECTION_P = 'X' "
* SELECTION_F = 'X' "
* SELECTION_I = 'X' "
IMPORTING
E_VTBKORES = "
ET_CONTENT = "
TABLES
T_TBCO_ZS = "
T_TBCO_INTST = "
T_TBCO_REF = "
T_TBCO_BNOM = "weitere Haupbewegungen
T_TBCO_BANK = "VTBZV-Bankdaten (neu ab CFM 1.0)
IMPORTING Parameters details for FTR_CORR_DATA_LC_WRITE
I_VTBFHA -
Data type: VTBFHAOptional: No
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_TBCO_LC - Output Struct. Letter of Credit
Data type: TBCO_LCOptional: No
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
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
SELECTION_I -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FTR_CORR_DATA_LC_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_LC_WRITE
T_TBCO_ZS -
Data type: TBCO_ZSOptional: No
Call by Reference: No ( called with pass by value option)
T_TBCO_INTST -
Data type: TBCO_INTSTOptional: 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_BNOM - weitere Haupbewegungen
Data type: TBCO_BNOMOptional: No
Call by Reference: No ( called with pass by value option)
T_TBCO_BANK - VTBZV-Bankdaten (neu ab 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_LC_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_m | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_iv_new | TYPE C, " | |||
| lv_iv_print_new | TYPE BOOLE_D, " | |||
| lv_i_tbco_lc | TYPE TBCO_LC, " | |||
| lv_et_content | TYPE TCORFY_CONTENT, " | |||
| lv_i_vtbfhazu | TYPE VTBFHAZU, " | |||
| lt_t_tbco_intst | TYPE STANDARD TABLE OF TBCO_INTST, " | |||
| lv_i_vtbkores | TYPE VTBKORES, " | |||
| lt_t_tbco_ref | TYPE STANDARD TABLE OF TBCO_REF, " | |||
| lv_t_vtbfhapo | TYPE TRTB_TFHAPO, " | |||
| lt_t_tbco_bnom | TYPE STANDARD TABLE OF TBCO_BNOM, " | |||
| lv_form_tab | TYPE AT80, " | |||
| lt_t_tbco_bank | TYPE STANDARD TABLE OF TBCO_BANK, " | |||
| lv_show | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_selection_p | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_selection_f | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_selection_i | TYPE BOOLE-BOOLE. " 'X' |
|   CALL FUNCTION 'FTR_CORR_DATA_LC_WRITE' "Fixed-Term Deposit, Deposit at Notice: Output Correspondence (SAPscript) |
| EXPORTING | ||
| I_VTBFHA | = lv_i_vtbfha | |
| SELECTION_M | = lv_selection_m | |
| IV_NEW | = lv_iv_new | |
| IV_PRINT_NEW | = lv_iv_print_new | |
| I_TBCO_LC | = lv_i_tbco_lc | |
| I_VTBFHAZU | = lv_i_vtbfhazu | |
| I_VTBKORES | = lv_i_vtbkores | |
| T_VTBFHAPO | = lv_t_vtbfhapo | |
| FORM_TAB | = lv_form_tab | |
| SHOW | = lv_show | |
| SELECTION_P | = lv_selection_p | |
| SELECTION_F | = lv_selection_f | |
| SELECTION_I | = lv_selection_i | |
| IMPORTING | ||
| E_VTBKORES | = lv_e_vtbkores | |
| ET_CONTENT | = lv_et_content | |
| TABLES | ||
| T_TBCO_ZS | = lt_t_tbco_zs | |
| T_TBCO_INTST | = lt_t_tbco_intst | |
| T_TBCO_REF | = lt_t_tbco_ref | |
| T_TBCO_BNOM | = lt_t_tbco_bnom | |
| T_TBCO_BANK | = lt_t_tbco_bank | |
| . " FTR_CORR_DATA_LC_WRITE | ||
ABAP code using 7.40 inline data declarations to call FM FTR_CORR_DATA_LC_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_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'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_selection_i). | ||||
| DATA(ld_selection_i) | = 'X'. | |||
Search for further information about these or an SAP related objects