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

Calling a FORM in a different program from a Function Module

Former Member
0 Likes
641

Hi experts,

i really hope someone can help asap.

I have created a function module in a different function group to an existing function module. Problem is that i need to access a form that is accessed in the existing FM, but of course i can not from my new FM.

I know there is something simple to do in my FM but can not think correctly.

could someone please help??

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
596

Have you tried like this?

PERFORM GET_DATA IN PROGRAM 'SAPLZTEST' IF FOUND.

Here, SAPLZTEST is the main program of the FG ZTEST which holds the FM.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
596

Hi Dipesh,

call the form routine like:


PERFORM routine1( function_group_name ) ...

routine1 is the form routine in the program (function group in this case) that you want to access which is external to the current program (your new function group) from where you want to access it.

The program name in parantheses can be an include program if the form rouitne resides in the include program.

Hope this helps.

Thanks

Sanjeev

Edited by: Sanjeev Kumar on Jan 9, 2008 11:12 AM

Read only

Former Member
0 Likes
596

done

Read only

0 Likes
596

While it is great that you are closing your old posts, please do not add unnecessary comments. It simply drags old posts to the top of the forum (and pushes current ones down).

Rob