SAP FTR_CORR_DATA_CP_WRITE Function Module for Print Commercial Paper Correspondence (SAPscript)









FTR_CORR_DATA_CP_WRITE is a standard ftr corr data cp 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 Print Commercial Paper 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 cp write FM, simply by entering the name FTR_CORR_DATA_CP_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_CP_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_CP_WRITE'"Print Commercial Paper Correspondence (SAPscript)
EXPORTING
I_VTBFHA = "
* SELECTION_I = 'X' "
* SELECTION_M = 'X' "
* IV_NEW = "Testflag for new correspondence
* IV_PRINT_NEW = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
I_VTBFHAZU = "
I_VTBKORES = "
T_VTBFHAPO = "
I_TBCO_CP = "
FORM_TAB = "
* SHOW = ' ' "
* SELECTION_P = 'X' "
* SELECTION_F = 'X' "

IMPORTING
E_VTBKORES = "
ET_CONTENT = "

TABLES
T_TBCO_ZS = "
T_TBCO_REF = "
T_TBCO_BNOM = "
T_TBCO_BANK = "Output Structure for Bank Data (New with CFM 1.0)
.



IMPORTING Parameters details for FTR_CORR_DATA_CP_WRITE

I_VTBFHA -

Data type: VTBFHA
Optional: No
Call by Reference: Yes

SELECTION_I -

Data type: BOOLE-BOOLE
Default: 'X'
Optional: Yes
Call by Reference: Yes

SELECTION_M -

Data type: BOOLE-BOOLE
Default: 'X'
Optional: Yes
Call by Reference: Yes

IV_NEW - Testflag for new correspondence

Data type: C
Optional: Yes
Call by Reference: Yes

IV_PRINT_NEW - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Optional: Yes
Call by Reference: Yes

I_VTBFHAZU -

Data type: VTBFHAZU
Optional: No
Call by Reference: Yes

I_VTBKORES -

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

T_VTBFHAPO -

Data type: TRTB_TFHAPO
Optional: No
Call by Reference: Yes

I_TBCO_CP -

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

FORM_TAB -

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

SHOW -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: Yes

SELECTION_P -

Data type: BOOLE-BOOLE
Default: 'X'
Optional: Yes
Call by Reference: Yes

SELECTION_F -

Data type: BOOLE-BOOLE
Default: 'X'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FTR_CORR_DATA_CP_WRITE

E_VTBKORES -

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

ET_CONTENT -

Data type: TCORFY_CONTENT
Optional: No
Call by Reference: Yes

TABLES Parameters details for FTR_CORR_DATA_CP_WRITE

T_TBCO_ZS -

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

T_TBCO_REF -

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

T_TBCO_BNOM -

Data type: TBCO_BNOM
Optional: 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_BANK
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FTR_CORR_DATA_CP_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_bnom  TYPE STANDARD TABLE OF TBCO_BNOM, "   
lv_t_vtbfhapo  TYPE TRTB_TFHAPO, "   
lt_t_tbco_bank  TYPE STANDARD TABLE OF TBCO_BANK, "   
lv_i_tbco_cp  TYPE TBCO_CP, "   
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_CP_WRITE'  "Print Commercial Paper Correspondence (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_CP = lv_i_tbco_cp
         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_BNOM = lt_t_tbco_bnom
         T_TBCO_BANK = lt_t_tbco_bank
. " FTR_CORR_DATA_CP_WRITE




ABAP code using 7.40 inline data declarations to call FM FTR_CORR_DATA_CP_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



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!