04-25-2006 9:56 AM
Morning All
Hopefully a quick one for you.
Is there a way of calling a window before the MAIN window. It seems this is always called first and then the subsequent windows (which can be called explicitly via the CALL FUNCTION 'WRITE_FORM'.)
Cheers
Ian
04-25-2006 11:45 AM
Hi lan,
we can always call a non-main window before calling a main window. are you getting any error?
regards,
vidya.
04-25-2006 10:00 AM
Hai Ian
The Order is
1)Header
2)Pages
3)Window
4)Page Windows
4)Paragraph Formats
6) Chracter Formats
Thanks & regards
Sreenivasulu P
04-25-2006 10:18 AM
Hi Sreenivasulu
Thanks for your reply. I think I may have mislead by not specifying the question correctly.
What I wish to do is set up some global variables in a window that is to be called before the MAIN window is called automatically. Is this possible or is the MAIN always called first?
Regards
Ian
04-25-2006 11:45 AM
Hi lan,
we can always call a non-main window before calling a main window. are you getting any error?
regards,
vidya.
04-25-2006 2:16 PM
Hi and thanks for your replies
We do not get an error, the situation is that we using the SAPSCript Raw Data Interface to pass the data to HP. We want to declare a window that will act as a placeholder for global data that will get processed first. However, in the RDI spool output, MAIN is always the first window to get processed when it is on the page, otherwise, the windows are processed implicitly in alphabetical order.
A rather complicated scenario but any help would really be appreciated!!
Thanks
Ian
04-25-2006 12:07 PM
Hi Ian,
If a page does not have a main window, the system implicitly processes all other windows of the page and continues with the subsequent page. This page must not call itself as subsequent page (recursive call), since this would produce an endless loop. In such a case, SAPscript terminates the output after three subsequent pages.
Regards,
Aniket
Please mark useful posts.