SAP HR_INFOTYPE_OPERATION Function Module for









HR_INFOTYPE_OPERATION is a standard hr infotype operation 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 infotype operation FM, simply by entering the name HR_INFOTYPE_OPERATION into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_INFOTYPE_OPERATION 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_INFOTYPE_OPERATION'"
EXPORTING
INFTY = "
OPERATION = "
* TCLAS = 'A' "
* DIALOG_MODE = '0' "
* NOCOMMIT = "
* VIEW_IDENTIFIER = "
* SECONDARY_RECORD = "
NUMBER = "
* SUBTYPE = "
* OBJECTID = "
* LOCKINDICATOR = "
* VALIDITYEND = "
* VALIDITYBEGIN = "
* RECORDNUMBER = "
RECORD = "

IMPORTING
RETURN = "
KEY = "
.



IMPORTING Parameters details for HR_INFOTYPE_OPERATION

INFTY -

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

OPERATION -

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

TCLAS -

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

DIALOG_MODE -

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

NOCOMMIT -

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

VIEW_IDENTIFIER -

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

SECONDARY_RECORD -

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

NUMBER -

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

SUBTYPE -

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

OBJECTID -

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

LOCKINDICATOR -

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

VALIDITYEND -

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

VALIDITYBEGIN -

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

RECORDNUMBER -

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

RECORD -

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

EXPORTING Parameters details for HR_INFOTYPE_OPERATION

RETURN -

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

KEY -

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

Copy and paste ABAP code example for HR_INFOTYPE_OPERATION 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_infty  TYPE PRELP-INFTY, "   
lv_return  TYPE BAPIRETURN1, "   
lv_operation  TYPE PSPAR-ACTIO, "   
lv_tclas  TYPE PSPAR-TCLAS, "   'A'
lv_dialog_mode  TYPE C, "   '0'
lv_nocommit  TYPE BAPI_STAND-NO_COMMIT, "   
lv_view_identifier  TYPE P0003-VIEKN, "   
lv_secondary_record  TYPE P0003, "   
lv_key  TYPE BAPIPAKEY, "   
lv_number  TYPE P0001-PERNR, "   
lv_subtype  TYPE P0001-SUBTY, "   
lv_objectid  TYPE P0001-OBJPS, "   
lv_lockindicator  TYPE P0001-SPRPS, "   
lv_validityend  TYPE P0001-ENDDA, "   
lv_validitybegin  TYPE P0001-BEGDA, "   
lv_recordnumber  TYPE P0001-SEQNR, "   
lv_record  TYPE P0001. "   

  CALL FUNCTION 'HR_INFOTYPE_OPERATION'  "
    EXPORTING
         INFTY = lv_infty
         OPERATION = lv_operation
         TCLAS = lv_tclas
         DIALOG_MODE = lv_dialog_mode
         NOCOMMIT = lv_nocommit
         VIEW_IDENTIFIER = lv_view_identifier
         SECONDARY_RECORD = lv_secondary_record
         NUMBER = lv_number
         SUBTYPE = lv_subtype
         OBJECTID = lv_objectid
         LOCKINDICATOR = lv_lockindicator
         VALIDITYEND = lv_validityend
         VALIDITYBEGIN = lv_validitybegin
         RECORDNUMBER = lv_recordnumber
         RECORD = lv_record
    IMPORTING
         RETURN = lv_return
         KEY = lv_key
. " HR_INFOTYPE_OPERATION




ABAP code using 7.40 inline data declarations to call FM HR_INFOTYPE_OPERATION

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 INFTY FROM PRELP INTO @DATA(ld_infty).
 
 
"SELECT single ACTIO FROM PSPAR INTO @DATA(ld_operation).
 
"SELECT single TCLAS FROM PSPAR INTO @DATA(ld_tclas).
DATA(ld_tclas) = 'A'.
 
DATA(ld_dialog_mode) = '0'.
 
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit).
 
"SELECT single VIEKN FROM P0003 INTO @DATA(ld_view_identifier).
 
 
 
"SELECT single PERNR FROM P0001 INTO @DATA(ld_number).
 
"SELECT single SUBTY FROM P0001 INTO @DATA(ld_subtype).
 
"SELECT single OBJPS FROM P0001 INTO @DATA(ld_objectid).
 
"SELECT single SPRPS FROM P0001 INTO @DATA(ld_lockindicator).
 
"SELECT single ENDDA FROM P0001 INTO @DATA(ld_validityend).
 
"SELECT single BEGDA FROM P0001 INTO @DATA(ld_validitybegin).
 
"SELECT single SEQNR FROM P0001 INTO @DATA(ld_recordnumber).
 
 


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!