Application Development and Automation 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: 
Read only

Problem with lines in SAPSCRIPT

Former Member
0 Likes
808

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
782

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

7 REPLIES 7
Read only

Former Member
0 Likes
782

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

Read only

Former Member
0 Likes
783

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

Read only

0 Likes
782

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.

Read only

0 Likes
782

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.................************

Read only

0 Likes
782

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.

Read only

0 Likes
782

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 TW

Regards,

naimesh Patel

Read only

0 Likes
782

Thanks everyone

Thanks Naimesh!

It's working!