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: 

tcode for a function module

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

7 REPLIES 7

sarbajitm
Contributor
0 Kudos

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.

Former Member
0 Kudos

there is a dynpro required but I dont have dynpro

0 Kudos

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.

Former Member
0 Kudos

Hi,

Create a wrapper program for the FM and create a t-code for the wrapper program.

Thanx & Rgds,

Krishna

Former Member
0 Kudos

Hi erdem,

Check this

hope it is useful to you.

Thanks

Former Member
0 Kudos

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

Former Member
0 Kudos

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.