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

SAPscript

Former Member
0 Likes
718

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

7 REPLIES 7
Read only

Former Member
0 Likes
674

/: 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!

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
674

I guess you can bring the text in your print program, loo at the internal table, then translate itab-row to upper case. Then write the text in the SAPscript, instead of including it.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
674

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

Read only

Former Member
0 Likes
674

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

Read only

0 Likes
674

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.

Read only

Former Member
0 Likes
674

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.

Read only

Former Member
0 Likes
674

Hi,

Driver Program :

read the text using FM - "READ_TEXT" .

Change the contents by using :

TRANSLATE TO UPPER CASE