SAP HRXSS_SER_GETRESSOURCE Function Module for read ressource table entries
HRXSS_SER_GETRESSOURCE is a standard hrxss ser getressource SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for read ressource table entries 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 hrxss ser getressource FM, simply by entering the name HRXSS_SER_GETRESSOURCE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRXSS_SER_MENUCONFIG
Program Name: SAPLHRXSS_SER_MENUCONFIG
Main Program: SAPLHRXSS_SER_MENUCONFIG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRXSS_SER_GETRESSOURCE 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 'HRXSS_SER_GETRESSOURCE'"read ressource table entries.
EXPORTING
* SERVICETYPEIN = '' "ESS: Service type
RESSOURCEKEY = "XSS: Ressource object key
* PORTALCONTEXT = '' "XSS: Boolean value
* AREAGROUP = '' "XSS: Boolean value
* AREA = '' "XSS: Boolean value
IMPORTING
SERVICETYPEOUT = "ESS: Service type
DIRPATH = "XSS: Ressource directory path
APPLICATION = "XSS: String
PCDPAGE = "XSS: String
ISPCDPAGESTATIC = "XSS: Boolean value
URI = "XSS: URL
URLPARAMETER = "XSS: Ressource URL parameter
WDTARGET = "XSS: Ressource object window name
WDPROPERTIES = "XSS: Ressource window properties
EXCEPTIONS
RESSOURCE_NOT_FOUND = 1
IMPORTING Parameters details for HRXSS_SER_GETRESSOURCE
SERVICETYPEIN - ESS: Service type
Data type: XSS_SER_SERVICETYPEDefault: ''
Optional: Yes
Call by Reference: Yes
RESSOURCEKEY - XSS: Ressource object key
Data type: XSS_SER_RESOBJECTOptional: No
Call by Reference: Yes
PORTALCONTEXT - XSS: Boolean value
Data type: XSS_SER_BOOLEANDefault: ''
Optional: Yes
Call by Reference: Yes
AREAGROUP - XSS: Boolean value
Data type: XSS_SER_BOOLEANDefault: ''
Optional: Yes
Call by Reference: Yes
AREA - XSS: Boolean value
Data type: XSS_SER_BOOLEANDefault: ''
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRXSS_SER_GETRESSOURCE
SERVICETYPEOUT - ESS: Service type
Data type: XSS_SER_SERVICETYPEOptional: No
Call by Reference: Yes
DIRPATH - XSS: Ressource directory path
Data type: XSS_SER_STRINGOptional: No
Call by Reference: Yes
APPLICATION - XSS: String
Data type: XSS_SER_STRINGOptional: No
Call by Reference: Yes
PCDPAGE - XSS: String
Data type: XSS_SER_STRINGOptional: No
Call by Reference: Yes
ISPCDPAGESTATIC - XSS: Boolean value
Data type: XSS_SER_BOOLEANOptional: No
Call by Reference: Yes
URI - XSS: URL
Data type: XSS_SER_STRINGOptional: No
Call by Reference: Yes
URLPARAMETER - XSS: Ressource URL parameter
Data type: XSS_SER_STRINGOptional: No
Call by Reference: Yes
WDTARGET - XSS: Ressource object window name
Data type: XSS_SER_STRINGOptional: No
Call by Reference: Yes
WDPROPERTIES - XSS: Ressource window properties
Data type: XSS_SER_STRINGOptional: No
Call by Reference: Yes
EXCEPTIONS details
RESSOURCE_NOT_FOUND - ressource not definied
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRXSS_SER_GETRESSOURCE 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_servicetypein | TYPE XSS_SER_SERVICETYPE, " '' | |||
| lv_servicetypeout | TYPE XSS_SER_SERVICETYPE, " | |||
| lv_ressource_not_found | TYPE XSS_SER_SERVICETYPE, " | |||
| lv_dirpath | TYPE XSS_SER_STRING, " | |||
| lv_ressourcekey | TYPE XSS_SER_RESOBJECT, " | |||
| lv_application | TYPE XSS_SER_STRING, " | |||
| lv_portalcontext | TYPE XSS_SER_BOOLEAN, " '' | |||
| lv_pcdpage | TYPE XSS_SER_STRING, " | |||
| lv_areagroup | TYPE XSS_SER_BOOLEAN, " '' | |||
| lv_area | TYPE XSS_SER_BOOLEAN, " '' | |||
| lv_ispcdpagestatic | TYPE XSS_SER_BOOLEAN, " | |||
| lv_uri | TYPE XSS_SER_STRING, " | |||
| lv_urlparameter | TYPE XSS_SER_STRING, " | |||
| lv_wdtarget | TYPE XSS_SER_STRING, " | |||
| lv_wdproperties | TYPE XSS_SER_STRING. " |
|   CALL FUNCTION 'HRXSS_SER_GETRESSOURCE' "read ressource table entries |
| EXPORTING | ||
| SERVICETYPEIN | = lv_servicetypein | |
| RESSOURCEKEY | = lv_ressourcekey | |
| PORTALCONTEXT | = lv_portalcontext | |
| AREAGROUP | = lv_areagroup | |
| AREA | = lv_area | |
| IMPORTING | ||
| SERVICETYPEOUT | = lv_servicetypeout | |
| DIRPATH | = lv_dirpath | |
| APPLICATION | = lv_application | |
| PCDPAGE | = lv_pcdpage | |
| ISPCDPAGESTATIC | = lv_ispcdpagestatic | |
| URI | = lv_uri | |
| URLPARAMETER | = lv_urlparameter | |
| WDTARGET | = lv_wdtarget | |
| WDPROPERTIES | = lv_wdproperties | |
| EXCEPTIONS | ||
| RESSOURCE_NOT_FOUND = 1 | ||
| . " HRXSS_SER_GETRESSOURCE | ||
ABAP code using 7.40 inline data declarations to call FM HRXSS_SER_GETRESSOURCE
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_servicetypein) | = ''. | |||
| DATA(ld_portalcontext) | = ''. | |||
| DATA(ld_areagroup) | = ''. | |||
| DATA(ld_area) | = ''. | |||
Search for further information about these or an SAP related objects