Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SapConsole question.

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Thanks