SAP RSSEM_QUERY_READ_MOST_RECENT Function Module for check Queries for transactional InfoCubes
RSSEM_QUERY_READ_MOST_RECENT is a standard rssem query read most recent SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for check Queries for transactional InfoCubes 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 rssem query read most recent FM, simply by entering the name RSSEM_QUERY_READ_MOST_RECENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSSEM_TOOLS
Program Name: SAPLRSSEM_TOOLS
Main Program: SAPLRSSEM_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSSEM_QUERY_READ_MOST_RECENT 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 'RSSEM_QUERY_READ_MOST_RECENT'"check Queries for transactional InfoCubes.
IMPORTING
E_IS_OK = "All queries ok
E_NO_TACUBE_FOUND = "Number transactional Infocubes
E_NO_TAQUERY_FOUND = "Number queries on transactional Infocubes
ET_QUERY_NO_VAR = "In these queries the variable 0S_RQMRC is missing.
TABLES
ET_ALL_TRANSCUBES = "Directory of InfoCubes / InfoProvider
ET_ALL_QUERIES = "Directory of all reports
EXCEPTIONS
FAILED = 1
EXPORTING Parameters details for RSSEM_QUERY_READ_MOST_RECENT
E_IS_OK - All queries ok
Data type: COptional: No
Call by Reference: Yes
E_NO_TACUBE_FOUND - Number transactional Infocubes
Data type: IOptional: No
Call by Reference: Yes
E_NO_TAQUERY_FOUND - Number queries on transactional Infocubes
Data type: IOptional: No
Call by Reference: Yes
ET_QUERY_NO_VAR - In these queries the variable 0S_RQMRC is missing.
Data type: RSSEM_YT_RSRREPDIROptional: No
Call by Reference: Yes
TABLES Parameters details for RSSEM_QUERY_READ_MOST_RECENT
ET_ALL_TRANSCUBES - Directory of InfoCubes / InfoProvider
Data type: RSDCUBEOptional: No
Call by Reference: Yes
ET_ALL_QUERIES - Directory of all reports
Data type: RSRREPDIROptional: No
Call by Reference: Yes
EXCEPTIONS details
FAILED - Error occurred
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSSEM_QUERY_READ_MOST_RECENT 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_failed | TYPE STRING, " | |||
lv_e_is_ok | TYPE C, " | |||
lt_et_all_transcubes | TYPE STANDARD TABLE OF RSDCUBE, " | |||
lt_et_all_queries | TYPE STANDARD TABLE OF RSRREPDIR, " | |||
lv_e_no_tacube_found | TYPE I, " | |||
lv_e_no_taquery_found | TYPE I, " | |||
lv_et_query_no_var | TYPE RSSEM_YT_RSRREPDIR. " |
  CALL FUNCTION 'RSSEM_QUERY_READ_MOST_RECENT' "check Queries for transactional InfoCubes |
IMPORTING | ||
E_IS_OK | = lv_e_is_ok | |
E_NO_TACUBE_FOUND | = lv_e_no_tacube_found | |
E_NO_TAQUERY_FOUND | = lv_e_no_taquery_found | |
ET_QUERY_NO_VAR | = lv_et_query_no_var | |
TABLES | ||
ET_ALL_TRANSCUBES | = lt_et_all_transcubes | |
ET_ALL_QUERIES | = lt_et_all_queries | |
EXCEPTIONS | ||
FAILED = 1 | ||
. " RSSEM_QUERY_READ_MOST_RECENT |
ABAP code using 7.40 inline data declarations to call FM RSSEM_QUERY_READ_MOST_RECENT
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.Search for further information about these or an SAP related objects