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

SAPscript

Hi,

I created a form using SAPscript for purchase order in SE71 when it was activated it is not showing any errors and in the ABAP program also their were no error but it is not showing any output when i provided the Purchase Order number in the selection screen. It is giving an error that write_form is invalid and Open_form is missing.

Please provide me the solution.

thanks,

sriram.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 11:01 PM

    Sriram,

    I am assuming that because you are getting this error you are using your own SAPscript Print Program?

    In the basic layout of a Print Program you need to do the following (after you have compiled your data).

    • this opens the SAPscript

    CALL FUNCTION 'OPEN_FORM'...

    • this opens up a new spool request

    CALL FUNCTION 'START_FORM'...

    • this calls the Text Elements and allows you to write

    • data to the SAPscript - write your headers, etc here

    CALL FUNCTION 'WRITE_FORM'...

    loop at tbl_ekpo.

    • This will display your PO Item contents

    CALL FUNCTION 'WRITE_FORM'...

    endloop.

    • closes the spool request

    CALL FUNCTION 'END_FORM'...

    • closes the SAPscript

    CALL FUNCTION 'CLOSE_FORM'...

    For more info about these Function Modules look at the doco in SE37 or look at the following link:

    http://help.sap.com/saphelp_46c/helpdata/en/d6/0dc169494511d182b70000e829fbfe/frameset.htm

    and look under "SAPscript Function Modules".

    Hope this helps.

    Cheers,

    Pat.

    PS. Kindly assign Reward Points to the posts you find helpful.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Sriram,

      Everything looks good. I really doubt that you must had made some mistake while defining the paragraph format/character format.

      Activate the form if you make any changes.

      Since yours is a custom program no need to assign or configure it using NACE transaction

      Just execute it filling the PO number. Recheck your pages, windows and page windows along with paragraph and character format.

      That should work.

      Thanks

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.