SAP SEL_PERS_DATA_FOR_DOWNLOAD Function Module for Creates mini-master record from HR database
SEL_PERS_DATA_FOR_DOWNLOAD is a standard sel pers data for download SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creates mini-master record from HR database 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 sel pers data for download FM, simply by entering the name SEL_PERS_DATA_FOR_DOWNLOAD into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRCO
Program Name: SAPLHRCO
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SEL_PERS_DATA_FOR_DOWNLOAD 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 'SEL_PERS_DATA_FOR_DOWNLOAD'"Creates mini-master record from HR database.
EXPORTING
DATUM = "
NUMBD = "Number of days of mini-master record
TABLES
IDWN01 = "Mini-master
EXCEPTIONS
NO_BDE_GROUPS = 1 NO_PERSONS_SELECTED = 2 NO_ENTRY_IN_T001P = 3 NO_ENTRY_IN_T503 = 4 WRONG_VERSION = 5 NO_AUTHORITY = 6 ERROR_IN_DETERMINE_ZDGBE = 7
IMPORTING Parameters details for SEL_PERS_DATA_FOR_DOWNLOAD
DATUM -
Data type: PDC61-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
NUMBD - Number of days of mini-master record
Data type: PDC61-NUMBDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SEL_PERS_DATA_FOR_DOWNLOAD
IDWN01 - Mini-master
Data type: DWN01Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_BDE_GROUPS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PERSONS_SELECTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_IN_T001P -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_IN_T503 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_VERSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No authorization for cluster B1, object RPPCLX
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_DETERMINE_ZDGBE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SEL_PERS_DATA_FOR_DOWNLOAD 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_datum | TYPE PDC61-DATUM, " | |||
| lt_idwn01 | TYPE STANDARD TABLE OF DWN01, " | |||
| lv_no_bde_groups | TYPE DWN01, " | |||
| lv_numbd | TYPE PDC61-NUMBD, " | |||
| lv_no_persons_selected | TYPE PDC61, " | |||
| lv_no_entry_in_t001p | TYPE PDC61, " | |||
| lv_no_entry_in_t503 | TYPE PDC61, " | |||
| lv_wrong_version | TYPE PDC61, " | |||
| lv_no_authority | TYPE PDC61, " | |||
| lv_error_in_determine_zdgbe | TYPE PDC61. " |
|   CALL FUNCTION 'SEL_PERS_DATA_FOR_DOWNLOAD' "Creates mini-master record from HR database |
| EXPORTING | ||
| DATUM | = lv_datum | |
| NUMBD | = lv_numbd | |
| TABLES | ||
| IDWN01 | = lt_idwn01 | |
| EXCEPTIONS | ||
| NO_BDE_GROUPS = 1 | ||
| NO_PERSONS_SELECTED = 2 | ||
| NO_ENTRY_IN_T001P = 3 | ||
| NO_ENTRY_IN_T503 = 4 | ||
| WRONG_VERSION = 5 | ||
| NO_AUTHORITY = 6 | ||
| ERROR_IN_DETERMINE_ZDGBE = 7 | ||
| . " SEL_PERS_DATA_FOR_DOWNLOAD | ||
ABAP code using 7.40 inline data declarations to call FM SEL_PERS_DATA_FOR_DOWNLOAD
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 DATUM FROM PDC61 INTO @DATA(ld_datum). | ||||
| "SELECT single NUMBD FROM PDC61 INTO @DATA(ld_numbd). | ||||
Search for further information about these or an SAP related objects