Application Development 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: 

Problem with print screen of sapscript

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

hi

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

reagrds

niharika

0 Kudos

Hi

The script that you want to see is the script that call my sapscrit?

If yes, the program is actived with no problems and the script of the "Page Windows" too.

Thanks

Former Member
0 Kudos

hi natali

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

reagrds

niharika

0 Kudos

Sorry Niharika, but I don't have permission to paste the script here because it is protected by terms of privacy.

Thanks again and sorry

0 Kudos

no probs..just wanted to help u solve ur problem..

neways hope u get a solution soon...

reagrds

niharika

0 Kudos

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