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: 

boxes

Former Member
0 Kudos

hi,

how to make box in report(not alv)and how to fill the data in the box

7 REPLIES 7

Former Member
0 Kudos

using uline and vline.

<b> write: sy-vline. WRITE:/(95) sy-uline.</b>, sy-vline.

rgds,

TM

Former Member
0 Kudos

just draw uing sy-uline( fro horizontal line) and sy-vline( for vertial line )

Former Member
0 Kudos

Hi,

In Sap-script :

BOX Command

Syntax

/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

Effect: draws a box of the specified size at the specified position.

Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter 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: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.

Units of measurement: The following units of measurement may be used:

TW (twip)

PT (point)

IN (inch)

MM (millimeter)

CM (centimeter)

LN (line)

CH (character).

The following conversion factors apply:

1 TW = 1/20 PT

1 PT = 1/72 IN

1 IN = 2.54 CM

1 CM = 10 MM

1 CH = height of a character relative to the CPI specification in the form header

1 LN = height of a line relative to the LPI specification in the form header

/: BOX FRAME 10 TW

Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).

/: BOX INTENSITY 10

Fills the window background with shading having a gray scale of 10 %.

/: BOX HEIGHT 0 TW FRAME 10 TW

Draws a horizontal line across the complete top edge of the window.

/: BOX WIDTH 0 TW FRAME 10 TW

Draws a vertical line along the complete height of the left hand edge of the window.

/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15

/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW

/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.

And to fill data adjust the tab positions of the fields according to box position.

Former Member
0 Kudos

Hi Amit,

You cannot directly use any command in report to get a box but you can design box with the help of ABAP statment <b>SY-ULINE and SY-VLINE</b>.

<b>ULINE</b> will draw a horizontal line.

<b>VLINE</b> will draw a vertical line with one piping symbol.

If you want to display content of internal table itab with a box format, use the following code.

IF ITAB[] IS NOT INITIAL.

WRITE:/ULINE(80).

<b>WRITE:/ SY-VLINE, 5 'MATERIAL NUMBER',SY-VILNE, 30 'PLANT', SY-VILNE, 50 'S-LOCATION',80 SY-VILNE.</b>

ENDIF.

LOOP AT ITAB.

<b>WRITE:/ SY-VLINE, 5 ITAB-MATNR,SY-VILNE, 30 ITAB-WERKS, SY-VILNE, 50 ITAB-LGORT ,80 SY-VILNE.</b>

ENDLOOP.

Thanks,

Vinay

dani_mn
Active Contributor
0 Kudos

Hi,

you have to use. sy-uline and sy-vline to create box manully.

write:/ sy-uline(20).

write:/ sy-vline.

Regards,

Wasim Ahmed

Former Member
0 Kudos

Hi Amit,

Check the code.

WRITE:/3 SY-ULINE(75).

WRITE:/3 SY-VLINE.

WRITE: 10 'Description:', 25 I_OUT-MAKTX.

WRITE:77 SY-VLINE.

WRITE:/3 SY-ULINE(75).

Message was edited by: mukesh kumar

former_member188685
Active Contributor
0 Kudos

Hi Amit,

If you want Boxex in normal report you have to write the coding using sy-uline,sy-vline with the positions to make it a box.

Check the transaction <b>LIBS</b> , here you can see examples on normal lists..

regards

vijay