SAP CACS00_SETTL_RUN2 Function Module for NOTRANSL: Provisionsabrechnung - Lauf start
CACS00_SETTL_RUN2 is a standard cacs00 settl run2 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: Provisionsabrechnung - Lauf start 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 cacs00 settl run2 FM, simply by entering the name CACS00_SETTL_RUN2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS00_SETTLEMENT
Program Name: SAPLCACS00_SETTLEMENT
Main Program: SAPLCACS00_SETTLEMENT
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS00_SETTL_RUN2 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 'CACS00_SETTL_RUN2'"NOTRANSL: Provisionsabrechnung - Lauf start.
EXPORTING
I_WHEN = "Key Date
I_POSTEDATETYPE = "Generic Type
* I_TEST = "Generic Type
I_CLOSE = "Generic Type
I_PROVSUP = "Generic Type
I_KNW_TIMESTAMP = "Calculation Time Stamp
I_CLC_TIMESTAMP = "Effective Time Stamp (Effective Status)
TABLES
* I_STM = "Settlement Types
I_CTRT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_STMTY = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
SELECT_ERROR = 1 SYSTEM_ERROR = 2
IMPORTING Parameters details for CACS00_SETTL_RUN2
I_WHEN - Key Date
Data type: CACSTIMESTAMPOptional: No
Call by Reference: No ( called with pass by value option)
I_POSTEDATETYPE - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_TEST - Generic Type
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
I_CLOSE - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_PROVSUP - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_KNW_TIMESTAMP - Calculation Time Stamp
Data type: CACSKNOWTSTMPOptional: No
Call by Reference: Yes
I_CLC_TIMESTAMP - Effective Time Stamp (Effective Status)
Data type: CACSCALCTSTMPOptional: No
Call by Reference: Yes
TABLES Parameters details for CACS00_SETTL_RUN2
I_STM - Settlement Types
Data type: TCACS_STMTYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CTRT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_STMTY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SELECT_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACS00_SETTL_RUN2 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_i_stm | TYPE STANDARD TABLE OF TCACS_STMTY, " | |||
| lv_i_when | TYPE CACSTIMESTAMP, " | |||
| lv_select_error | TYPE CACSTIMESTAMP, " | |||
| lt_i_ctrt | TYPE STANDARD TABLE OF CACSTIMESTAMP, " | |||
| lv_system_error | TYPE CACSTIMESTAMP, " | |||
| lv_i_postedatetype | TYPE C, " | |||
| lv_i_test | TYPE C, " | |||
| lt_i_stmty | TYPE STANDARD TABLE OF C, " | |||
| lv_i_close | TYPE C, " | |||
| lv_i_provsup | TYPE C, " | |||
| lv_i_knw_timestamp | TYPE CACSKNOWTSTMP, " | |||
| lv_i_clc_timestamp | TYPE CACSCALCTSTMP. " |
|   CALL FUNCTION 'CACS00_SETTL_RUN2' "NOTRANSL: Provisionsabrechnung - Lauf start |
| EXPORTING | ||
| I_WHEN | = lv_i_when | |
| I_POSTEDATETYPE | = lv_i_postedatetype | |
| I_TEST | = lv_i_test | |
| I_CLOSE | = lv_i_close | |
| I_PROVSUP | = lv_i_provsup | |
| I_KNW_TIMESTAMP | = lv_i_knw_timestamp | |
| I_CLC_TIMESTAMP | = lv_i_clc_timestamp | |
| TABLES | ||
| I_STM | = lt_i_stm | |
| I_CTRT | = lt_i_ctrt | |
| I_STMTY | = lt_i_stmty | |
| EXCEPTIONS | ||
| SELECT_ERROR = 1 | ||
| SYSTEM_ERROR = 2 | ||
| . " CACS00_SETTL_RUN2 | ||
ABAP code using 7.40 inline data declarations to call FM CACS00_SETTL_RUN2
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