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

Error:"Write_Form is invalid. Start_Form is missing"

Hi experts!

I'm doing a program with sapscript. But then I get an error "Write_Form is

invalid. Start_Form is missing". It was working before but when I add

another loop it ain't working. I separated it into 2 elements in 1 window

and different paragraph format. I can't include another start_form and it

might cause unnecassary form/page. What are the causes of this error?

Here are some of my codes. Kindly check if I have the right pattern.

I stopped on my last loop(record) of lt_tab.

  PERFORM get_data.
  PERFORM get_linei.
  PERFORM convert_amt.
  PERFORM open_form.
  PERFORM start_form.
  PERFORM write_form.
  PERFORM end_form.
  PERFORM close_form.


* Computation
  LOOP AT lt_tab.
    CASE lt_tab-linei.
      WHEN '001'.
        lv_amt = lt_postdoc-wbamt.
      WHEN '002'.
        lv_amt = lt_postdoc-vbamt.
      WHEN '003'.
        lv_amt = lt_postdoc-invat.
      WHEN '004'.
        lv_amt = lt_postdoc-wtamt.
    ENDCASE.

    CALL FUNCTION 'WRITE_FORM'
     EXPORTING
   ELEMENT                        = 'TABLE1'
*   FUNCTION                       = 'SET'
*   TYPE                           = 'BODY'
       WINDOW                     = 'MAIN'.
  ENDLOOP.

* Document Line item
  LOOP AT lt_item.
    CALL FUNCTION 'WRITE_FORM'
     EXPORTING
   ELEMENT                        = 'TABLE2'
*   FUNCTION                       = 'SET'
*   TYPE                           = 'BODY'
       WINDOW                     = 'MAIN'.
  ENDLOOP.

Points for helpful brains. thanks!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 05:17 AM

    Hi,

    Try where condition in Item loop. And also throw exceptions of write_form. It may tell you the error.

    Ashven.

    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.