SAP RS_CUA_INTERNAL_FETCH Function Module for Internal use: Source code access (read)
RS_CUA_INTERNAL_FETCH is a standard rs cua internal fetch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Internal use: Source code access (read) 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 rs cua internal fetch FM, simply by entering the name RS_CUA_INTERNAL_FETCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: SMPI
Program Name: SAPLSMPI
Main Program: SAPLSMPI
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RS_CUA_INTERNAL_FETCH 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 'RS_CUA_INTERNAL_FETCH'"Internal use: Source code access (read).
EXPORTING
PROGRAM = "
* LANGUAGE = "
* STATE = 'A' "ABAP: Program Status (Active, Saved, Transported...)
* WITH_SECOND_LANGUAGE = ' ' "
* WITHOUT_TEXTS = ' ' "
IMPORTING
ADM = "
GTIME = "
LANGU = "
AUTHOR = "
DATE = "
TIME = "
CAUTHOR = "
CDATE = "
CTIME = "
GDATE = "
TABLES
STA = "
TIT = "
* BIV = "Menu Painter: Fixed Functions on Application Toolbars
FUN = "
MEN = "
MTX = "
ACT = "
BUT = "
PFK = "
SET = "
DOC = "
EXCEPTIONS
NOT_FOUND = 1 UNKNOWN_VERSION = 2
IMPORTING Parameters details for RS_CUA_INTERNAL_FETCH
PROGRAM -
Data type: TRDIR-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE -
Data type: SY-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
STATE - ABAP: Program Status (Active, Saved, Transported...)
Data type: PROGDIR-STATEDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_SECOND_LANGUAGE -
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITHOUT_TEXTS -
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RS_CUA_INTERNAL_FETCH
ADM -
Data type: RSMPE_ADMOptional: No
Call by Reference: No ( called with pass by value option)
GTIME -
Data type: EUDB-GZEITOptional: No
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: EUDB-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
AUTHOR -
Data type: EUDB-AUTOROptional: No
Call by Reference: No ( called with pass by value option)
DATE -
Data type: EUDB-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
TIME -
Data type: EUDB-ZEITOptional: No
Call by Reference: No ( called with pass by value option)
CAUTHOR -
Data type: EUDB-VAUTOROptional: No
Call by Reference: No ( called with pass by value option)
CDATE -
Data type: EUDB-VDATUMOptional: No
Call by Reference: No ( called with pass by value option)
CTIME -
Data type: EUDB-VZEITOptional: No
Call by Reference: No ( called with pass by value option)
GDATE -
Data type: EUDB-GDATUMOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RS_CUA_INTERNAL_FETCH
STA -
Data type: RSMPE_STATOptional: No
Call by Reference: No ( called with pass by value option)
TIT -
Data type: RSMPE_TITTOptional: No
Call by Reference: No ( called with pass by value option)
BIV - Menu Painter: Fixed Functions on Application Toolbars
Data type: RSMPE_BUTSOptional: Yes
Call by Reference: Yes
FUN -
Data type: RSMPE_FUNTOptional: No
Call by Reference: No ( called with pass by value option)
MEN -
Data type: RSMPE_MENOptional: No
Call by Reference: No ( called with pass by value option)
MTX -
Data type: RSMPE_MNLTOptional: No
Call by Reference: No ( called with pass by value option)
ACT -
Data type: RSMPE_ACTOptional: No
Call by Reference: No ( called with pass by value option)
BUT -
Data type: RSMPE_BUTOptional: No
Call by Reference: No ( called with pass by value option)
PFK -
Data type: RSMPE_PFKOptional: No
Call by Reference: No ( called with pass by value option)
SET -
Data type: RSMPE_STAFOptional: No
Call by Reference: No ( called with pass by value option)
DOC -
Data type: RSMPE_ATRTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_VERSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RS_CUA_INTERNAL_FETCH 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_adm | TYPE RSMPE_ADM, " | |||
| lt_sta | TYPE STANDARD TABLE OF RSMPE_STAT, " | |||
| lv_program | TYPE TRDIR-NAME, " | |||
| lv_not_found | TYPE TRDIR, " | |||
| lt_tit | TYPE STANDARD TABLE OF RSMPE_TITT, " | |||
| lv_gtime | TYPE EUDB-GZEIT, " | |||
| lt_biv | TYPE STANDARD TABLE OF RSMPE_BUTS, " | |||
| lt_fun | TYPE STANDARD TABLE OF RSMPE_FUNT, " | |||
| lv_langu | TYPE EUDB-LANGU, " | |||
| lv_language | TYPE SY-LANGU, " | |||
| lv_unknown_version | TYPE SY, " | |||
| lt_men | TYPE STANDARD TABLE OF RSMPE_MEN, " | |||
| lv_state | TYPE PROGDIR-STATE, " 'A' | |||
| lv_author | TYPE EUDB-AUTOR, " | |||
| lt_mtx | TYPE STANDARD TABLE OF RSMPE_MNLT, " | |||
| lv_date | TYPE EUDB-DATUM, " | |||
| lv_with_second_language | TYPE CHAR1, " ' ' | |||
| lt_act | TYPE STANDARD TABLE OF RSMPE_ACT, " | |||
| lv_time | TYPE EUDB-ZEIT, " | |||
| lv_without_texts | TYPE CHAR1, " ' ' | |||
| lt_but | TYPE STANDARD TABLE OF RSMPE_BUT, " | |||
| lv_cauthor | TYPE EUDB-VAUTOR, " | |||
| lt_pfk | TYPE STANDARD TABLE OF RSMPE_PFK, " | |||
| lv_cdate | TYPE EUDB-VDATUM, " | |||
| lt_set | TYPE STANDARD TABLE OF RSMPE_STAF, " | |||
| lv_ctime | TYPE EUDB-VZEIT, " | |||
| lt_doc | TYPE STANDARD TABLE OF RSMPE_ATRT, " | |||
| lv_gdate | TYPE EUDB-GDATUM. " |
|   CALL FUNCTION 'RS_CUA_INTERNAL_FETCH' "Internal use: Source code access (read) |
| EXPORTING | ||
| PROGRAM | = lv_program | |
| LANGUAGE | = lv_language | |
| STATE | = lv_state | |
| WITH_SECOND_LANGUAGE | = lv_with_second_language | |
| WITHOUT_TEXTS | = lv_without_texts | |
| IMPORTING | ||
| ADM | = lv_adm | |
| GTIME | = lv_gtime | |
| LANGU | = lv_langu | |
| AUTHOR | = lv_author | |
| DATE | = lv_date | |
| TIME | = lv_time | |
| CAUTHOR | = lv_cauthor | |
| CDATE | = lv_cdate | |
| CTIME | = lv_ctime | |
| GDATE | = lv_gdate | |
| TABLES | ||
| STA | = lt_sta | |
| TIT | = lt_tit | |
| BIV | = lt_biv | |
| FUN | = lt_fun | |
| MEN | = lt_men | |
| MTX | = lt_mtx | |
| ACT | = lt_act | |
| BUT | = lt_but | |
| PFK | = lt_pfk | |
| SET | = lt_set | |
| DOC | = lt_doc | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| UNKNOWN_VERSION = 2 | ||
| . " RS_CUA_INTERNAL_FETCH | ||
ABAP code using 7.40 inline data declarations to call FM RS_CUA_INTERNAL_FETCH
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 NAME FROM TRDIR INTO @DATA(ld_program). | ||||
| "SELECT single GZEIT FROM EUDB INTO @DATA(ld_gtime). | ||||
| "SELECT single LANGU FROM EUDB INTO @DATA(ld_langu). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| "SELECT single STATE FROM PROGDIR INTO @DATA(ld_state). | ||||
| DATA(ld_state) | = 'A'. | |||
| "SELECT single AUTOR FROM EUDB INTO @DATA(ld_author). | ||||
| "SELECT single DATUM FROM EUDB INTO @DATA(ld_date). | ||||
| DATA(ld_with_second_language) | = ' '. | |||
| "SELECT single ZEIT FROM EUDB INTO @DATA(ld_time). | ||||
| DATA(ld_without_texts) | = ' '. | |||
| "SELECT single VAUTOR FROM EUDB INTO @DATA(ld_cauthor). | ||||
| "SELECT single VDATUM FROM EUDB INTO @DATA(ld_cdate). | ||||
| "SELECT single VZEIT FROM EUDB INTO @DATA(ld_ctime). | ||||
| "SELECT single GDATUM FROM EUDB INTO @DATA(ld_gdate). | ||||
Search for further information about these or an SAP related objects