SAP Function RS_CUA_GET_TEXTS - Read GUI Texts

Parameter Reference Type Length Default Optional Text
DOCU_TEXTS 0 SPACE X Obsolete from Release 4.0
LANGUAGE SYST-LANGU C 1 SPACE X Language in which the texts should be returned
NAME TRDIR-NAME C 40 Program Name

Parameter Reference Type Length Text
MASTER_LANGU SYST-LANGU C 1 Source language

Parameter Reference Length Optional Text
DTEXTS RSMP_DTXT 84 X Obsolete from Release 4.0
DYNAMIC_TEXTS RSEU0_FUND 141 X Obsolete from Release 4.0
GUI_TEXTS RSMPE_TXT 169 X Function and menu texts
TEXTS RSEU0_FUN 51 X Obsolete from Release 4.0

Exception Text
CUA_NOT_FOUND User interface not found (new source)
NO_TEXTS No texts were found
PROGRAM_NOT_FOUND Program not found


This function module returns the menu and function texts of a programin an internal table. It also returns the master language. The textsare returned in the master language if the LANGUAGE parameter is set toinitial. Otherwise, they are returned in the requested language.Untranslated texts are also contained in the table. The TRANSLATEDfield is set to initial in these cases. The TRANSLATED field containsthe value 'X' for texts for which a translation exists.
There can be more than one text for a single function. For this reason,the function code and the text number (which are usually the same) arereturned in the internal table.
The type for a menu always M. The type for a function is the same asthe function type (space, E, S...)

Description
If you want the module to return texts that are only relevant to theprogrammer, you should pass 'X' as the value of this parameter.

Description
The table contains the descriptive texts for an interface. These areintended to help programmers who are working on an interface.
TYPE Text type: S = Status short text
N = Menu
A = Menu bar
P = Function key setting
CODE Internal code for the text
DOKU_TEXT Text
LENGTH Length of the text
TRANSLATED If status has various languages:
'x' = Translation found
space = Text is in original language

Description
The table contains all dynamic function and menu texts
TEXTNR Text number
CODE Function code
FIELDNAME Name of the ABAP field to which the text is assigned
TYPE M = Menu, otherwise function type (E, T, S, space)