‎2009 Jun 11 10:06 AM
Hi Friends,
I have entered item text in ME23N as follows:
Product A & Product B.
When I use READ_TEXT ( CALL FUNCTION 'READ_TEXT'),
I am getting the out put as follows:
Product A <(>&<)> Product B.
- How to get the correct content? Please help.
‎2009 Jun 11 10:11 AM
Hi,
Check Text in Script editor .. definitely it would be like "Product A <(>&<)> Product B. " So it is coming like that.Pease check ur text in script editor.
Regards,
Ananth
‎2009 Jun 11 10:10 AM
Hi,
After saving, just check if the text is in correct format in ME23N?
Regards
‎2009 Jun 11 10:11 AM
Hi,
Check Text in Script editor .. definitely it would be like "Product A <(>&<)> Product B. " So it is coming like that.Pease check ur text in script editor.
Regards,
Ananth
‎2009 Jun 11 10:14 AM
Hi hari,
Since u are reading a long text, u must be having text id , langauge etc.
Kindly Go to SO10 and check what is the text stored in it..
U will get an clear idea.
If always the value obtained as shown den format the same using character manupulations.
Hope this helps...!
Best Regards,
Vanessa Noronha.
‎2009 Jun 11 10:15 AM
Yes, you are correct.
That can be rectified if you can use B paragraph justified format for that text.
‎2009 Jun 11 10:23 AM
i had also faced same problem
actually due to system problem only
sap is not able to store certain special character (&) in the formate whatever we enter
actualy its internaly converting that symbol into internal format ,
only one solution for your problem
pass this symbols(&) to sort text of that perticular long text
or use this thing in
first 40 char
‎2009 Jun 11 10:25 AM
Hi,
Please go through the include LMEPOF2O and search for READ_TEXT Function call.
Standard program calls READ_TEXT and then detokenizes the string retrived if it contains special characters. Some part of code is written below. May be you can reuse the same by calling subroutines of program RSTXSCAN in your program.
* copy text lines
ls_textline-tdobject = ls_text_type-tdobject.
ls_textline-tdid = ls_text_type-tdid.
LOOP AT lt_lines INTO ls_line.
ls_textline-tdformat = ls_line-tdformat.
ls_textline-tdline = ls_line-tdline.
APPEND ls_textline TO cht_textlines.
ENDLOOP.
CLEAR ch_text_formatted.
IF ls_text_type-displaymode EQ space. "means: text is changeable!
* check if text is formatted
PERFORM init_itf_scanner(rstxscan) USING c_without_command_scan
c_form_text.
PERFORM set_itf_text(rstxscan) USING lt_lines.
DO.
PERFORM read_next_itf_token(rstxscan) USING l_token.
IF l_token-code <> c_token_element_begin AND
l_token-code <> c_token_element_end AND
l_token-code <> c_token_paragraph_begin AND
l_token-code <> c_token_paragraph_end AND
l_token-code <> c_token_line_begin AND
l_token-code <> c_token_line_end AND
l_token-code <> c_token_string.
IF l_token-code = c_token_text_end.
EXIT.
ELSE.
ch_text_formatted = mmpur_yes.
EXIT.
ENDIF.
ENDIF.
ENDDO.
ENDIF.KR Jaideep,
‎2009 Jun 11 11:17 AM
Hi Anand,
You are correct. When I opened in script editer (double click->Change editor),
I can see the special charecters. After I removed and saved, it is ok now.
Thanks for your help.