SAP CACS25_PREPARE_TABLES Function Module for NOTRANSL: Erstellung der Tabellen für den Abrechnungsplanlauf
CACS25_PREPARE_TABLES is a standard cacs25 prepare tables 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: Erstellung der Tabellen für den Abrechnungsplanlauf 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 prepare tables FM, simply by entering the name CACS25_PREPARE_TABLES into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS25_SES_RUN
Program Name: SAPLCACS25_SES_RUN
Main Program: SAPLCACS25_SES_RUN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CACS25_PREPARE_TABLES 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_PREPARE_TABLES'"NOTRANSL: Erstellung der Tabellen für den Abrechnungsplanlauf.
EXPORTING
RUN_ID = "Identification Number of Processing Run
TABLES
IO_SESHDIT = "View CACS25_V_SES3
O_DOCHDM = "Commission Document Header (Meta Object)
O_DOCSEM = "Commission Document, Due Dates (Meta Object)
O_DOCSEDT = "Due Date Details
IMPORTING Parameters details for CACS25_PREPARE_TABLES
RUN_ID - Identification Number of Processing Run
Data type: CACSBATCHIDOptional: No
Call by Reference: Yes
TABLES Parameters details for CACS25_PREPARE_TABLES
IO_SESHDIT - View CACS25_V_SES3
Data type: CACS25_S_SES3Optional: No
Call by Reference: Yes
O_DOCHDM - Commission Document Header (Meta Object)
Data type: CACS00_S_DOCHDMOptional: No
Call by Reference: Yes
O_DOCSEM - Commission Document, Due Dates (Meta Object)
Data type: CACS00_S_DOCSEMOptional: No
Call by Reference: Yes
O_DOCSEDT - Due Date Details
Data type: CACS00_DOCSEDTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CACS25_PREPARE_TABLES 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_run_id | TYPE CACSBATCHID, " | |||
lt_io_seshdit | TYPE STANDARD TABLE OF CACS25_S_SES3, " | |||
lt_o_dochdm | TYPE STANDARD TABLE OF CACS00_S_DOCHDM, " | |||
lt_o_docsem | TYPE STANDARD TABLE OF CACS00_S_DOCSEM, " | |||
lt_o_docsedt | TYPE STANDARD TABLE OF CACS00_DOCSEDT. " |
  CALL FUNCTION 'CACS25_PREPARE_TABLES' "NOTRANSL: Erstellung der Tabellen für den Abrechnungsplanlauf |
EXPORTING | ||
RUN_ID | = lv_run_id | |
TABLES | ||
IO_SESHDIT | = lt_io_seshdit | |
O_DOCHDM | = lt_o_dochdm | |
O_DOCSEM | = lt_o_docsem | |
O_DOCSEDT | = lt_o_docsedt | |
. " CACS25_PREPARE_TABLES |
ABAP code using 7.40 inline data declarations to call FM CACS25_PREPARE_TABLES
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