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: 

T-code for function module

former_member181995
Active Contributor
0 Kudos

hi,

i created one RFC FM but now my requirment is that user can call directly this FM thru some z t-code rather then from se37, so can we create t-code for our z FM?

If yes ,

please explain steps.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi there,

The ideal thing in your case would be creating a dummy report program and call your function module in that program..

Since there is no such option to create a tcode for a function module.. you will have to call the function module in a report program and you can assign a tcode to that report program

if found helpful, don't forget to reward points.

if you want detailed steps let me know,

Thanks-

Rahul

5 REPLIES 5

Former Member
0 Kudos

Hi

It is not possible to create a Tcode for a FM

you can call a FM by useing CALL FUNCTION not CALL TRANSACTION

Former Member
0 Kudos

Hi ,

Function module is reusable component . You can call whenever it is required .

So you can't create TCODE for function module .

Thanks

Jagadeesh.G

Former Member
0 Kudos

Hi there,

The ideal thing in your case would be creating a dummy report program and call your function module in that program..

Since there is no such option to create a tcode for a function module.. you will have to call the function module in a report program and you can assign a tcode to that report program

if found helpful, don't forget to reward points.

if you want detailed steps let me know,

Thanks-

Rahul

Former Member
0 Kudos

HI,

It is not possible to create a transaction code for Function Module.we can call it only using call 'function module name'.

Regards,

vineela

Former Member
0 Kudos

You are correct,, Function module is a resuable object and can be called anywhere. but there are some restrictions for the tcode..

it will support only the following options.

1. Program and screens

2. Program and selection screen (reports)

3. methods of a classes

4. Transactions with variants

5. And transactions with parameters.

Hope your point is clear..

if you have further queries,, reply.

Rahul.