09-11-2008 7:24 AM
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.
09-11-2008 7:28 AM
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
09-11-2008 7:32 AM
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.
09-11-2008 8:00 AM
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
09-11-2008 9:28 AM
09-11-2008 10:21 AM
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