cancel
Showing results for 
Search instead for 
Did you mean: 

header text in smartforms

Former Member
0 Kudos

how to get header text in any smartform with function module

''READ_TEXT'' having some text id i.e. z102.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.