‎2006 Dec 07 10:58 AM
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
‎2006 Dec 07 12:48 PM
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
‎2006 Dec 07 11:06 AM
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.
‎2006 Dec 07 11:22 AM
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
‎2006 Dec 07 11:40 AM
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
‎2006 Dec 07 12:52 PM
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.
‎2006 Dec 07 1:54 PM
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.
‎2006 Dec 07 12:48 PM
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
‎2006 Dec 07 1:27 PM
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