SAP HR_99S_GET_VALUES_STRUCTURE Function Module for Retrieve section fields from the key field
HR_99S_GET_VALUES_STRUCTURE is a standard hr 99s get values structure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieve section fields from the key field 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 hr 99s get values structure FM, simply by entering the name HR_99S_GET_VALUES_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR99S00_DAQ
Program Name: SAPLHR99S00_DAQ
Main Program: SAPLHR99S00_DAQ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_99S_GET_VALUES_STRUCTURE 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_99S_GET_VALUES_STRUCTURE'"Retrieve section fields from the key field.
EXPORTING
IM_FORM = "Data acquistion for forms
IM_SECTN = "Forms: Section
IM_TAB_SEDAT = "DAQ extracted data
* IM_KEY = "
IM_BEGDA = "
IM_ENDDA = "
IMPORTING
EX_TAB = "Output table with all fields of a section
EX_RETURNCODE = "Return Value, Return Value After ABAP Statements
CHANGING
* CH_TAB_ERROR = "
IMPORTING Parameters details for HR_99S_GET_VALUES_STRUCTURE
IM_FORM - Data acquistion for forms
Data type: CL_HR99S00_DAQOptional: No
Call by Reference: Yes
IM_SECTN - Forms: Section
Data type: T5F99FS-SECTNOptional: No
Call by Reference: Yes
IM_TAB_SEDAT - DAQ extracted data
Data type: P99SD_TAB_SEDATOptional: No
Call by Reference: Yes
IM_KEY -
Data type: P99SG_TAB_RANGESOptional: Yes
Call by Reference: Yes
IM_BEGDA -
Data type: DOptional: No
Call by Reference: Yes
IM_ENDDA -
Data type: DOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HR_99S_GET_VALUES_STRUCTURE
EX_TAB - Output table with all fields of a section
Data type: TABLEOptional: No
Call by Reference: Yes
EX_RETURNCODE - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_99S_GET_VALUES_STRUCTURE
CH_TAB_ERROR -
Data type: P99SF_TAB_ERROROptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_99S_GET_VALUES_STRUCTURE 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_ex_tab | TYPE TABLE, " | |||
| lv_im_form | TYPE CL_HR99S00_DAQ, " | |||
| lv_ch_tab_error | TYPE P99SF_TAB_ERROR, " | |||
| lv_im_sectn | TYPE T5F99FS-SECTN, " | |||
| lv_ex_returncode | TYPE SY-SUBRC, " | |||
| lv_im_tab_sedat | TYPE P99SD_TAB_SEDAT, " | |||
| lv_im_key | TYPE P99SG_TAB_RANGES, " | |||
| lv_im_begda | TYPE D, " | |||
| lv_im_endda | TYPE D. " |
|   CALL FUNCTION 'HR_99S_GET_VALUES_STRUCTURE' "Retrieve section fields from the key field |
| EXPORTING | ||
| IM_FORM | = lv_im_form | |
| IM_SECTN | = lv_im_sectn | |
| IM_TAB_SEDAT | = lv_im_tab_sedat | |
| IM_KEY | = lv_im_key | |
| IM_BEGDA | = lv_im_begda | |
| IM_ENDDA | = lv_im_endda | |
| IMPORTING | ||
| EX_TAB | = lv_ex_tab | |
| EX_RETURNCODE | = lv_ex_returncode | |
| CHANGING | ||
| CH_TAB_ERROR | = lv_ch_tab_error | |
| . " HR_99S_GET_VALUES_STRUCTURE | ||
ABAP code using 7.40 inline data declarations to call FM HR_99S_GET_VALUES_STRUCTURE
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 SECTN FROM T5F99FS INTO @DATA(ld_im_sectn). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_ex_returncode). | ||||
Search for further information about these or an SAP related objects