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

Script text over flow

Former Member
0 Likes
892

hi guyz

i came accross a bug in my application program. actually, it uses SAP Script technology to print production order. let me give brief about the error, so that you guyz can be more accurate while giving solutiuon. my problem is, in one of the header window, of the production layout, i added one new field. immidiately, after this header window, my main window follows. now my problem is, in the first page of output, i am able to see the value of newly added field perfectly. but as it goes to second page, that particular variable, is overwritting some content of the main window. i bilieve, it is quite simple scenario. guyz working on Script would be able to knock it out perfectly within seconds.

thank you

shane

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
862

hi shane first of all

put the field that u have added in ur header window within protect and endprotect so that the value is not overflowing into main .

in ur header window

/: protect

P &field&

/: endprotect

like this.

in the second check see that the attributes of the length of first page and the next page are same in dimensions.

maybe the values in first page and second page might be different for that field .

left upper width and height must be same ..

check on all the windows.

regards,

vijay

7 REPLIES 7
Read only

Former Member
0 Likes
862

Hi,

u first clear the first value after print. or else the main value wrongly repeted in all windows. check ur code or send ur code. will find.

Read only

0 Likes
862

hi

perhalps i was not able to make it quite clear. let me explain one more time. actually, that particular new field has to be printed in all pages. also content of header window in my case is always same. i mean to say content of header is same in all pages. this is the way my client wanted. now problem is, when i added one new field in my header window, in first page the allignment is quite rite. but as the script moves on to second page, that particular new field is crossing its boundary. i mean to say its crossing boundary of header window and it is getting inside the main window in second page. am i clear in explaining this time?

shane

Read only

0 Likes
862

hi shane,

i think the problem is with the window attributes.

check for the windows attributes i.e. left margin , upper margin

window width , window height

the header window may be overlapping with main window...

else u ask SAP guys,

regards

Sachin

Read only

0 Likes
862

shane

check the window attributes as well as the page size which u maintain. also check all the windows called in the first page are called in your next page too. In first and next page u check the both window attributes.

Read only

0 Likes
862

Hi shane,

You are saying the contents are fine in the first page and where as in second page it is not. It means for page second page the window alinement was overlapping.

Check the windows alingment for the 'NEXT' page and adjust the window such that no overlaping of windows (Here my assumption is that you have 'FIRST' & 'NEXT' two pages in the script layout).

This will slove the problem.

Regards,

Satya.

Read only

Former Member
0 Likes
863

hi shane first of all

put the field that u have added in ur header window within protect and endprotect so that the value is not overflowing into main .

in ur header window

/: protect

P &field&

/: endprotect

like this.

in the second check see that the attributes of the length of first page and the next page are same in dimensions.

maybe the values in first page and second page might be different for that field .

left upper width and height must be same ..

check on all the windows.

regards,

vijay

Read only

Former Member
0 Likes
862

hello guyz!

ur suggestions were good. quite informative. but unfortunately, non of them worked out. i solved it myself, just by decreasing the line spacing.

thank you

shane