‎2006 Nov 15 1:18 PM
Hi,
How can I print the header text language on the report that exist for a given sales order no.
e.g. for a given 0005500001 sales oder , header text exists in which of the languages. how can I print it on a report. How can I get that languages field informantion.
please do the needdful
thanks.
Hemant
‎2006 Nov 15 1:23 PM
Hi
U can do a query on table STXH in order to know the languages and use the fm READ_TEXT to load the text in an internal table.
Max
‎2006 Nov 15 1:24 PM
Hi,
u can do that using read_text fumction module...
by paasing the following
data: v_text_id like thead-tdid value 'ST' , "ID LIKE THEAD-TDID
v_text_name like thead-tdname,"NAME LIKE THEAD-TDNAME
v_text_object like thead-tdobject 'TEXT', "OBJECT LIKE THEAD-TDOBJECT
v_language like thead-tdspras.
*
pass ur vblen to v_text_name.
refresh: p_text_tab.
call function 'READ_TEXT'
exporting
id = v_text_id
language = v_language
name = v_text_name
object = v_text_object
tables
lines = p_text_tab
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
Madhavi
‎2006 Nov 15 1:25 PM
You usually get the HEADER TEXTS using READ_TEXT function module. In this function module, there is a language parameter. Depending on which language you want to print, you pass the appropriate language code.
If you want the print in the same language in which the user has logged in, use the system field SY-LANGU.
Regards,
Ravi
Note - Please mark all the helpful ansewrs
‎2006 Nov 15 1:25 PM
Use the FM READ_TEXT to het text for a Order No.
*&-Read the Appropriate text through FM READ_TEXT
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = TEXTID
language = sy-langu
name = Order Number
object = Object
TABLES
lines = t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
‎2006 Nov 15 1:32 PM
Hi,
Double click in text header, then in the screen showed go to menú Goto->Header, then you will see the Text object, Text ID, Language and text name, that can be passed like parameters in function module READ_TEXT.
regards,
Alejandro.