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: 

How to attach a Function Module to a custom Tcode

Former Member
0 Kudos

Hi All,

I need to attach a Function Module to a new custom Tcode.I tried to create the new Tcode with option Parameter Transaction by giving the Tcode as SE37. But i am not able to give my Function module name as default.

Do you have any idea how to do this.

Plese help me.

Thanks

Manas

8 REPLIES 8

former_member404244
Active Contributor
0 Kudos

Hi,

I don't think we can do it for function module..

Regards,

Nagaraj

Former Member
0 Kudos

Hi,

You can't attach t-code to FM.

Regards,

Atish

Former Member
0 Kudos

u can't attach a fm to tcode

Former Member
0 Kudos

well i thing we can do it .....

do a small simple thing ...

develope a prog with a small bdc of se37 in the program

i think it will be done

Former Member
0 Kudos

Why don't you just create a custom program that calls the function module and attach the program to a transaction?!

Gareth.

Former Member
0 Kudos

Hi guys,

The way of doing it is following:

1. SE37 Create FM. FM attach to FM GROUP

2. In FM write call screen 100.

3. Create screen 100.

4. SE93 Create transaction - dialog type with screen where program SAPL%GROUPNAME and screen 100.

that's all.

Good luck.

0 Kudos

Hi ,

Could you pls elaborate the steps more clearly.

i have the FM 'ztest' attached to the function group 'zdummy'.

Then what i have to do..?

Thanks

Manas

0 Kudos

Hello Manas,

For example in the first line of your FM you write

call screen 100.

Then double click on 100 number and you found yourself on program of creating screen.

Then you write need to describe your pai and pbo functions and set pf-status.

For example, on the click of some button you execute some function.

In transaction you directly execute operator call screen 100 by specifying

SAPLZTEST screen 100.

One more time: call screen 100 in FM equals call transaction 'zmytcode', which have been created to SAPLZTEST screen 100.

You can see tcode ckm3 and function group SAPLCKM8N

Good luck.