SAP HRBAS_STRUCTURE_READ Function Module for









HRBAS_STRUCTURE_READ is a standard hrbas structure read 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 hrbas structure read FM, simply by entering the name HRBAS_STRUCTURE_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function HRBAS_STRUCTURE_READ 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 'HRBAS_STRUCTURE_READ'"
EXPORTING
* HRBAS_MANDT = "R/3 System, Client Number from Logon
HRBAS_PLVAR = "Plan Version
HRBAS_SUBTY = "Subtype
HRBAS_BEGDA = "Start Date
HRBAS_ENDDA = "End Date
* HRBAS_FILL_BUFFER = 'F' "

TABLES
HRBAS_OBJECTS = "
HRBAS_ISTAT_RANGE = "
HRBAS_SCLAS_RANGE = "
HRBAS_T1001 = "
* HRBAS_ADATA_TAB = "
.



IMPORTING Parameters details for HRBAS_STRUCTURE_READ

HRBAS_MANDT - R/3 System, Client Number from Logon

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

HRBAS_PLVAR - Plan Version

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

HRBAS_SUBTY - Subtype

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

HRBAS_BEGDA - Start Date

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

HRBAS_ENDDA - End Date

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

HRBAS_FILL_BUFFER -

Data type: C
Default: 'F'
Optional: No
Call by Reference: Yes

TABLES Parameters details for HRBAS_STRUCTURE_READ

HRBAS_OBJECTS -

Data type:
Optional: No
Call by Reference: Yes

HRBAS_ISTAT_RANGE -

Data type:
Optional: No
Call by Reference: Yes

HRBAS_SCLAS_RANGE -

Data type:
Optional: No
Call by Reference: Yes

HRBAS_T1001 -

Data type:
Optional: No
Call by Reference: Yes

HRBAS_ADATA_TAB -

Data type:
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for HRBAS_STRUCTURE_READ 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_hrbas_mandt  TYPE SY-MANDT, "   
lt_hrbas_objects  TYPE STANDARD TABLE OF SY, "   
lv_hrbas_plvar  TYPE WPLOG-PLVAR, "   
lt_hrbas_istat_range  TYPE STANDARD TABLE OF WPLOG, "   
lv_hrbas_subty  TYPE WPLOG-SUBTY, "   
lt_hrbas_sclas_range  TYPE STANDARD TABLE OF WPLOG, "   
lv_hrbas_begda  TYPE WPLOG-BEGDA, "   
lt_hrbas_t1001  TYPE STANDARD TABLE OF WPLOG, "   
lv_hrbas_endda  TYPE WPLOG-ENDDA, "   
lt_hrbas_adata_tab  TYPE STANDARD TABLE OF WPLOG, "   
lv_hrbas_fill_buffer  TYPE C. "   'F'

  CALL FUNCTION 'HRBAS_STRUCTURE_READ'  "
    EXPORTING
         HRBAS_MANDT = lv_hrbas_mandt
         HRBAS_PLVAR = lv_hrbas_plvar
         HRBAS_SUBTY = lv_hrbas_subty
         HRBAS_BEGDA = lv_hrbas_begda
         HRBAS_ENDDA = lv_hrbas_endda
         HRBAS_FILL_BUFFER = lv_hrbas_fill_buffer
    TABLES
         HRBAS_OBJECTS = lt_hrbas_objects
         HRBAS_ISTAT_RANGE = lt_hrbas_istat_range
         HRBAS_SCLAS_RANGE = lt_hrbas_sclas_range
         HRBAS_T1001 = lt_hrbas_t1001
         HRBAS_ADATA_TAB = lt_hrbas_adata_tab
. " HRBAS_STRUCTURE_READ




ABAP code using 7.40 inline data declarations to call FM HRBAS_STRUCTURE_READ

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 MANDT FROM SY INTO @DATA(ld_hrbas_mandt).
 
 
"SELECT single PLVAR FROM WPLOG INTO @DATA(ld_hrbas_plvar).
 
 
"SELECT single SUBTY FROM WPLOG INTO @DATA(ld_hrbas_subty).
 
 
"SELECT single BEGDA FROM WPLOG INTO @DATA(ld_hrbas_begda).
 
 
"SELECT single ENDDA FROM WPLOG INTO @DATA(ld_hrbas_endda).
 
 
DATA(ld_hrbas_fill_buffer) = 'F'.
 


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!