‎2008 Aug 20 11:17 AM
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
‎2008 Aug 20 1:15 PM
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
‎2008 Aug 20 11:48 AM
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
‎2008 Aug 20 1:15 PM
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
‎2008 Aug 20 1:18 PM
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
‎2008 Aug 20 1:21 PM
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
‎2008 Aug 20 1:22 PM
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
‎2008 Aug 20 1:27 PM