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

tcode for a function module

Former Member
0 Likes
5,937

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
Read only

Former Member
0 Likes
2,066

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
Read only

sarbajitm
Contributor
0 Likes
2,066

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.

Read only

Former Member
0 Likes
2,066

there is a dynpro required but I dont have dynpro

Read only

0 Likes
2,066

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.

Read only

Former Member
0 Likes
2,066

Hi,

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

Thanx & Rgds,

Krishna

Read only

Former Member
0 Likes
2,066

Hi erdem,

Check this

hope it is useful to you.

Thanks

Read only

Former Member
0 Likes
2,066

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

Read only

Former Member
0 Likes
2,067

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.