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

T-code for function module

Former Member
0 Likes
14,578

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

Former Member
0 Likes
6,696

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

Former Member
0 Likes
6,696

Hi

It is not possible to create a Tcode for a FM

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

Read only

Former Member
0 Likes
6,696

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

Read only

Former Member
0 Likes
6,698

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

Read only

Former Member
0 Likes
6,696

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

Read only

Former Member
0 Likes
6,696

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.