cancel
Showing results for 
Search instead for 
Did you mean: 

Reg FM READ_TEXT

Former Member
0 Kudos

Hi

I have to use the FM READ_TEXT in me print program.I need to extract standard texts and print them in the different windows that i have in my sap-script.

For Ex: I need to extract text with OBJECT VTTK-TKNUM ID Z001 and NAME Shipment Number.

Similarly i need to extract texts with other ID s also : Z006,Z004 etc.

And then I need to pass them to sap-script.

I am not able to understand how to perform this task even though i read abt this FM in many threads.Please help me.

<b><REMOVED BY MODERATOR></b>

Thanks In Advance.

Chaitanya.

Title and Message were edited by:

Alvaro Tejada Galindo

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

This is how you can use your read text function module

Ex:

Note: to get it inside your SAPscript use sub-routine....

DATA BEGIN OF i_tlines OCCURS 0.

INCLUDE STRUCTURE tline.

DATA END OF i_tlines.

DATA: w_textname(70) TYPE c.

w_textname = vbdkr-vbeln.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'Z006'

language = 'E'

name = w_textname

object = 'VTTK'

TABLES

lines = i_tlines.

IF sy-subrc = 0.

READ TABLE i_tlines INDEX 1.

t_in-m1 = i_tlines-tdline.

ENDIF.

Close the thread once your question i answered...

Regards,

SaiRam

0 Kudos

Hi,

Try this in line in your SAP SCRIPT

/: INCLUDE &VTTK-TKNUM& OBJECT VTTK ID Z001 LANGUAGE 'EN' NEW-PARAGRAPH=

andreas_mann3
Active Contributor
0 Kudos

1) look for samples by where use list and here in the forum from me (et al.)

2) look for tables TTXOB and TTXID with se16

A.

Message was edited by:

Andreas Mann