Skip to Content
0
Aug 24, 2011 at 11:29 AM

Fetching the standard text using Read_Text

351 Views

Hi,

I have to fetch standard text using Read_text fm

with id:002 name, vbak-vbeln,text:vbbk,Language:Nast-spras

for that I have wrote the code as

DATA: I_LINE LIKE STANDARD TABLE OF TLINE WITH HEADER LINE,

ID like THEAD-TDID,

TNAME LIKE THEAD-TDNAME,

TDOBJECT like THEAD-TDOBJECT.

ID = '0002'.

TNAME = P_VBELN.

TDOBJECT = 'VBBK'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = ID

language =

name = TNAME

object = TDOBJECT

TABLES

lines = I_LINE.

READ TABLE I_LINE.

IF SY-SUBRC = 0.

I_TEXT-V_TEXT = I_LINE-TDLINE.

ENDIF.

WRITE:/ i_text-v_text.

But, I am not understanding how to relate and access language from 'Nast" table