SAP CACS_STM_CTR_READ Function Module for NOTRANSL: Prov.: Lese alle Verträge
CACS_STM_CTR_READ is a standard cacs stm ctr 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 NOTRANSL: Prov.: Lese alle Verträge 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 cacs stm ctr read FM, simply by entering the name CACS_STM_CTR_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_CLOSEURE2
Program Name: SAPLCACS_CLOSEURE2
Main Program: SAPLCACS_CLOSEURE2
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_STM_CTR_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 'CACS_STM_CTR_READ'"NOTRANSL: Prov.: Lese alle Verträge.
EXPORTING
I_WHEN = "Key Date
I_APPL = "Application
* I_BUSITIME = "Effective Validity (Time Stamp YYYY.MM.DD hh:mm:ss)
* I_TECHTIME = "Technical Validity (Time Stamp: YYYY.MM.DD hh:mm:ss)
TABLES
CACS_BACK = "Return Message Tables
I_VERT = "Contract Number
* I_STM = "Settlement Types
* I_REM = "Remuneration Types
* I_SI_CONTRACT = "Commission Contracts
EXCEPTIONS
CTRTBU_NOT_FOUND = 1 CTRTBU_ERROR = 2
IMPORTING Parameters details for CACS_STM_CTR_READ
I_WHEN - Key Date
Data type: CACSTIMESTAMPOptional: No
Call by Reference: Yes
I_APPL - Application
Data type: CACSAPPLOptional: No
Call by Reference: Yes
I_BUSITIME - Effective Validity (Time Stamp YYYY.MM.DD hh:mm:ss)
Data type: CACSBUSITIMEOptional: Yes
Call by Reference: Yes
I_TECHTIME - Technical Validity (Time Stamp: YYYY.MM.DD hh:mm:ss)
Data type: CACSTECHTIMEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for CACS_STM_CTR_READ
CACS_BACK - Return Message Tables
Data type: CACS_CTRTBUOptional: No
Call by Reference: Yes
I_VERT - Contract Number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_STM - Settlement Types
Data type:Optional: Yes
Call by Reference: Yes
I_REM - Remuneration Types
Data type:Optional: Yes
Call by Reference: Yes
I_SI_CONTRACT - Commission Contracts
Data type: CACS_S_CTRTBU_IDOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CTRTBU_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CTRTBU_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACS_STM_CTR_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_i_when | TYPE CACSTIMESTAMP, " | |||
| lt_cacs_back | TYPE STANDARD TABLE OF CACS_CTRTBU, " | |||
| lv_ctrtbu_not_found | TYPE CACS_CTRTBU, " | |||
| lv_i_appl | TYPE CACSAPPL, " | |||
| lt_i_vert | TYPE STANDARD TABLE OF CACSAPPL, " | |||
| lv_ctrtbu_error | TYPE CACSAPPL, " | |||
| lt_i_stm | TYPE STANDARD TABLE OF CACSAPPL, " | |||
| lv_i_busitime | TYPE CACSBUSITIME, " | |||
| lt_i_rem | TYPE STANDARD TABLE OF CACSBUSITIME, " | |||
| lv_i_techtime | TYPE CACSTECHTIME, " | |||
| lt_i_si_contract | TYPE STANDARD TABLE OF CACS_S_CTRTBU_ID. " |
|   CALL FUNCTION 'CACS_STM_CTR_READ' "NOTRANSL: Prov.: Lese alle Verträge |
| EXPORTING | ||
| I_WHEN | = lv_i_when | |
| I_APPL | = lv_i_appl | |
| I_BUSITIME | = lv_i_busitime | |
| I_TECHTIME | = lv_i_techtime | |
| TABLES | ||
| CACS_BACK | = lt_cacs_back | |
| I_VERT | = lt_i_vert | |
| I_STM | = lt_i_stm | |
| I_REM | = lt_i_rem | |
| I_SI_CONTRACT | = lt_i_si_contract | |
| EXCEPTIONS | ||
| CTRTBU_NOT_FOUND = 1 | ||
| CTRTBU_ERROR = 2 | ||
| . " CACS_STM_CTR_READ | ||
ABAP code using 7.40 inline data declarations to call FM CACS_STM_CTR_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.Search for further information about these or an SAP related objects