‎2007 Nov 12 11:31 AM
Hi gurus,
I'm having a problem in Main window (SAPSCRIPT):
I already drawn lines by using Box command.
But it shows only in First Page Print Preview. and for further pages it only shows
columns (Data) without lines.
When I print, lines are getting printed only in First Page, other pages appears with no lines at all.
how can I solve this issue?
Thank you.
‎2007 Nov 12 11:41 AM
Hi,
Did u declared same or different Text Elements in the Text Editor of Main window.
If you declared them differently, if so you have to use the Write_Form for each Text Element.
And also, Try to use SAP Script control command Protect...Endprotect
Bye,
KC
‎2007 Nov 12 11:36 AM
if you want it in every page..and if it is static then
don't do it in MAIN window..
use secondary window for this purpose...
Reward points if useful.
Thanks & Regards
ilesh 24x7
‎2007 Nov 12 11:41 AM
Hi,
Did u declared same or different Text Elements in the Text Editor of Main window.
If you declared them differently, if so you have to use the Write_Form for each Text Element.
And also, Try to use SAP Script control command Protect...Endprotect
Bye,
KC
‎2007 Nov 12 4:11 PM
Thanks for your suggestions, but the problem remains.
Now I have a secondary window with box command, and the lines doesn't appear even in the First Page...And I'm using the command protect, and endprotect..
I was already using the Write_form for each text element.
Any more suggestions? tks.
‎2007 Nov 12 4:39 PM
Hi Priscila,
I was also having the same problem in couple of week ago. I have resolved it in this way.
If you want to display lines on every page then you have to do it in this way.
in SAP Sccript:
Create another Element say:
ITEM_HEADER1
BOX WIDTH '19.35' CM HEIGHT '2' LN FRAME 4 TW INTENSITY 10
POSITION XORIGIN '+0' CM YORIGIN '+0' LN
SIZE WIDTH '1.5' CM HEIGHT &W_COUNT& LN
BOX FRAME 4 TW
NEW: AE Part Number
POSITION XORIGIN '+1.5' CM YORIGIN '+0' LN
SIZE WIDTH '3.6' CM HEIGHT &W_COUNT& LN
BOX FRAME 4 TW
NEW: Description
POSITION XORIGIN '+3.6' CM YORIGIN '+0' LN
SIZE WIDTH '6.6' CM HEIGHT &W_COUNT& LN
BOX FRAME 4 TW
NEW: Qty
POSITION XORIGIN '+6.6' CM YORIGIN '+0' LN
SIZE WIDTH '1.75' CM HEIGHT &W_COUNT& LN
BOX FRAME 4 TW
NEW: Unit Price<b>In the Driver Program:
use the logic while callin g the line item before it calls the header element which you have created(ITEM_HEADER1)</b>
*************Reward Points if helpfull.................************
‎2007 Nov 12 6:54 PM
Thanks Chidanand.
I just need the vertical lines, and they should always appear, even if there's no sufficient data to show. Something like this:
_____________
1 | a | r | 1 | x |
1 | a | r | 1 | x |
<u>| 1 | a | r | 1 | x |</u>
I don't need horizontal lines, I just need to split in columns.
I'm using this command to draw the columns:
/: BOX FRAME 10 TW
/: BOX XPOS '3.50' CM WIDTH '0' CM FRAME 10 TW
/: BOX XPOS '8.4' CM WIDTH '0' CM FRAME 10 TW
/: BOX XPOS '9.6' CM WIDTH '0' CM FRAME 10 TW
and it works, but the problem is that only works for the first page..
Imagine that there was just one item to show: the columns should appear, in all of the window size, but only one item would appear.
‎2007 Nov 12 7:17 PM
Make a new window and put ont he main window.. This new window must be constant and have the same dimensions as main window.
put your code for lines into this new window.
Here I assum that your main window is of 10 CM of height.
/: BOX FRAME 10 TW
/: BOX XPOS '3.50' CM height 10 CM WIDTH '0' CM FRAME 10 TW
/: BOX XPOS '8.4' CM height 10 CM WIDTH '0' CM FRAME 10 TW
/: BOX XPOS '9.6' CM height 10 cm WIDTH '0' CM FRAME 10 TWRegards,
naimesh Patel
‎2007 Nov 13 9:51 AM