on 11-03-2008 6:37 AM
how to get header text in any smartform with function module
''READ_TEXT'' having some text id i.e. z102.
Hello Vivek,
Directly make the text type as Include text and pass the relavant info like text id,name,oject,language etc .
And also check the check box no error if no text exists.
Cheers,
Shafi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
go to db table stxh.
in selection screen enter data -
text object - ekko ( say for PO header text)
text name - PO number.
id - that u have.
execute.
if there is any entry then go to FM read _text.
enter this three parameters as input with language in which text is maintained say, EN.
execute.
in tables u get no. of entries if any.
click on that.
for coding call this FM in prog and pass above parameters.
put loop for the table and display records (texts).
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If its not a special requirement to use 'READ_TEXT'; you can directly use the text node type - 'Include Text'.
Possible a better option; just enter the text name, object, id and language !!
Neeraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PERFORM READ_TEXT TABLES ITEXT
USING 'EX05' 'VBBK' text_del.
READ TABLE ITEXT into witext INDEX 1.
IF SY-SUBRC EQ 0. MODEOFTRN = wITEXT-TDLINE. ENDIF.
REFRESH ITEXT.
FORM READ_TEXT TABLES ITEXT STRUCTURE TLINE
USING P_ID P_OBJ P_NAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = P_ID----
text id
LANGUAGE = SY-LANGU
NAME = P_NAME---- (po, so , invoice no)
OBJECT = P_OBJ
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
TABLES
LINES = ITEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
endform.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.