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

Using subroutines in Function Module

Hi , experts ,

I want to know how to use performs in function module,

If created subroutine must be used in all FM in Func.Group ?

if you have articles about this or any information , I will be glad .

Please help.

Regards,

Tatiana.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 09:16 AM

    If i am not mistaken you want to use forms in function module.

    To enable forms in function module you have to follow these steps:

    • Create a Z include in your function module.

    INCLUDE ZTEST_INCLUDE.

    • Inside this include you need to write your form routine which will be accessable from your function module.

    • Now you can use perform statement in your funtion module.

    Thnaks & Regards,

    Lalit Mohan Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 09:01 AM

    If you create a perform in FM then you have to place it in Global data i think or call the perform by providing include name like perform test(zinclude).

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 09:02 AM

    Hi,

    These are very basic questions.

    You can search in SCN.

    check this

    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=howtouseperformsubroutinefunctionmodule&adv=false&sortby=cm_rnd_rankvalue

    Edited by: sachin sharma on Feb 24, 2009 2:36 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 09:02 AM

    HI Titiana,

    Once you create a subroutine through your FM, it is actually created in your Func Group. No special coding is required to make it available in rest of the function modules in the function group.

    All the FMs in the function group will be able to access this FM.

    Regards,

    Prakash Pandey

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2019 at 10:17 AM
    -1

    Write PERFORM inside function module.

    Double click on it.

    Create a include.

    Inside include write FORM statement

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 06, 2019 at 12:53 PM
    -2

    Hi Tatiana,

    You can also follow the following link click here

    Regards,

    Rupesh

    Add a comment
    10|10000 characters needed characters exceeded

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.