adspace


Difference between function group and function module?

Answer Posted / Deepak Kumar Gupta

Function groups in SAP ABAP are a collection of related function modules that share the same data area. They allow easy access to a set of functions with similar purposes, improving program structure and readability. Function modules, on the other hand, are self-contained programs that perform specific tasks, usually without interaction with users or the screen.nnHere's an example for function group declaration:

```abap
FUNCTION-GROUP ZMY_FUNCTION_GROUP.
FUNCTIONS:
MY_FM1 EXPORTING iv_param1 TYPE i,
iv_param2 TYPE s LENGTH 40
IMPORTING ps_result TYPE standard table.
ENDFG.
```
nAnd here's an example for function module declaration:

```abap
FUNCTION MY_FM2.
DATA: lt_results TYPE standard table,
iv_param1 TYPE i,
iv_param2 TYPE s LENGTH 40.
...
ENDFUNCTION.
```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what comes in Timkein written test I hope some body can tell me at this id plz tell it before 9 pm 19 march

2233


How can we handle table control in bdc? : abap bdc

1189


What is the project you are currently working and work that you are doing

1606


1/ How do u apprach if error occur in sending idocs ? 2/ where u assigned process code ?

2070


What work you have done in HR module

1456


How do you get the number of lines in an internal table? How to use a specific number occurs statement?

1026


What is your current client number?

1139


please give the remaining answers.

2307


Hi every one ! You people are doing a great job here , Im going to attend Tata Technologies interivew on this sunday,Can anyone who has already attended this company interivew or other companies interivews in abap pls share ur experience with me and help me to get into job my id ushareddyabap@gmail.com. Thankyou verymcuh

2008


Did you create secondary index?

1239