Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fuction module(urgent)

Former Member
0 Likes
876

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.

2 REPLIES 2
Read only

Former Member
0 Likes
588

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.

Read only

Former Member
0 Likes
588

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