Application Development 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: 

Using subroutines in Function Module

Former Member
0 Kudos

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

Former Member

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

Former Member
0 Kudos

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).

Former Member

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

Former Member
0 Kudos

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

Former Member

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

former_member557605
Participant
0 Kudos

Hi Tatiana,

You can also follow the following link click here

Regards,

Rupesh

0 Kudos

Write PERFORM inside function module.

Double click on it.

Create a include.

Inside include write FORM statement