Skip to Content
author's profile photo
Former Member

Error in Script

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 11:50 AM

    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á

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 11:52 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 12: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2007 at 12: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>

    Add comment
    10|10000 characters needed characters exceeded