SAP TB_CORR_CUSTOMIZING_READ Function Module for Customizing Entries: Correspondence for MMT, FX, Derivatives, Securities
TB_CORR_CUSTOMIZING_READ is a standard tb corr customizing read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customizing Entries: Correspondence for MMT, FX, Derivatives, Securities 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 tb corr customizing read FM, simply by entering the name TB_CORR_CUSTOMIZING_READ 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 TB_CORR_CUSTOMIZING_READ 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 'TB_CORR_CUSTOMIZING_READ'"Customizing Entries: Correspondence for MMT, FX, Derivatives, Securities.
EXPORTING
* AUTOMATIC = 'X' "KZ nur automatische Korrespondenzen erstellen
* CORTYP = ' ' "Correspondence Type
BUKRS = "Company Code
SGSART = "Product Type
SFHAART = "Financial Transaction Type
SFGZUSTT = "Transaction Activity Category
SFUNKTL = "Zuletzt verwendete Funktion zur Vorgangsbearbeit
* SFUNKTV = "Übergangsfunktion vom unmittelbaren Vorgängervor
TABLES
* I_AT80 = "Custom.Tabelle Korrespondenzsteuerung
* I_AT81 = "Custom.Tabelle Korrespondenzarten
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for TB_CORR_CUSTOMIZING_READ
AUTOMATIC - KZ nur automatische Korrespondenzen erstellen
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CORTYP - Correspondence Type
Data type: AT80-CORTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUKRS - Company Code
Data type: VTBFHA-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
SGSART - Product Type
Data type: VTBFHA-SGSARTOptional: No
Call by Reference: No ( called with pass by value option)
SFHAART - Financial Transaction Type
Data type: VTBFHA-SFHAARTOptional: No
Call by Reference: No ( called with pass by value option)
SFGZUSTT - Transaction Activity Category
Data type: VTBFHAZU-SFGZUSTTOptional: No
Call by Reference: No ( called with pass by value option)
SFUNKTL - Zuletzt verwendete Funktion zur Vorgangsbearbeit
Data type: VTBFHAZU-SFUNKTLOptional: No
Call by Reference: No ( called with pass by value option)
SFUNKTV - Übergangsfunktion vom unmittelbaren Vorgängervor
Data type: VTBFHAZU-SFUNKTVOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TB_CORR_CUSTOMIZING_READ
I_AT80 - Custom.Tabelle Korrespondenzsteuerung
Data type: AT80Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AT81 - Custom.Tabelle Korrespondenzarten
Data type: AT81Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR - Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TB_CORR_CUSTOMIZING_READ 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_error | TYPE STRING, " | |||
| lt_i_at80 | TYPE STANDARD TABLE OF AT80, " | |||
| lv_automatic | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_cortyp | TYPE AT80-CORTYP, " SPACE | |||
| lt_i_at81 | TYPE STANDARD TABLE OF AT81, " | |||
| lv_bukrs | TYPE VTBFHA-BUKRS, " | |||
| lv_sgsart | TYPE VTBFHA-SGSART, " | |||
| lv_sfhaart | TYPE VTBFHA-SFHAART, " | |||
| lv_sfgzustt | TYPE VTBFHAZU-SFGZUSTT, " | |||
| lv_sfunktl | TYPE VTBFHAZU-SFUNKTL, " | |||
| lv_sfunktv | TYPE VTBFHAZU-SFUNKTV. " |
|   CALL FUNCTION 'TB_CORR_CUSTOMIZING_READ' "Customizing Entries: Correspondence for MMT, FX, Derivatives, Securities |
| EXPORTING | ||
| AUTOMATIC | = lv_automatic | |
| CORTYP | = lv_cortyp | |
| BUKRS | = lv_bukrs | |
| SGSART | = lv_sgsart | |
| SFHAART | = lv_sfhaart | |
| SFGZUSTT | = lv_sfgzustt | |
| SFUNKTL | = lv_sfunktl | |
| SFUNKTV | = lv_sfunktv | |
| TABLES | ||
| I_AT80 | = lt_i_at80 | |
| I_AT81 | = lt_i_at81 | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " TB_CORR_CUSTOMIZING_READ | ||
ABAP code using 7.40 inline data declarations to call FM TB_CORR_CUSTOMIZING_READ
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_automatic). | ||||
| DATA(ld_automatic) | = 'X'. | |||
| "SELECT single CORTYP FROM AT80 INTO @DATA(ld_cortyp). | ||||
| DATA(ld_cortyp) | = ' '. | |||
| "SELECT single BUKRS FROM VTBFHA INTO @DATA(ld_bukrs). | ||||
| "SELECT single SGSART FROM VTBFHA INTO @DATA(ld_sgsart). | ||||
| "SELECT single SFHAART FROM VTBFHA INTO @DATA(ld_sfhaart). | ||||
| "SELECT single SFGZUSTT FROM VTBFHAZU INTO @DATA(ld_sfgzustt). | ||||
| "SELECT single SFUNKTL FROM VTBFHAZU INTO @DATA(ld_sfunktl). | ||||
| "SELECT single SFUNKTV FROM VTBFHAZU INTO @DATA(ld_sfunktv). | ||||
Search for further information about these or an SAP related objects