‎2007 Oct 05 11:58 AM
i have created a FM and the code contains some form calls
but it gives loop errors
mu code is of the form..
function
perform call1
<b>Error here(endfuction expected)</b>
form call1
end form
endfunction
‎2007 Oct 05 12:01 PM
You need to create your subroutine in an INCLUDE program of the function group, not direct in the module itself.
Regards,
Nick
‎2007 Oct 05 12:05 PM
function.
perform call1.
endfunction.
when u double click on call1, create the same in an include program and write the neccessary code inside the include program.
it will work...
‎2007 Oct 05 12:06 PM
hi,
the declaration for call1 is incorrect .. it should be declaraed outside the function module..
you can write it separately n then include in your program by using INCLUDE statement.
‎2007 Oct 05 12:06 PM
‎2007 Oct 05 12:10 PM
Have you defined the subroutine outside the function and removed the original defintion?
‎2007 Oct 05 12:13 PM
Hi
create include program and give form definition here.
activate both function module and include.....even if u get errors.....activate anyway.
Then go to function module....click on object list and check if include program is under this function module.
Hope there are no syntax errors.
Regards
Vasu
‎2007 Oct 05 12:20 PM
‎2007 Oct 05 2:36 PM
You don't need an include:
function test.
perform call1.
endfunction .
form call1.
end form.
Rob
‎2007 Oct 05 2:45 PM
rob
if i do that it shows unknown variable error in the subroutine definition
‎2007 Oct 05 2:57 PM
Yes, but your original problem should be solved.
If you have further problems, you should post the real code, not pseudo code in a separate thread.
Rob