cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with form

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

asik_shameem
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member624107
Contributor
0 Kudos

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...