03-20-2009 1:35 PM
Hello,
there is a Function Module I would like call that via Transaction Code.
How can I create tcode for a function module.
Regards
sas
03-20-2009 2:03 PM
U cant assign the tcode directly, u need to use wrapper program, how u want ur fm to be called?
do u want the test function fuctionality similar to se37 using the tcode then
use this class
CL_FB_FUNCTION_INITIAL_SCREEN
use CREATE_REQUEST method of this class by passing ur fm name.
03-20-2009 1:38 PM
First create a Report and keep CALL FM statement
Now go to SE80 and open the Report and in the left side you can also get the name of the report program.Simply right click on that you get the option for ctreate transaction.
Thanks and regards.
Sarbajit.
03-20-2009 1:40 PM
03-20-2009 1:46 PM
Hi Erdem,
Please don't mind but till date I don't get any opportunity to use a FM independently. i have used FM in a Program. I think Krishna also agree with me.
Regards.
Sarbajit.
03-20-2009 1:44 PM
Hi,
Create a wrapper program for the FM and create a t-code for the wrapper program.
Thanx & Rgds,
Krishna
03-20-2009 1:52 PM
03-20-2009 1:54 PM
Function Modules are interface programs(Include Programs) which cannot run directly you need to execute directly.Either you create a report or module pool.
Interface is required.I have tried to create with include program of function module but didnot work.
Create a report will selection screen to assign the tcode.(In Tcode give Screen no :1000)
Can you explain what exactly is the requirement?
Regards,
Gurpreet
03-20-2009 2:03 PM
U cant assign the tcode directly, u need to use wrapper program, how u want ur fm to be called?
do u want the test function fuctionality similar to se37 using the tcode then
use this class
CL_FB_FUNCTION_INITIAL_SCREEN
use CREATE_REQUEST method of this class by passing ur fm name.