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: 

Drawing box in the report output

Former Member
0 Kudos

Hi folks,

I need to draw a box in my BDC output, showing the status of records processed. I struct while drawing vertical lines.Could any one help me by giving a sample code, of how to draw a box in a report out.

Thanks in advance,

Shyam.

1 ACCEPTED SOLUTION

former_member265047
Active Participant
0 Kudos

Hi Shyam,

We can draw the box type output in classical reports by using system variables,

SY-ULINE (under line ) and SY-VLINE ( Vertical line ). Check the following code, you can get one box .

write : sy-uline.

write 😕 sy-vline , 'Naveen',

20 sy-vline.

write : / sy-uline.

I hope this would be helpful to you.

Regards,

Naveen Veshala

6 REPLIES 6

Former Member
0 Kudos

use

write: sy-vline.

reward please.

former_member265047
Active Participant
0 Kudos

Hi Shyam,

We can draw the box type output in classical reports by using system variables,

SY-ULINE (under line ) and SY-VLINE ( Vertical line ). Check the following code, you can get one box .

write : sy-uline.

write 😕 sy-vline , 'Naveen',

20 sy-vline.

write : / sy-uline.

I hope this would be helpful to you.

Regards,

Naveen Veshala

0 Kudos

Hi Naveen,

I am trying like this.But the Right handed vertical line in the box is not filling in the gap correctly..pls help me..

uline at 10(60).

write : /10 SY-VLINE,11 'Total Records sent for Batch Processing =',70 sy-vline,

/10 sy-vline,11 'Total Records posted Successfully =',70 sy-vline,

/10 sy-vline,11 'Total Records which encountered error =',70 sy-vline,

/10 sy-vline,10 sy-uline(60),70 sy-vline.

Thanks.

Former Member
0 Kudos

Hi Shyam,

You will have to use sy-uline & sy-vline

to draw horizontal & vertical lines in the output.

You can go to Tcode 'ABAPDOCU', there you will get the sample code about how to use these commands.

You can get sample code in below path in ABAPDOCU

BC-ABAP Programming ->ABAP User Dialogs->List->Complex List->Specify absolute positions

Reward if useful.

Regards,

Shailesh Jadhav

former_member265047
Active Participant
0 Kudos

Hi Shyam,

U just try this code.

uline at 10(61).

write : /10 SY-VLINE,11 'Total Records sent for Batch Processing =',70 sy-vline,

/10 sy-vline,11 'Total Records posted Successfully =',70 sy-vline,

/10 sy-vline,11 'Total Records which encountered error =',70 sy-vline,

/10 sy-vline,10 sy-uline(60),70 sy-vline.

I just increased the uline width..

Regards,

Naveen Veshala

Former Member
0 Kudos

hi ,

i hope the following code will useful for u.

write : sy-uline.

write 😕 sy-vline , 'kumar', 20 sy-vline

write : / sy-uline.

reward if useful.

Regards,

sravan.