‎2008 Jan 17 1:58 PM
I'm calling a form from a function module . i'm getting dump .
If do the same thing in a report ,the form is working fine .
can anybody tell me the reason..
I want to confirm if we can call a form from a FM ?
Dump says ..
A RAISE Statement in the SAPLFPCALL raised the exception condition USAGE ERROR.
Since the exception was not intercepted by a superior program , processing was terminated.
‎2008 Jan 17 2:02 PM
Hi Ankit,
Yes you can call the form from within a FM. Probably the FM and the report have been assigned to a different package and no use access has been defined between these packages.
Regards,
John.
‎2008 Jan 17 2:07 PM
Of course can you call a form routine in a FM, the thing is you have to 'tell' the FM where to look for the form. This is done either by including the include where the form is defined in (in the main program of your function group) or by doing an external perform.
If that doesn't help please post more information about the dump, it usually points you to the issue that caused the problem.
Regards,
Michael