SAP HR_PSEL_SELECTION_INIT Function Module for









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

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



Function HR_PSEL_SELECTION_INIT 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_PSEL_SELECTION_INIT'"
EXPORTING
* INIT_TCODE = SY-TCODE "
* INIT_UNAME = SY-UNAME "
* INIT_BEGDA = '18000101' "
* INIT_ENDDA = '99991231' "

TABLES
INIT_PERNRS = "
.



IMPORTING Parameters details for HR_PSEL_SELECTION_INIT

INIT_TCODE -

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

INIT_UNAME -

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

INIT_BEGDA -

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

INIT_ENDDA -

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

TABLES Parameters details for HR_PSEL_SELECTION_INIT

INIT_PERNRS -

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

Copy and paste ABAP code example for HR_PSEL_SELECTION_INIT 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_init_tcode  TYPE SY-TCODE, "   SY-TCODE
lt_init_pernrs  TYPE STANDARD TABLE OF HRPERNR, "   
lv_init_uname  TYPE SY-UNAME, "   SY-UNAME
lv_init_begda  TYPE SY-DATUM, "   '18000101'
lv_init_endda  TYPE SY-DATUM. "   '99991231'

  CALL FUNCTION 'HR_PSEL_SELECTION_INIT'  "
    EXPORTING
         INIT_TCODE = lv_init_tcode
         INIT_UNAME = lv_init_uname
         INIT_BEGDA = lv_init_begda
         INIT_ENDDA = lv_init_endda
    TABLES
         INIT_PERNRS = lt_init_pernrs
. " HR_PSEL_SELECTION_INIT




ABAP code using 7.40 inline data declarations to call FM HR_PSEL_SELECTION_INIT

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 TCODE FROM SY INTO @DATA(ld_init_tcode).
DATA(ld_init_tcode) = SY-TCODE.
 
 
"SELECT single UNAME FROM SY INTO @DATA(ld_init_uname).
DATA(ld_init_uname) = SY-UNAME.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_init_begda).
DATA(ld_init_begda) = '18000101'.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_init_endda).
DATA(ld_init_endda) = '99991231'.
 


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!