‎2007 Mar 19 9:00 AM
FUNCTION ZTEST.
data: disp_alv type as4flag value 'X' .
perform test using disp_alv.
form test using value(disp_alv) type as4flag .
endform.
ENDFUNCTION.
here is simple test function.
and shows error
'Incorrect nesting: Before the statement "FORM", the structure
introduced by "FUNCTION" must be concluded by "ENDFUNCTION" . . . . . . '
it means should I put 'form' outside of function?
or 'form' is not available inside function as itself?
Reagrds.
Lee
‎2007 Mar 19 9:04 AM
Hi,
Put the form declaration after ENDFUNCTION.
Something like this.
FUNCTION ZTEST.
*"----
""Local Interface:
*"----
PERFORM EDIT.
&----
*& Form edit
&----
text
----
ENDFUNCTION.
FORM EDIT.
ENDFORM. "edit
Award points if it was helpfull..
Thanks and Regards
Manish
‎2007 Mar 19 9:04 AM
Hi,
Write the following statements in other include of the function pool
form test using value(disp_alv) type as4flag .
endform.
You are not supposed to write this before endfunction.
Regards,
Anji
‎2007 Mar 19 9:04 AM
Hi,
Put the form declaration after ENDFUNCTION.
Something like this.
FUNCTION ZTEST.
*"----
""Local Interface:
*"----
PERFORM EDIT.
&----
*& Form edit
&----
text
----
ENDFUNCTION.
FORM EDIT.
ENDFORM. "edit
Award points if it was helpfull..
Thanks and Regards
Manish
‎2007 Mar 19 9:05 AM
form test using value(disp_alv) type as4flag .
endform.
write this code in separate include.while double clicking the perform test using disp_alv.system will automatically create the include.
or write the code without any perform.
‎2007 Mar 19 9:21 AM
write a form...endform inside an include,you can never write a form inside a function module.you can only call a subroutine.
plz reward with points if helpful.