‎2007 Aug 23 12:44 PM
Hi ,
We are using a script for printing call off order .
On execution of CO for printing , we get the print preview .
But one of the text lines for total is not executing .
Actually the control of the program does not come to that line .
i dont know why this is happening .
Also there are a few pop up msg that the system throws while debugging such as
" element header_date not defined for window main .
Can someone plzz help me , what should i do so that the control reaches all the parts of the code ,and prints the complete text .
Thanks
Ankita
‎2007 Aug 23 12:50 PM
Hi!
In your SAPScript's MAIN window, has to be a line like this:
/E HEADER_DATE
*
You have to put at least an empty line after the element, to make it active.
Regards
Tamá
‎2007 Aug 23 12:52 PM
should every window have atleast one element
it is giving these kind of meassages for 4 elements and also '
"window reference not defined "
"window next page not defined "
‎2007 Aug 23 12:54 PM
Hi,
maintain window under page window u get sucess.......
Rewards points if it is useful.
Message was edited by:
GURPRIT BHATIA
‎2007 Aug 23 12:52 PM
Hi,
Please check it in debugging mode ...
Check a page window in which your text is define.. means is this window is maintain under your page......
And also the position of that window on page sometimes may be window override problem....
For debugging ..goto menu options and click acive debugging option then debugging is activate and execute your debuging . put watch on particular text.
Rewards points if is useful.
‎2007 Aug 23 1:14 PM
first check have u defined the element header)date in mian window.
second in the main program when the program control is at this element check the variable used for total is filled with the value or not.
‎2007 Aug 23 1:18 PM
Hii..
Check The WRITE_FORM function in print program
The element names must be passed in UPPER CASE
So you must pass it like this.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMEN = 'HEADER_DATE'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'.
This Element must exist in Main window BODY like this
/E HEADER_DATE
<b>Reward if Helpful</b>