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: 

Dynamic vertical line in SAP script

former_member734916
Participant
0 Kudos

Hello Friends,

I have one problem while drawing a vertical line in SAP scripts.

In my main window I have some number of line items, depending on the number of line items I need vertical line after every column.

I tried with sy-vilne but it displaying as dashes.

like

|

|

|

|

|

I want a full line not dashed line.

Please help me.

Regards.

Krishna.

5 REPLIES 5

Former Member
0 Kudos

Hello,

POSITION XORIGIN '2.9' CM YORIGIN '1.7' CM

BOX WIDTH '0' CM HEIGHT '8.3' CM FRAME 10 TW

With the above u ll get vertical line

POSITION XORIGIN '2.9' CM YORIGIN '1.7' CM

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

With the above u ll get horizantal line

Regards,

Subbu

0 Kudos

Hello Subba Reddy,

Thanks for your mail.

POSITION XORIGIN '2.9' CM YORIGIN '1.7' CM

BOX WIDTH '0' CM HEIGHT '8.3' CM FRAME 10 TW

By using above command I will get a vertical line with 8.3 CM, but, If I have only 2 line items in my main window I don't want this much big line.

I want to draw a vertical line based on line items in main window.

Regards.

Krishna.

0 Kudos

hi ,

For example u have 3 columns......

So write this piece of code in which header is getting printed....

<B>,,TEST,,,,,,,,,,,,UOM,,,,,,,,,,Results</>
 /: BOX WIDTH '15' CM HEIGHT '8' MM FRAME 10 TW INTENSITY 15
 /: BOX XPOS '5'   CM  WIDTH 1 TW HEIGHT '8' MM FRAME 15 TW 
 /: BOX XPOS '10'   CM  WIDTH 1 TW HEIGHT '8' MM FRAME 15 TW

Write this peice of code in which ur line items are getting printed

/: POSITION YORIGIN '+8' MM
/: BOX WIDTH '15' CM HEIGHT '8' MM FRAME 10 TW
/: BOX XPOS '5'   CM  WIDTH 1 TW HEIGHT '8' MM FRAME 15 TW
/: BOX XPOS '10'   CM  WIDTH 1 TW HEIGHT '8' MM FRAME 15 TW

It worked for me, and i hope it works for u as well

Regards

former_member734916
Participant
0 Kudos

Answer please?

former_member194797
Active Contributor
0 Kudos

It is also possible with variables:


BOX XPOS &COL01& CM WIDTH 0 TW HEIGHT &SAPSCRIPT-COUNTER_1& LN FRAME 10 TW
BOX XPOS &COL02& CM WIDTH 0 TW HEIGHT &SAPSCRIPT-COUNTER_1& LN FRAME 10 TW
BOX XPOS &COL03& CM WIDTH 0 TW HEIGHT &SAPSCRIPT-COUNTER_1& LN FRAME 10 TW
BOX XPOS &COL04& CM WIDTH 0 TW HEIGHT &SAPSCRIPT-COUNTER_1& LN FRAME 10 TW
BOX XPOS &COL05& CM WIDTH 0 TW HEIGHT &SAPSCRIPT-COUNTER_1& LN FRAME 10 TW
BOX XPOS &COL06& CM WIDTH 0 TW HEIGHT &SAPSCRIPT-COUNTER_1& LN FRAME 10 TW