SAP HR_DK_ALV_DISP_LIST_PERSON Function Module for









HR_DK_ALV_DISP_LIST_PERSON is a standard hr dk alv disp list person 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 dk alv disp list person FM, simply by entering the name HR_DK_ALV_DISP_LIST_PERSON into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_DK_ALV_DISP_LIST_PERSON 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_DK_ALV_DISP_LIST_PERSON'"
EXPORTING
* USE_CONTROL = ' ' "
* CALLBACK_END_OF_LIST = ' ' "
* CALLBACK_BUTTON1 = ' ' "
* TEXT_BUTTON1 = ' ' "
* CALLBACK_BUTTON2 = ' ' "
* TEXT_BUTTON2 = ' ' "
* CALLBACK_USER_COMMAND = ' ' "
STRUCT_NAME = "
CURRENT_REPORT = "
* LIST_TITLE = "
* LIST_TITLE2 = "
* GUI_STATUS = ' ' "
* VARIANT = ' ' "
* HR_DISPLAY_ERROR_LIST = ' ' "
* HR_DISPLAY_STAT_LIST = ' ' "

TABLES
TAB = "

EXCEPTIONS
READ_INFOTYPE_FAILED = 1 HR_ALV_LIST_DISPLAY_ERROR = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLHRBAS09_REPORT_PR_001 Customer Exit for Report Data for Employee Reports

IMPORTING Parameters details for HR_DK_ALV_DISP_LIST_PERSON

USE_CONTROL -

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

CALLBACK_END_OF_LIST -

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

CALLBACK_BUTTON1 -

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

TEXT_BUTTON1 -

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

CALLBACK_BUTTON2 -

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

TEXT_BUTTON2 -

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

CALLBACK_USER_COMMAND -

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

STRUCT_NAME -

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

CURRENT_REPORT -

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

LIST_TITLE -

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

LIST_TITLE2 -

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

GUI_STATUS -

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

VARIANT -

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

HR_DISPLAY_ERROR_LIST -

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

HR_DISPLAY_STAT_LIST -

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

TABLES Parameters details for HR_DK_ALV_DISP_LIST_PERSON

TAB -

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

EXCEPTIONS details

READ_INFOTYPE_FAILED -

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

HR_ALV_LIST_DISPLAY_ERROR -

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

Copy and paste ABAP code example for HR_DK_ALV_DISP_LIST_PERSON 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_tab  TYPE STANDARD TABLE OF STRING, "   
lv_use_control  TYPE STRING, "   SPACE
lv_read_infotype_failed  TYPE STRING, "   
lv_callback_end_of_list  TYPE STRING, "   SPACE
lv_callback_button1  TYPE STRING, "   SPACE
lv_text_button1  TYPE SMP_DYNTXT-TEXT, "   SPACE
lv_callback_button2  TYPE SMP_DYNTXT, "   SPACE
lv_text_button2  TYPE SMP_DYNTXT-TEXT, "   SPACE
lv_callback_user_command  TYPE SMP_DYNTXT, "   SPACE
lv_struct_name  TYPE DD02L-TABNAME, "   
lv_hr_alv_list_display_error  TYPE DD02L, "   
lv_current_report  TYPE SY-REPID, "   
lv_list_title  TYPE SY-TITLE, "   
lv_list_title2  TYPE SY-TITLE, "   
lv_gui_status  TYPE GUI_STATUS, "   SPACE
lv_variant  TYPE DISVARIANT-VARIANT, "   SPACE
lv_hr_display_error_list  TYPE XFELD, "   SPACE
lv_hr_display_stat_list  TYPE XFELD. "   SPACE

  CALL FUNCTION 'HR_DK_ALV_DISP_LIST_PERSON'  "
    EXPORTING
         USE_CONTROL = lv_use_control
         CALLBACK_END_OF_LIST = lv_callback_end_of_list
         CALLBACK_BUTTON1 = lv_callback_button1
         TEXT_BUTTON1 = lv_text_button1
         CALLBACK_BUTTON2 = lv_callback_button2
         TEXT_BUTTON2 = lv_text_button2
         CALLBACK_USER_COMMAND = lv_callback_user_command
         STRUCT_NAME = lv_struct_name
         CURRENT_REPORT = lv_current_report
         LIST_TITLE = lv_list_title
         LIST_TITLE2 = lv_list_title2
         GUI_STATUS = lv_gui_status
         VARIANT = lv_variant
         HR_DISPLAY_ERROR_LIST = lv_hr_display_error_list
         HR_DISPLAY_STAT_LIST = lv_hr_display_stat_list
    TABLES
         TAB = lt_tab
    EXCEPTIONS
        READ_INFOTYPE_FAILED = 1
        HR_ALV_LIST_DISPLAY_ERROR = 2
. " HR_DK_ALV_DISP_LIST_PERSON




ABAP code using 7.40 inline data declarations to call FM HR_DK_ALV_DISP_LIST_PERSON

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.

 
DATA(ld_use_control) = ' '.
 
 
DATA(ld_callback_end_of_list) = ' '.
 
DATA(ld_callback_button1) = ' '.
 
"SELECT single TEXT FROM SMP_DYNTXT INTO @DATA(ld_text_button1).
DATA(ld_text_button1) = ' '.
 
DATA(ld_callback_button2) = ' '.
 
"SELECT single TEXT FROM SMP_DYNTXT INTO @DATA(ld_text_button2).
DATA(ld_text_button2) = ' '.
 
DATA(ld_callback_user_command) = ' '.
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_struct_name).
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_current_report).
 
"SELECT single TITLE FROM SY INTO @DATA(ld_list_title).
 
"SELECT single TITLE FROM SY INTO @DATA(ld_list_title2).
 
DATA(ld_gui_status) = ' '.
 
"SELECT single VARIANT FROM DISVARIANT INTO @DATA(ld_variant).
DATA(ld_variant) = ' '.
 
DATA(ld_hr_display_error_list) = ' '.
 
DATA(ld_hr_display_stat_list) = ' '.
 


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!