cancel
Showing results for 
Search instead for 
Did you mean: 

how can i read text and display in smartform?

former_member593554
Participant
0 Kudos

hi guru's.

i am working with purchase order smartform in ME22N or ME23N in header text ->shipping instruction is there .So i want to read the text and display it in a window

of smartform.

How can i proceed? please explain me

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

We use function module to read header text or item level text... try to create program lines and use FM READ_TEXT

Ex: (sample example)

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'Z006'

language = 'E'

name = w_textname

object = 'VBBK'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

lines = i_tlines.

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

IF sy-subrc = 0.

READ TABLE i_tlines INDEX 1.

t_in-m1 = i_tlines-tdline.

ENDIF.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

for readiing the texts you have to use the fm

<b>read_text</b>

this will give the header texts and any texts related to that

table is <b>STXH</b> in which all texts wil be stored

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id = depends on your requirements

language = 'EN'

name = depends on your requirements ( foreg purchase or der number

object = 'KNMT' (depends on your requirements )

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = IT_TLINE

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

thanks & regards,

Venkatesh