10-16-2008 6:21 PM
Hi everybody, looking the sapconsole develops, in the system, I noticed that are developed in a function group instead a modul pool or an excutable program. Are there a razon for that?
Regards
10-16-2008 6:27 PM
I would like to ask if this is your question so that others can answer
Why we need function groups and function modules if we have module or executable programs?
Is this your question?
If it is then function modules are for avoiding recursive coding.
we can use same functional module in any number of programs without coding again and again.All related function modules are stored in one function group.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
For more search Help.sap.com
10-16-2008 6:27 PM
I would like to ask if this is your question so that others can answer
Why we need function groups and function modules if we have module or executable programs?
Is this your question?
If it is then function modules are for avoiding recursive coding.
we can use same functional module in any number of programs without coding again and again.All related function modules are stored in one function group.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
For more search Help.sap.com
10-16-2008 6:36 PM
Well my question is:
Are there any razon to use function group and function modules instead a Modul pool or an executable program?
If a FM is more apropiated and why is it more apropiated?
Regards
10-16-2008 6:46 PM
is it supposed to be a trick question?
Can you try using a Module pool or executable program for say BAPI_PO_GETDETAIL?
Function modules give you the reusable code which can be called by other programs if needed.
10-16-2008 9:19 PM
Sorry but I think that I maked the question in a wrong way.
I have to create several transaction, for sap console.
Why Would I use a FM instead a Modul Pool, to create these transaction?
That I saw created was a function group with several dynpros and a transaction code that executes the start dynpro. But I dont know if that is the best way, because I think the idea is not to create something like a BAPI.
The transactions are user final transactions. These transaction will be executed from a mobile device, not from another program.
I'm not saying that use the FM is the wrong way to do it, I want to know if there are an advantage if I use a FM instead a Modul Pool for example.
Regards.
10-17-2008 3:03 AM
There is no right or wrong way of doing anything. You need to check your requirements, and reusability of your code, and decide which is better
10-24-2008 8:49 PM