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

Is it possible to define a fnc module inside my ABAP code.

If yes then please let me know how?

The main program of the function "xyz" does not begin

with "FUNCTION-POOL". The above error is always thrown, if i try to

define a function in my abap code.

Currently I presume it is not possible to define FM here.

Can anyone tell me What function pools are? and the difference between function groups and function pools

Points will be rewarded.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 04:21 AM

    Hey Sesh, U almost answered my qts, But i would like to know now how can i define that function group in my abap code so that i can write a function module there,

    IF u know any syntax, please let me know..

    Vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 04:06 AM

    Vinod,

    I hope you are asking about FUNCTION-GROUP.

    Function Modules are always created using transaction SE37. While creating them you have to assign them to a Function Group. Using the same transaction SE37 you can create a Function Group also.

    Once the Function Module is created, you can use it in your report by clicking "Pattern" box from the Task bar of ABAP editor.

    Please let me know if I have interpreted your question correctly.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 04:12 AM

    Vinod,

    You can. I think you have not activate your function group.

    se37 ->Environment -- >Inactive objects. >Function Group ->select your function group and activate it (ctrl+F8)

    Pls. mark if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 01, 2007 at 04:11 AM

    Hi,

    FUnction Pools and Function Groups are same. When we create them we call them Function Groups as it is shown in the Workbench. But the program that is generated is called Function pool. As the name suggests its a collection of Function modules.

    You cannot create a Function outside a function group. So if you want to use a function module in your program first create a function group and then create your function module inside that and then use it in your program.

    Regards,

    Sesh

    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.