‎2005 Dec 12 6:36 PM
I have been asked to upper-case the text that I retrieve from 1 of my "/: include" statements in my billing document sapscript. I can not find a way to accomplish this. The text will contain several lines so I am not sure that I could use a function module in the print program to accomplish this. Does any one have suggestions. I have tried to changed the paragraph window formats but it appears that the outline attribute of Uppercase only works if an outline is in effect. There does not appear to be any attribute in the font or character libraries, or any font in my system that would allow only upper case.
HELP! Loucinda
‎2005 Dec 12 6:46 PM
/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p]
[NEW-PARAGRAPH np]
In the <b>paragraph formats</b> select the parapgraph p and under that click on button <b>outline</b>. Here you will find the <b>checkbox - Uppercase</b>. Select it and try again!
‎2005 Dec 12 6:47 PM
‎2005 Dec 12 6:54 PM
Hi,
What you can do is, in your script call a perform passing the internal table holding the text retrieved by /: include...
In this subroutine, you can loop on this internal table and then use TRANSLATE TO UPPER CASE.
Hope this is clear...
Regards,
Raj
‎2005 Dec 12 6:58 PM
SAM
I had tried this and the uppercase box will not stay selected unless I define all of the outline attributes. I am currently working in SAP R/3 Enterprise (470) service pack SAPKH47024. Even when I define an outline it has no effect on the actual text from the "/: include".
Thanks but no luck.
Loucinda
‎2005 Dec 12 8:29 PM
Hi Loucinda,
The "Upper Case" in "Paragraph format" --> "Outline" is for something else...it is for numbering...
see the help for the field...
<i><b>Switch for capitalization. If alphabetic characters or roman numerals are selected as the numbering type, this switch controls whether the letters are output as upper case or lower case characters.</b></i>
Like what others were suggesting, read the text inside the driver program using FM - "READ_TEXT" and transalte the contents on the internal table read using the TRANSLATE TO UPPER CASE...call the write_form Fm to write the lines of the table to the sapscript output..
Thanks & Regards,
Renjith.
‎2005 Dec 12 7:47 PM
Hi,
Get the text in the print program using READ_TEXT.The loop at the internal table lines & use Translate or use FM HR_99S_CONV_UPPER_CASE,then print it on the script.
‎2005 Dec 13 1:16 AM
Hi,
Driver Program :
read the text using FM - "READ_TEXT" .
Change the contents by using :
TRANSLATE TO UPPER CASE