cancel
Showing results for 
Search instead for 
Did you mean: 

what is the difference between sy-uline and uline in sapscripts ?

Former Member
0 Kudos

hi guys,

what is the difference bt sy-uline and uline in sap scripts ?

this is an interview question ?

also how can we draw a line without using above ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

sy-uline is a system field.

No-difference. Except that uline is used outside

the Write Statement

TO draw a line.

/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]

OR

Draw a horizontal line by setting the HEIGHT in a BOX command to 0. Draw a vertical line by setting WIDTH to 0.

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

Vertical line 10 CM long

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

Horizontal line 10 CM long

ALSO

You can draw a line by setting the Height or Weidth to 0

and add a frame. E.g. a horizontal line:

/: SIZE HEIGHT '0' MM WIDTH '200' MM

/: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100

<i><b>Reward if helpful.</b></i>

Regards,

Pritha.

Message was edited by:

Pritha Agrawal

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

If you use the ULINE then it will print the total page length, but you can use the offset eith the SY-ULINE, then that much of line will be printed on the page

Regards

Sudheer