Skip to Content

Sapscript - Error page format

Hi Experts,

I have a problem to print a label.

When I use the default format page (DINA4) in a sapcript basic settings the label was print correctly. But, when I use the new format page (ZGB_PRAT - created by basis) the error happens.

In a debbug mode I can see that: The functions to open and start form returns correctly (subrc = 0). But the function to print the main window returns with error (subrc = 7) and leave the process.

The message error is that: END_FORM is invalid, OPEN_FORM is missing.

I checked the size of main window and it's according to size of format page.

To make sure, I created a new sapscript and since the start I use the page format size. Didn't work.

I don't know how I can resolve this.

Please, Help me.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 13, 2011 at 11:30 AM
    call function 'OPEN_FORM'
    exporting
    device = '??????'    "what is the printer used ?
    

    it might be possible that you are printing on an wrong /invalid printer .May be this printer cant print the page format you specified.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 14, 2011 at 06:07 AM

    Hi,

    Can you post the error, when you are executing driver program (THAT IS NOT IN DEBUGGING MODE).May be the problem is with your new Page format.it might not created correctly.please let me know the error ,when your executing the driver program.

    with regards

    Naresh bammidi

    Add a comment
    10|10000 characters needed characters exceeded

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.