SAP CATS_PERTAB_FROM_PERIODS_FILL Function Module for NOTRANSL: CATS - Fill period table









CATS_PERTAB_FROM_PERIODS_FILL is a standard cats pertab from periods fill 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: CATS - Fill period table 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 cats pertab from periods fill FM, simply by entering the name CATS_PERTAB_FROM_PERIODS_FILL into the relevant SAP transaction such as SE37 or SE38.

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



Function CATS_PERTAB_FROM_PERIODS_FILL 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 'CATS_PERTAB_FROM_PERIODS_FILL'"NOTRANSL: CATS - Fill period table
EXPORTING
DATEFROM = "ABAP System Field: Current Date of Application Server
DATETO = "ABAP System Field: Current Date of Application Server
I_CALENDAR = "Data Entry for Workdays only
I_BEGEND = "Data Entry with Clock Times
I_PERNR = "Personnel Number
I_WORKDAY_W = "Generic Type
* I_EXT_CALL = ' ' "Generic Type

TABLES
BLOCKED_DAYS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
.



IMPORTING Parameters details for CATS_PERTAB_FROM_PERIODS_FILL

DATEFROM - ABAP System Field: Current Date of Application Server

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

DATETO - ABAP System Field: Current Date of Application Server

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

I_CALENDAR - Data Entry for Workdays only

Data type: CATSCALE
Optional: No
Call by Reference: No ( called with pass by value option)

I_BEGEND - Data Entry with Clock Times

Data type: CATSBEGEN_
Optional: No
Call by Reference: No ( called with pass by value option)

I_PERNR - Personnel Number

Data type: PERNR_D
Optional: No
Call by Reference: No ( called with pass by value option)

I_WORKDAY_W - Generic Type

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

I_EXT_CALL - Generic Type

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CATS_PERTAB_FROM_PERIODS_FILL

BLOCKED_DAYS - 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 CATS_PERTAB_FROM_PERIODS_FILL 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_datefrom  TYPE SY-DATUM, "   
lt_blocked_days  TYPE STANDARD TABLE OF SY, "   
lv_dateto  TYPE SY-DATUM, "   
lv_i_calendar  TYPE CATSCALE, "   
lv_i_begend  TYPE CATSBEGEN_, "   
lv_i_pernr  TYPE PERNR_D, "   
lv_i_workday_w  TYPE C, "   
lv_i_ext_call  TYPE C. "   SPACE

  CALL FUNCTION 'CATS_PERTAB_FROM_PERIODS_FILL'  "NOTRANSL: CATS - Fill period table
    EXPORTING
         DATEFROM = lv_datefrom
         DATETO = lv_dateto
         I_CALENDAR = lv_i_calendar
         I_BEGEND = lv_i_begend
         I_PERNR = lv_i_pernr
         I_WORKDAY_W = lv_i_workday_w
         I_EXT_CALL = lv_i_ext_call
    TABLES
         BLOCKED_DAYS = lt_blocked_days
. " CATS_PERTAB_FROM_PERIODS_FILL




ABAP code using 7.40 inline data declarations to call FM CATS_PERTAB_FROM_PERIODS_FILL

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.

"SELECT single DATUM FROM SY INTO @DATA(ld_datefrom).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_dateto).
 
 
 
 
 
DATA(ld_i_ext_call) = ' '.
 


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!