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: 

reading sales text on material master

Former Member
0 Kudos
5,388

Hi Gurus,

I have 3 different languages on the sales text view of the material master.

I know i should be using FM READ_TEXT for retrieving this data.

Can someone help me with the parameter i need to pass to the FM to read this text based on language?

Thanks in advance

-Tuggudem

5 REPLIES 5

Former Member
0 Kudos
1,117

Hi

Open the text editor for the text you need to upload by that fm: here u can find out the text header parameter to be transfered to that fm like:

NAME (I think the material code)

OBJECT

ID

LANGUAGE

Max

Former Member
0 Kudos
1,117

Hi,

A text is read from the text file or text memory with this function module. It must be described fully by specifying OBJECT, NAME, ID, and LANGUAGE.

CONCATENATE I_DATA-MATNR I_DATA-VKORG INTO TDNAME1.

CONDENSE TDNAME1.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = '0011'

LANGUAGE = 'E'

NAME =TDNAME1

OBJECT = 'MVKE'

TABLES

LINES = IT_LINES.

CLIENT

Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.

Reference field: SY-MANDT

Default value: SY-MANDT

OBJECT

Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.

Reference field: THEAD-TDOBJECT

NAME

Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.

Reference field: THEAD-TDNAME

ID

Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.

Reference field: THEAD-TDID

LANGUAGE

Enter the language key of the text module. The system accepts only languages that are defined in table T002.

Reference field: THEAD-TDSPRAS

Regards,

KC

0 Kudos
1,117

Hi,

display a material which contains a sales text with mm03 and select the requested view (e.g.Sales Text).

Mark one of the languages and press the editor-button below.

Select Goto -> Header in the menu.

There you'll find the requested information.

NAME = MVKE-MATNR & MVKE-VKORG & MVKE-VTWEG

LANGUAGE = language

ID = 0001

OBJECT = MVKE

bye

Nicole

0 Kudos
1,117

NAME = MVKE-MATNR & MVKE-VKORG & MVKE-VTWEG

LANGUAGE = language

ID = 0001

OBJECT = MVKE

Am tried this it was working but

After hana migration this is not working because matnr length is now 40 from 18...

Please help

0 Kudos
1,117

Hi mayukhghosh2639,
you should better open a very new thread with the details of your issue, instead of referring to this very old post;

Thanks,

Flavio