SAP CACS25_SES_CHANGE Function Module for NOTRANSL: Abrechnungsplan für eine Vergütungszeile neu berechnen
CACS25_SES_CHANGE is a standard cacs25 ses change 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: Abrechnungsplan für eine Vergütungszeile neu berechnen 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 cacs25 ses change FM, simply by entering the name CACS25_SES_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS25_SES
Program Name: SAPLCACS25_SES
Main Program: SAPLCACS25_SES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS25_SES_CHANGE 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 'CACS25_SES_CHANGE'"NOTRANSL: Abrechnungsplan für eine Vergütungszeile neu berechnen.
EXPORTING
I_BUSITIME = "Effective From
I_TECHTIME = "Technically Valid from
I_BUFFER_TYPE = "
I_META_SESHD = "Settlement Schedule Header (Meta Object)
I_META_DOC_HEAD_TRI = "
I_META_DOC_HEAD = "
I_META_DOC_REMUNERATION = "Commission Document, Remuneration and Liability(Meta Object)
TABLES
* IT_META_OBJECTDATA = "Commission Object Data (Meta Object)
* IT_META_DOC_VALUATION = "Commission Document, Valuation (Meta Object)
EXCEPTIONS
ERROR_INVALID_CALL = 1 NO_OPEN_SESIT = 10 REM_WITH_DOCSE = 11 ERROR_PREPARE_SCHEDULING = 12 ERROR_DEFAULT_SES_CREATE = 13 ERROR_PROPOSED_SES_CREATE = 14 ERROR_SESITM_DDIF_GET = 15 ERROR_LOS_EXCEPTION = 16 ERROR_INVALID_RESULT = 17 ERROR_CREATE_FFL = 18 ERROR_DELETE_FFL = 19 ERROR_GETTING_DOCHD = 2 ERROR_FAILED_TO_CANCEL = 20 ERROR_GETTING_DOCRE = 3 CORRECTED_REMUNERATION = 4 ERROR_CHANGE_IN_REM = 5 ERROR_GETTING_DOCDT = 6 ERROR_GETTING_SES = 7 ERROR_INVALID_RULE = 8 ERROR_READING_SES = 9
IMPORTING Parameters details for CACS25_SES_CHANGE
I_BUSITIME - Effective From
Data type: CACS_BUSITIME_BOptional: No
Call by Reference: Yes
I_TECHTIME - Technically Valid from
Data type: CACS_TECHTIME_BOptional: No
Call by Reference: Yes
I_BUFFER_TYPE -
Data type: CAC25_BUFFER_TYPEOptional: No
Call by Reference: Yes
I_META_SESHD - Settlement Schedule Header (Meta Object)
Data type: CACS25_S_SESHDMOptional: No
Call by Reference: Yes
I_META_DOC_HEAD_TRI -
Data type: CACS00_S_DOCHDMOptional: No
Call by Reference: Yes
I_META_DOC_HEAD -
Data type: CACS00_S_DOCHDMOptional: No
Call by Reference: Yes
I_META_DOC_REMUNERATION - Commission Document, Remuneration and Liability(Meta Object)
Data type: CACS00_S_DOCREMOptional: No
Call by Reference: Yes
TABLES Parameters details for CACS25_SES_CHANGE
IT_META_OBJECTDATA - Commission Object Data (Meta Object)
Data type: CACS00_S_OBJMOptional: Yes
Call by Reference: Yes
IT_META_DOC_VALUATION - Commission Document, Valuation (Meta Object)
Data type: CACS00_S_DOCVAMOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_INVALID_CALL -
Data type:Optional: No
Call by Reference: Yes
NO_OPEN_SESIT -
Data type:Optional: No
Call by Reference: Yes
REM_WITH_DOCSE -
Data type:Optional: No
Call by Reference: Yes
ERROR_PREPARE_SCHEDULING -
Data type:Optional: No
Call by Reference: Yes
ERROR_DEFAULT_SES_CREATE -
Data type:Optional: No
Call by Reference: Yes
ERROR_PROPOSED_SES_CREATE -
Data type:Optional: No
Call by Reference: Yes
ERROR_SESITM_DDIF_GET -
Data type:Optional: No
Call by Reference: Yes
ERROR_LOS_EXCEPTION -
Data type:Optional: No
Call by Reference: Yes
ERROR_INVALID_RESULT -
Data type:Optional: No
Call by Reference: Yes
ERROR_CREATE_FFL -
Data type:Optional: No
Call by Reference: Yes
ERROR_DELETE_FFL -
Data type:Optional: No
Call by Reference: Yes
ERROR_GETTING_DOCHD -
Data type:Optional: No
Call by Reference: Yes
ERROR_FAILED_TO_CANCEL -
Data type:Optional: No
Call by Reference: Yes
ERROR_GETTING_DOCRE -
Data type:Optional: No
Call by Reference: Yes
CORRECTED_REMUNERATION -
Data type:Optional: No
Call by Reference: Yes
ERROR_CHANGE_IN_REM -
Data type:Optional: No
Call by Reference: Yes
ERROR_GETTING_DOCDT -
Data type:Optional: No
Call by Reference: Yes
ERROR_GETTING_SES -
Data type:Optional: No
Call by Reference: Yes
ERROR_INVALID_RULE -
Data type:Optional: No
Call by Reference: Yes
ERROR_READING_SES -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CACS25_SES_CHANGE 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_busitime | TYPE CACS_BUSITIME_B, " | |||
| lv_error_invalid_call | TYPE CACS_BUSITIME_B, " | |||
| lt_it_meta_objectdata | TYPE STANDARD TABLE OF CACS00_S_OBJM, " | |||
| lv_no_open_sesit | TYPE CACS00_S_OBJM, " | |||
| lv_rem_with_docse | TYPE CACS00_S_OBJM, " | |||
| lv_error_prepare_scheduling | TYPE CACS00_S_OBJM, " | |||
| lv_error_default_ses_create | TYPE CACS00_S_OBJM, " | |||
| lv_error_proposed_ses_create | TYPE CACS00_S_OBJM, " | |||
| lv_error_sesitm_ddif_get | TYPE CACS00_S_OBJM, " | |||
| lv_error_los_exception | TYPE CACS00_S_OBJM, " | |||
| lv_error_invalid_result | TYPE CACS00_S_OBJM, " | |||
| lv_error_create_ffl | TYPE CACS00_S_OBJM, " | |||
| lv_error_delete_ffl | TYPE CACS00_S_OBJM, " | |||
| lv_i_techtime | TYPE CACS_TECHTIME_B, " | |||
| lv_error_getting_dochd | TYPE CACS_TECHTIME_B, " | |||
| lt_it_meta_doc_valuation | TYPE STANDARD TABLE OF CACS00_S_DOCVAM, " | |||
| lv_error_failed_to_cancel | TYPE CACS00_S_DOCVAM, " | |||
| lv_i_buffer_type | TYPE CAC25_BUFFER_TYPE, " | |||
| lv_error_getting_docre | TYPE CAC25_BUFFER_TYPE, " | |||
| lv_i_meta_seshd | TYPE CACS25_S_SESHDM, " | |||
| lv_corrected_remuneration | TYPE CACS25_S_SESHDM, " | |||
| lv_error_change_in_rem | TYPE CACS25_S_SESHDM, " | |||
| lv_i_meta_doc_head_tri | TYPE CACS00_S_DOCHDM, " | |||
| lv_i_meta_doc_head | TYPE CACS00_S_DOCHDM, " | |||
| lv_error_getting_docdt | TYPE CACS00_S_DOCHDM, " | |||
| lv_error_getting_ses | TYPE CACS00_S_DOCHDM, " | |||
| lv_i_meta_doc_remuneration | TYPE CACS00_S_DOCREM, " | |||
| lv_error_invalid_rule | TYPE CACS00_S_DOCREM, " | |||
| lv_error_reading_ses | TYPE CACS00_S_DOCREM. " |
|   CALL FUNCTION 'CACS25_SES_CHANGE' "NOTRANSL: Abrechnungsplan für eine Vergütungszeile neu berechnen |
| EXPORTING | ||
| I_BUSITIME | = lv_i_busitime | |
| I_TECHTIME | = lv_i_techtime | |
| I_BUFFER_TYPE | = lv_i_buffer_type | |
| I_META_SESHD | = lv_i_meta_seshd | |
| I_META_DOC_HEAD_TRI | = lv_i_meta_doc_head_tri | |
| I_META_DOC_HEAD | = lv_i_meta_doc_head | |
| I_META_DOC_REMUNERATION | = lv_i_meta_doc_remuneration | |
| TABLES | ||
| IT_META_OBJECTDATA | = lt_it_meta_objectdata | |
| IT_META_DOC_VALUATION | = lt_it_meta_doc_valuation | |
| EXCEPTIONS | ||
| ERROR_INVALID_CALL = 1 | ||
| NO_OPEN_SESIT = 10 | ||
| REM_WITH_DOCSE = 11 | ||
| ERROR_PREPARE_SCHEDULING = 12 | ||
| ERROR_DEFAULT_SES_CREATE = 13 | ||
| ERROR_PROPOSED_SES_CREATE = 14 | ||
| ERROR_SESITM_DDIF_GET = 15 | ||
| ERROR_LOS_EXCEPTION = 16 | ||
| ERROR_INVALID_RESULT = 17 | ||
| ERROR_CREATE_FFL = 18 | ||
| ERROR_DELETE_FFL = 19 | ||
| ERROR_GETTING_DOCHD = 2 | ||
| ERROR_FAILED_TO_CANCEL = 20 | ||
| ERROR_GETTING_DOCRE = 3 | ||
| CORRECTED_REMUNERATION = 4 | ||
| ERROR_CHANGE_IN_REM = 5 | ||
| ERROR_GETTING_DOCDT = 6 | ||
| ERROR_GETTING_SES = 7 | ||
| ERROR_INVALID_RULE = 8 | ||
| ERROR_READING_SES = 9 | ||
| . " CACS25_SES_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM CACS25_SES_CHANGE
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