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

Problem with form

where i have to place the following funciton in abap program?

form getdata tables inttab structure ictsy outtab structure ictsy

..endform.

i placed it before open_form of my print program,the error says 'statement not accessible'..anything after endform is inaccessible.why?should i place the function after close form..i mean at the program last.

please advise.thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Nov 30, 2007 at 12:03 PM

    hi

    FORM abc

    ....

    ENDFORM.

    must be written at the end of pgm. ie. u cant insert any code in main pgm after FORM stmt. put the subroutine at the end of pgm.

    Message was edited by:

    sham

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 12:03 PM

    Hi..

    First we shud hav perform statement then only corresponding form statement..

    so ur perform s der inside script text element..

    after encountering that only it shud hav corresponding form statement...

    so form statement shud b after open_form statement...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 02:52 PM

    Hi,

    That happens, especially in standard SAP programs.

    I suggest you create an INCLUDE program, then place your FORM in it.

    In the main program only insert the INCLUDE <your_include_name>

    Hope this helps!

    Cheers

    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.