Skip to Content
author's profile photo Former Member
Former Member

How to attach a Function Module to a custom Tcode

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2007 at 11:56 AM

    Hi,

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

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2007 at 11:57 AM

    Hi,

    You can't attach t-code to FM.

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2007 at 12:01 PM

    u can't attach a fm to tcode

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2007 at 12:11 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2007 at 12:14 PM

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

    Gareth.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2007 at 12:30 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.