Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

regarding FM Read_Text

Former Member
0 Kudos

Dear all,

i have one Standard text named 'WARNING1' stored in ID 'zqty'.

now i want to call this FM in an include in a userexit.

if i call read_text it is asking for the following parameters.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = 'ZQTY'

LANGUAGE = SY-LANGU

NAME =

OBJECT =

TABLES

LINES =

Please let me know what to pass in.

thanks in advance....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Govardhan,

In my case i am reading the longtext of the maintenance order.

i_line TYPE STANDARD TABLE OF tline

lv_object LIKE thead-tdname.

concatenate sy-mandt ordernumber into lv_object.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'KOPF'

language = sy-langu

name = lv_object

object = 'AUFK'

TABLES

lines = i_line

i_line contains the returned longtext of the order.

name is the combination of mandt and the ordernumber.

object is the order header table.

Award points if this helpful.

Regards,

Ravi G

4 REPLIES 4

former_member404244
Active Contributor
0 Kudos

Hi,

U need to pass the following values to the FM .

Exporting

id

language

name

object

Tables

lines.

also u can use where uesd list and can see where it is used.

Regards,

Nagaraj

Former Member
0 Kudos

Hi Govardhan,

In my case i am reading the longtext of the maintenance order.

i_line TYPE STANDARD TABLE OF tline

lv_object LIKE thead-tdname.

concatenate sy-mandt ordernumber into lv_object.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'KOPF'

language = sy-langu

name = lv_object

object = 'AUFK'

TABLES

lines = i_line

i_line contains the returned longtext of the order.

name is the combination of mandt and the ordernumber.

object is the order header table.

Award points if this helpful.

Regards,

Ravi G

0 Kudos

Hi Ravikumar,

Thanks alot . it really worked in my case too.

nywayz thanks to all.

Former Member
0 Kudos

u have to pass OBJECT NAME ID Language and client

if u r using the standard text which is there in SO10..

then go to SO10 and get the Object name and id details and pass for these parameters

if u r want to take from Salesorder/contract/ quotation or whatever may be...thenu have to pass the detailsfor the number

In STXH table , pass the parameter TDNAME = 0049001263

and execute

u can get the details and pass here...