Application Development and Automation 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: 
Read only

header text languages

Former Member
0 Likes
1,380

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,155

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

Read only

Former Member
0 Likes
1,155

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

Read only

Former Member
0 Likes
1,155

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

Read only

Former Member
0 Likes
1,155

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.

Read only

alejandro_lpez
Contributor
0 Likes
1,155

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.