How can you display the list of text modules for a certain text object?
SolutionIn standard word processing, you can create a list of available standard texts using the function 'Find'. However, this search function is restricted to texts with object TEXT.
For texts which are linked with an application object, there is no general list function.
However, you can write a small program which selects the required texts with function module SELECT_TEXT.
This function module generates a table with the text headers of all text modules which correspond to the conditions specified in OBJECT, NAME, ID and LANGUAGE. The specifications in the parameters OBJECT, NAME, ID and LANGUAGE can also be generic.
Example:
DATA BEGIN OF SELECTED_TEXTS OCCURS 100.
INCLUDE STRUCTURE THEAD.
DATA END OF SELECTED_TEXTS.
CALL FUNCTION 'SELECT_TEXT'
EXPORTING OBJECT = 'KNA1'
NAME = '000001*'
ID = '*'
LANGUAGE = '*'
TABLES SELECTIONS = SELECTED_TEXTS.
The customer texts (object KNA1) of all customers whose customer number begins with 000001 are selected. The header information of the found texts are written to table SELECTED_TEXTS.
Additional key words
SAPscript, text module, so70
No comments:
Post a Comment