2007 Aug 27 8:05 AM
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....
2007 Aug 27 8:25 AM
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
2007 Aug 27 8:16 AM
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
2007 Aug 27 8:25 AM
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
2007 Aug 29 7:17 AM
Hi Ravikumar,
Thanks alot . it really worked in my case too.
nywayz thanks to all.
2007 Aug 27 8:31 AM
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...