SAP TCOR_GET_CO_DATA_BY_KEY Function Module for TCO: Wrapper to get CO data using CO key id









TCOR_GET_CO_DATA_BY_KEY is a standard tcor get co data by key SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TCO: Wrapper to get CO data using CO key id 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 tcor get co data by key FM, simply by entering the name TCOR_GET_CO_DATA_BY_KEY into the relevant SAP transaction such as SE37 or SE38.

Function Group: TCOR_GET_CO_DATA
Program Name: SAPLTCOR_GET_CO_DATA
Main Program: SAPLTCOR_GET_CO_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TCOR_GET_CO_DATA_BY_KEY 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 'TCOR_GET_CO_DATA_BY_KEY'"TCO: Wrapper to get CO data using CO key id
EXPORTING
IT_CO_KEYID = "TCO: Table type for Co key id

CHANGING
CT_CONOTES_DATA = "Correspondence notes

TABLES
ET_CO_DATA = "Treasury Correspondence: correspondence objects (DB)
ET_CODFL_DATA = "Treasury Correspondence: Deal flows
ET_CODIA_DATA = "Treasury Correspondence: Deal interest rate adjustment
ET_CODOC_DATA = "Treasury correspondence: Attached documents
ET_CODPI_DATA = "Treasury Correspondence: deal pay info
ET_CODRP_DATA = "Correspondence Object: Deal Rollover plan data
ET_CODUL_DATA = "Treasury Correspondence: Deal Underlying data
ET_CODUL2_DATA = "Treasury Correspondence: Deal's 2nd underlying data
ET_CODUL2FL_DATA = "Treasury Correspondence: Deal's 2nd underlying's flow data
ET_CODULCO_DATA = "Treasury correspondence: Condition data of deal's underlying
ET_CODULCOFO_DATA = "Treasury correspondence: Deal's Underlying formula data
ET_COSA_DATA = "Treasury Correspondence: Securities account master data
ET_CODULFL_DATA = "Treasury correspondence: Deal's underlying flows
ET_COSAFL_DATA = "Treasury Correspondence: Security account flows
ET_COSAPO_DATA = "Treasury Correspondence: Security account positions
ET_COSI_DATA = "TCOR: Correspondence object settlement instructions
ET_CODMD_DATA = "Treasury Correspondence: Deal main data
ET_CODCO_DATA = "Correspondence Object: Deal conditions
ET_CODCOFO_DATA = "Treasury Correspondence: Deal conditios formula
ET_CODDP_DATA = "Correspondence Object: Deal dividend plan data
.



IMPORTING Parameters details for TCOR_GET_CO_DATA_BY_KEY

IT_CO_KEYID - TCO: Table type for Co key id

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

CHANGING Parameters details for TCOR_GET_CO_DATA_BY_KEY

CT_CONOTES_DATA - Correspondence notes

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

TABLES Parameters details for TCOR_GET_CO_DATA_BY_KEY

ET_CO_DATA - Treasury Correspondence: correspondence objects (DB)

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

ET_CODFL_DATA - Treasury Correspondence: Deal flows

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

ET_CODIA_DATA - Treasury Correspondence: Deal interest rate adjustment

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

ET_CODOC_DATA - Treasury correspondence: Attached documents

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

ET_CODPI_DATA - Treasury Correspondence: deal pay info

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

ET_CODRP_DATA - Correspondence Object: Deal Rollover plan data

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

ET_CODUL_DATA - Treasury Correspondence: Deal Underlying data

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

ET_CODUL2_DATA - Treasury Correspondence: Deal's 2nd underlying data

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

ET_CODUL2FL_DATA - Treasury Correspondence: Deal's 2nd underlying's flow data

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

ET_CODULCO_DATA - Treasury correspondence: Condition data of deal's underlying

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

ET_CODULCOFO_DATA - Treasury correspondence: Deal's Underlying formula data

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

ET_COSA_DATA - Treasury Correspondence: Securities account master data

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

ET_CODULFL_DATA - Treasury correspondence: Deal's underlying flows

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

ET_COSAFL_DATA - Treasury Correspondence: Security account flows

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

ET_COSAPO_DATA - Treasury Correspondence: Security account positions

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

ET_COSI_DATA - TCOR: Correspondence object settlement instructions

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

