Skip to Content
avatar image
Former Member

Function Module

Hi freinds,

Could you please tell when is a function module called with in a program.

Thanks in Advance,

John

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Feb 15, 2008 at 11:14 AM

    U will get better ans in abap forum.

    Regards,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2008 at 11:16 AM

    Hi,

    Are you asking about calling a FM thru a java code?

    please clarify more

    Ranjit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2008 at 11:16 AM

    Hi,

    Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the function builder.

    refer the link for more info:

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db988735c111d1829f0000e829fbfe/frameset.htm

    Function module is used if u have same functionality to be used for many objects so rather than writing the same functionality u write ur Functionality in one FM and call taht function module from different code.

    So it reduces the redundancy of the use of same code across many places.

    Now Fm has two parameters one is import which takes the input value and export parameter which returns the output to the calling program.

    FM can be remote enabled so if u click the FM as remote enabled then it can be called from XI also.for that u need to first import the FM in IR and then though that mapping u can use RFC to call that FM.

    I hopw u got the idea about the FM.

    Thnx

    Chirag

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2008 at 11:17 AM

    Hi,

    Function Module is used as a sub routine..as u write some code in function module

    In programing if u want to use that code again and again u can can call that function module ...then the code in function module will execute ...

    Thne use of function module is reusability...

    thnaq

    krishna

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2008 at 11:18 AM

    Hi,

    Whenever there is a predefind,reusable code is present in any system then it is good to use those.

    So, if for your logic if some predefind Function Modules is present then better to use that.

    Regards,

    Satya Jethy

    Add comment
    10|10000 characters needed characters exceeded