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

Longer material description

Former Member
0 Likes
1,061

Hi

My problem is material description t-code MM03.

I have a lot of new materials and material name (description) is almost 100 characters.

I need that material name in my material label so I can not leave anything out.

I print those labels by using another program, so if I can place first 40 character in that material field and end of that material name somewhere else I can print those labels. Is there some good place for that text?

I already try additional data => basic data text, but I can not find any tabel where that text is?

Or how that long text works ( edit=>long text)? I can not create eny text.

Best Regards

Tuomo H

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
987

Hi,

" You can read that additional text with FM READ_TEXT "

How can I do that?

I know Text name / Language / Text ID / Text Object, but what then?

This FM READ_TEXT is new case to me.

Kind Regards

Tuomo

6 REPLIES 6
Read only

Former Member
0 Likes
987

Hi,

If you use a long text for the additional description. For example Basic Data text.

You can read that additional text with FM READ_TEXT.

You can find the information for the long text by opening the text editor (for the text for the material you are maintaining).

Then use -> GOTO -> HEADER

You will need the information Text name / Language / Text ID / Text Object to pass to the FM READ_TEXT to retreive the long text information in your program.

Kind Regards

Read only

Former Member
0 Likes
988

Hi,

" You can read that additional text with FM READ_TEXT "

How can I do that?

I know Text name / Language / Text ID / Text Object, but what then?

This FM READ_TEXT is new case to me.

Kind Regards

Tuomo

Read only

0 Likes
987

hi

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = '0001'

language = 'E'

name = v_name

object = 'MVKE'

TABLES

lines = i_line

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

IF sy-subrc = 0.

READ TABLE i_line INDEX 1.

MOVE : wa_readtext-matnr TO wa_longtext-matnr,

i_line-tdline TO wa_longtext-tdline.

APPEND wa_longtext TO i_longtext.

CLEAR wa_longtext.

ENDIF.

You Can the details of name and object in the header of the longtext.

Edited by: A kumar on Aug 20, 2008 2:20 PM

Read only

0 Likes
987

Hi,

You should pass the Text name / Language / Text ID / Text Object to the function module READ_TEXT.

This returns a table LINES which contains your data.

U can display all the lines of this table LINES.

Bhupal

Read only

0 Likes
987

hi,

supply these parameters in tht fm.

data:i_potxt LIKE tline OCCURS 0 WITH HEADER LINE,

w_thead LIKE thead.

w_thead-tdname = wa_final-ebeln.

w_thead-tdspras = 'EN'.

w_thead-tdid = 'F05'.

w_thead-tdobject = 'EKKO'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = w_thead-tdid

language = w_thead-tdspras

name = w_thead-tdname

object = w_thead-tdobject

TABLES

lines = i_potxt

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

Edited by: gautham chakraverthi on Aug 20, 2008 5:54 PM

Read only

Former Member
0 Likes
987

Solved

Thanks all,

Br Tuomo