SAP CA_CHECK_DATE Function Module for Authorization Check









CA_CHECK_DATE is a standard ca check date SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Authorization Check 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 ca check date FM, simply by entering the name CA_CHECK_DATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CA_CHECK_DATE 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 'CA_CHECK_DATE'"Authorization Check
EXPORTING
I_APPLK = "Application indicator for BTE
I_ORGUNIT = "Char20
I_USER = "User Name
I_PROGRAM = "ABAP Program Name
* I_FROM_DATE = "Field of Type DATS
* I_TO_DATE = "Field of Type DATS

EXCEPTIONS
NO_AUTHORITY_DATE = 1 NO_AUTHORITY_PROG = 2 WRONG_PARAMETER = 3
.



IMPORTING Parameters details for CA_CHECK_DATE

I_APPLK - Application indicator for BTE

Data type: APPLK_BF
Optional: No
Call by Reference: Yes

I_ORGUNIT - Char20

Data type:
Optional: No
Call by Reference: Yes

I_USER - User Name

Data type: USNAM
Optional: No
Call by Reference: Yes

I_PROGRAM - ABAP Program Name

Data type: PROGNAME
Optional: No
Call by Reference: Yes

I_FROM_DATE - Field of Type DATS

Data type: DATS
Optional: Yes
Call by Reference: Yes

I_TO_DATE - Field of Type DATS

Data type: DATS
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_AUTHORITY_DATE -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY_PROG -

Data type:
Optional: No
Call by Reference: Yes

WRONG_PARAMETER -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CA_CHECK_DATE 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_applk  TYPE APPLK_BF, "   
lv_no_authority_date  TYPE APPLK_BF, "   
lv_i_orgunit  TYPE APPLK_BF, "   
lv_no_authority_prog  TYPE APPLK_BF, "   
lv_i_user  TYPE USNAM, "   
lv_wrong_parameter  TYPE USNAM, "   
lv_i_program  TYPE PROGNAME, "   
lv_i_from_date  TYPE DATS, "   
lv_i_to_date  TYPE DATS. "   

  CALL FUNCTION 'CA_CHECK_DATE'  "Authorization Check
    EXPORTING
         I_APPLK = lv_i_applk
         I_ORGUNIT = lv_i_orgunit
         I_USER = lv_i_user
         I_PROGRAM = lv_i_program
         I_FROM_DATE = lv_i_from_date
         I_TO_DATE = lv_i_to_date
    EXCEPTIONS
        NO_AUTHORITY_DATE = 1
        NO_AUTHORITY_PROG = 2
        WRONG_PARAMETER = 3
. " CA_CHECK_DATE




ABAP code using 7.40 inline data declarations to call FM CA_CHECK_DATE

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



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!