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

Error in Script

Former Member
0 Likes
895

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

6 REPLIES 6
Read only

Former Member
0 Likes
861

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á

Read only

0 Likes
861

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 "

Read only

0 Likes
861

Hi,

maintain window under page window u get sucess.......

Rewards points if it is useful.

Message was edited by:

GURPRIT BHATIA

Read only

Former Member
0 Likes
861

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.

Read only

Former Member
0 Likes
861

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.

Read only

varma_narayana
Active Contributor
0 Likes
861

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>