02-24-2009 8:56 AM
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.
02-24-2009 9:16 AM
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
02-24-2009 9:01 AM
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).
02-24-2009 9:02 AM
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
02-24-2009 9:02 AM
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
02-24-2009 9:16 AM
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
07-06-2019 1:53 PM
10-15-2019 11:17 AM
Write PERFORM inside function module.
Double click on it.
Create a include.
Inside include write FORM statement