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

Using subroutines in Function Module

Former Member
0 Likes
9,983

Hi , experts ,

I want to know how to use performs in function module,

If created subroutine must be used in all FM in Func.Group ?

if you have articles about this or any information , I will be glad .

Please help.

Regards,

Tatiana.

1 ACCEPTED SOLUTION
Read only

Former Member
3,176

If i am not mistaken you want to use forms in function module.

To enable forms in function module you have to follow these steps:

  • Create a Z include in your function module.

INCLUDE ZTEST_INCLUDE.

  • Inside this include you need to write your form routine which will be accessable from your function module.

  • Now you can use perform statement in your funtion module.

Thnaks & Regards,

Lalit Mohan Gupta

6 REPLIES 6
Read only

Former Member
0 Likes
3,176

If you create a perform in FM then you have to place it in Global data i think or call the perform by providing include name like perform test(zinclude).

Read only

Former Member
3,176

Hi,

These are very basic questions.

You can search in SCN.

check this

https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=howtouseperformsubroutinefunctionmodule&adv=false&sortby=cm_rnd_rankvalue

Edited by: sachin sharma on Feb 24, 2009 2:36 PM

Read only

Former Member
0 Likes
3,176

HI Titiana,

Once you create a subroutine through your FM, it is actually created in your Func Group. No special coding is required to make it available in rest of the function modules in the function group.

All the FMs in the function group will be able to access this FM.

Regards,

Prakash Pandey

Read only

Former Member
3,177

If i am not mistaken you want to use forms in function module.

To enable forms in function module you have to follow these steps:

  • Create a Z include in your function module.

INCLUDE ZTEST_INCLUDE.

  • Inside this include you need to write your form routine which will be accessable from your function module.

  • Now you can use perform statement in your funtion module.

Thnaks & Regards,

Lalit Mohan Gupta

Read only

former_member557605
Participant
0 Likes
3,176

Hi Tatiana,

You can also follow the following link click here

Regards,

Rupesh

Read only

0 Likes
3,176

Write PERFORM inside function module.

Double click on it.

Create a include.

Inside include write FORM statement