Application Development 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: 

Sap Script - shade

Former Member
0 Kudos

Hi,

I've a question -> it is possible to shade a window or a text (but you've to know the position of the text)

POSITION WINDOW

POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN

SIZE WIDTH '+0.4' CH HEIGHT +1 LN

BOX HEIGHT '1.7' LN INTENSITY 20

is it also possible to shade a textline without knowing the position of the print? for example: I've two positions: print postion 1 without a shade - position 2 with a shade (in window main).

Thank you very much

best regards

Johannes

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Johannes,

It is possible with SAPScript. First of all, you should define a Character format, say "SH" for "shading", then go to pushbutton "Font" at the bottom of the screen. Then click "On"-radiobutton at "Underlined" row, and press the "Other attributes" pushbutton (you know, the one with an arrow pointing right). Here you should define the shading. I recommend you to populate "-0.50 LN" as spacing, "1.00 LN" as thickness, and "80%" as intensity, but you may change these parameters if you wish!

I hope it helps. BR,

Alvaro

PS: If it works, please let us know by rewarding this answer. Thanx!

3 REPLIES 3

Former Member
0 Kudos

It s easy to do it using smartforms and a loop ( not a table ).

For Sapscript, You might try to use standard function like WRITE_FORM_LINES to calculate dynamically the box position for shading, it isn't difficult but you have to spend time ( use LN for unit of position ), think about it before begining .

To my mind, i prefer the use of smartform.

Sincerely

Former Member
0 Kudos

Hi Johannes,

It is possible with SAPScript. First of all, you should define a Character format, say "SH" for "shading", then go to pushbutton "Font" at the bottom of the screen. Then click "On"-radiobutton at "Underlined" row, and press the "Other attributes" pushbutton (you know, the one with an arrow pointing right). Here you should define the shading. I recommend you to populate "-0.50 LN" as spacing, "1.00 LN" as thickness, and "80%" as intensity, but you may change these parameters if you wish!

I hope it helps. BR,

Alvaro

PS: If it works, please let us know by rewarding this answer. Thanx!

0 Kudos

hi alvaro,

perfect ... this was it g

many thanx

johannes