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
819

hi,

In sapscript,i need to put in a window

like a small box with shading black and inside the box i need to write title like "address" in white color

If it is smartforms then we define in style ,the color,shading etc but how in sapscript

Pl reply imm

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
791

Hi,

Look at the sample commands..........

/: BOX YPOS '3.8'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '5.5'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '7.2'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '8.9'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '10.6'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

With this you can play like any thing inside the window.

By increasing INTENSITY 8 This no if you increase the darkness will increase.

Thanks.

If this helps you reward with points.

Message was edited by: Deepak333 k

7 REPLIES 7
Read only

Former Member
0 Likes
791

Using INTESITY option you can do that..

vijay

Read only

Former Member
0 Likes
791
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
Effect: draws a box of the specified size at the specified position.
Parameters: For each parameter (XPOS, YPOS, WIDTH, HEIGHT and FRAME), both a measurement and a unit of measure must be specified. The INTENSITY parameter should be entered as a percentage between 0 and 100.
· XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.
Default: Values specified in the POSITION command.
The following calculation is performed internally to determine the absolute output position of a box on the page:
X(abs) = XORIGIN + XPOS
Y(abs) = YORIGIN + YPOS
· WIDTH: Width of the box.
Default: WIDTH value of the SIZE command.
· HEIGHT: Height of the box.
Default: HEIGHT value of the SIZE command.
· FRAME: Thickness of frame.
Default: 0 (no frame).
· INTENSITY: Grayscale of box contents as %.
Default: 100 (full black)
Measurements: Decimal numbers must be specified as literal values (like ABAP/4 numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.

Read only

Former Member
0 Likes
792

Hi,

Look at the sample commands..........

/: BOX YPOS '3.8'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '5.5'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '7.2'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '8.9'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

/: BOX YPOS '10.6'CM WIDTH '25.4'CM HEIGHT '0.85'CM FRAME 0 TW INTENSITY 8

With this you can play like any thing inside the window.

By increasing INTENSITY 8 This no if you increase the darkness will increase.

Thanks.

If this helps you reward with points.

Message was edited by: Deepak333 k

Read only

0 Likes
791

Thanks I am able to draw a box with shading black

But I need to write some title inside the black box and the title will be white color (then only i will be visible in black box)

Pl relpy imm

Read only

0 Likes
791

reduce the intesnity little , so that you can see the title in side.

but other way i m not sure..

vijay

Read only

0 Likes
791

Hi,

Look at the following example..........

/: BOX WIDTH '5.0' CM HEIGHT '0.7' CM INTENSITY 13

/: BOX YPOS '1.4' CM WIDTH '5.0' CM HEIGHT '0.7' CM INTENSITY 13

/: SET DATE MASK = 'DD-MMM-YY'

TX Inv.No. &VBDKR-VBELN&

AR

P1 <H>Page:</>,,&PAGE&

AR

DT <H>Date:</>,,&VBDKR-FKDAT&

/: SET DATE MASK = 'MM/DD/YY'

Here in BOX INV NO will be displayed with INTESITY in Background.

This looks good.

Try this.

But as you think letters to be displayed in white with back ground intensity i think it is not possible in Script. not sure about it.

Thanks.

If this helps you reward with points.

Read only

Former Member
0 Likes
791

You can create a graphic bmp file with black background and while text, and import it to your form using tcode SE78