Skip to Content
author's profile photo Former Member
Former Member

Problem with print screen of sapscript

Hi all

I did the maintenance of a sapscript and later arose a problem with the print screen interface.

When I click at print button, the screen doesn't close automatically like before. I tested in three different machines and just one of them closed automatically.

Someone had the same problem?

The another problem occurs when I click the cancel button. Appears the message: "WRITE_FORM is invalid, OPEN_FORM is missing "

Thanks again

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2008 at 04:13 PM

    hi

    can u paste the code of ur script in here....specifically the Functions....may be then the problem can be determined....

    reagrds

    niharika

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2008 at 04:28 PM

    hi natali

    paste ur print program in here....yes it is the report that calls ur sapscript...

    reagrds

    niharika

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Well, I found the solution

      1° problem - This message appears because in the caller program, that is a copy of standart J_1BNFPI, did not have a sy-subrc validation before execute the piece of code that print the sapscript. To correct this I wrote in my form_open perform :

        IF sy-subrc NE 0.
          stop.
        ENDIF.
      

      2° problem - The SAPScript print window did not close because I had many documents in a queue. Printing this, the window close automatically.

      Thanks again and sorry for my wrong english

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.