ET_CODMD_DATA - Treasury Correspondence: Deal main data

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

ET_CODCO_DATA - Correspondence Object: Deal conditions

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

ET_CODCOFO_DATA - Treasury Correspondence: Deal conditios formula

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

ET_CODDP_DATA - Correspondence Object: Deal dividend plan data

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

Copy and paste ABAP code example for TCOR_GET_CO_DATA_BY_KEY 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:
lt_et_co_data  TYPE STANDARD TABLE OF TCORT_CO, "   
lv_it_co_keyid  TYPE TCORY_CO_KEYID, "   
lv_ct_conotes_data  TYPE TCORY_CONOTES, "   
lt_et_codfl_data  TYPE STANDARD TABLE OF TCORT_CODFL, "   
lt_et_codia_data  TYPE STANDARD TABLE OF TCORT_CODIA, "   
lt_et_codoc_data  TYPE STANDARD TABLE OF TCORT_CODOC, "   
lt_et_codpi_data  TYPE STANDARD TABLE OF TCORT_CODPI, "   
lt_et_codrp_data  TYPE STANDARD TABLE OF TCORT_CODRP, "   
lt_et_codul_data  TYPE STANDARD TABLE OF TCORT_CODUL, "   
lt_et_codul2_data  TYPE STANDARD TABLE OF TCORT_CODUL2, "   
lt_et_codul2fl_data  TYPE STANDARD TABLE OF TCORT_CODUL2FL, "   
lt_et_codulco_data  TYPE STANDARD TABLE OF TCORT_CODULCO, "   
lt_et_codulcofo_data  TYPE STANDARD TABLE OF TCORT_CODULCOFO, "   
lt_et_cosa_data  TYPE STANDARD TABLE OF TCORT_COSA, "   
lt_et_codulfl_data  TYPE STANDARD TABLE OF TCORT_CODULFL, "   
lt_et_cosafl_data  TYPE STANDARD TABLE OF TCORT_COSAFL, "   
lt_et_cosapo_data  TYPE STANDARD TABLE OF TCORT_COSAPO, "   
lt_et_cosi_data  TYPE STANDARD TABLE OF TCORT_COSI, "   
lt_et_codmd_data  TYPE STANDARD TABLE OF TCORT_CODMD, "   
lt_et_codco_data  TYPE STANDARD TABLE OF TCORT_CODCO, "   
lt_et_codcofo_data  TYPE STANDARD TABLE OF TCORT_CODCOFO, "   
lt_et_coddp_data  TYPE STANDARD TABLE OF TCORT_CODDP. "   

  CALL FUNCTION 'TCOR_GET_CO_DATA_BY_KEY'  "TCO: Wrapper to get CO data using CO key id
    EXPORTING
         IT_CO_KEYID = lv_it_co_keyid
    CHANGING
         CT_CONOTES_DATA = lv_ct_conotes_data
    TABLES
         ET_CO_DATA = lt_et_co_data
         ET_CODFL_DATA = lt_et_codfl_data
         ET_CODIA_DATA = lt_et_codia_data
         ET_CODOC_DATA = lt_et_codoc_data
         ET_CODPI_DATA = lt_et_codpi_data
         ET_CODRP_DATA = lt_et_codrp_data
         ET_CODUL_DATA = lt_et_codul_data
         ET_CODUL2_DATA = lt_et_codul2_data
         ET_CODUL2FL_DATA = lt_et_codul2fl_data
         ET_CODULCO_DATA = lt_et_codulco_data
         ET_CODULCOFO_DATA = lt_et_codulcofo_data
         ET_COSA_DATA = lt_et_cosa_data
         ET_CODULFL_DATA = lt_et_codulfl_data
         ET_COSAFL_DATA = lt_et_cosafl_data
         ET_COSAPO_DATA = lt_et_cosapo_data
         ET_COSI_DATA = lt_et_cosi_data
         ET_CODMD_DATA = lt_et_codmd_data
         ET_CODCO_DATA = lt_et_codco_data
         ET_CODCOFO_DATA = lt_et_codcofo_data
         ET_CODDP_DATA = lt_et_coddp_data
. " TCOR_GET_CO_DATA_BY_KEY




ABAP code using 7.40 inline data declarations to call FM TCOR_GET_CO_DATA_BY_KEY

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!