SAP HR_CHECK_AUTHORITY_INFTY Function Module for









HR_CHECK_AUTHORITY_INFTY is a standard hr check authority infty SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hr check authority infty FM, simply by entering the name HR_CHECK_AUTHORITY_INFTY into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CHECK_AUTHORITY_INFTY 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 'HR_CHECK_AUTHORITY_INFTY'"
EXPORTING
* TCLAS = 'A' "
PERNR = "
INFTY = "
SUBTY = "
* BEGDA = SY-DATUM "
* ENDDA = SY-DATUM "
* LEVEL = 'R' "
* UNAME = SY-UNAME "

TABLES
* I0001 = "

EXCEPTIONS
NO_AUTHORIZATION = 1 INTERNAL_ERROR = 2
.



IMPORTING Parameters details for HR_CHECK_AUTHORITY_INFTY

TCLAS -

Data type: PSPAR-TCLAS
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PERNR -

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

INFTY -

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

SUBTY -

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

BEGDA -

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

ENDDA -

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

LEVEL -

Data type: AUTHC_D
Default: 'R'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UNAME -

Data type: SYUNAME
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HR_CHECK_AUTHORITY_INFTY

I0001 -

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

EXCEPTIONS details

NO_AUTHORIZATION -

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for HR_CHECK_AUTHORITY_INFTY 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_i0001  TYPE STANDARD TABLE OF P0001, "   
lv_tclas  TYPE PSPAR-TCLAS, "   'A'
lv_no_authorization  TYPE PSPAR, "   
lv_pernr  TYPE PRELP-PERNR, "   
lv_internal_error  TYPE PRELP, "   
lv_infty  TYPE PRELP-INFTY, "   
lv_subty  TYPE PRELP-SUBTY, "   
lv_begda  TYPE PRELP-BEGDA, "   SY-DATUM
lv_endda  TYPE PRELP-ENDDA, "   SY-DATUM
lv_level  TYPE AUTHC_D, "   'R'
lv_uname  TYPE SYUNAME. "   SY-UNAME

  CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY'  "
    EXPORTING
         TCLAS = lv_tclas
         PERNR = lv_pernr
         INFTY = lv_infty
         SUBTY = lv_subty
         BEGDA = lv_begda
         ENDDA = lv_endda
         LEVEL = lv_level
         UNAME = lv_uname
    TABLES
         I0001 = lt_i0001
    EXCEPTIONS
        NO_AUTHORIZATION = 1
        INTERNAL_ERROR = 2
. " HR_CHECK_AUTHORITY_INFTY




ABAP code using 7.40 inline data declarations to call FM HR_CHECK_AUTHORITY_INFTY

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 TCLAS FROM PSPAR INTO @DATA(ld_tclas).
DATA(ld_tclas) = 'A'.
 
 
"SELECT single PERNR FROM PRELP INTO @DATA(ld_pernr).
 
 
"SELECT single INFTY FROM PRELP INTO @DATA(ld_infty).
 
"SELECT single SUBTY FROM PRELP INTO @DATA(ld_subty).
 
"SELECT single BEGDA FROM PRELP INTO @DATA(ld_begda).
DATA(ld_begda) = SY-DATUM.
 
"SELECT single ENDDA FROM PRELP INTO @DATA(ld_endda).
DATA(ld_endda) = SY-DATUM.
 
DATA(ld_level) = 'R'.
 
DATA(ld_uname) = SY-UNAME.
 


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!