Application Development and Automation 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: 
Read only

difference between function module and sub routine..

Former Member
0 Likes
1,725

wzzz difference between function module and sub routine..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,603

Hi,

I think you should search first like this simple question on this forum, if you not satisfie then post the thread.Its the way to find the solution of our question.

And second thing, after posting the thread and got satisfie then you should close the thread...

Rgd

Rahul

17 REPLIES 17
Read only

Former Member
0 Likes
1,603

Hi,

I searched the forum with the terms "difference between function module and subroutine" and found loads of answers.

You may want to do the same.

Regards,

Nick

Read only

0 Likes
1,603

I couldn't agree more.....

Read only

0 Likes
1,603

removed by moderator

Edited by: Durairaj Athavan Raja on Jun 2, 2008 3:40 PM

Read only

Former Member
0 Likes
1,603

Nick Young had suggested a way to find the answer , even after that if you people keep posting answers, people will forget about searching and you will find the same question repeated many times here. (of course everytime with copy/paste from help.sap.com and sometimes even misleading/wrong answers). Please stop this.

i am deleting all the answers in this post. let the user search the forum.

Raja

Edited by: Durairaj Athavan Raja on Jun 2, 2008 3:35 PM

Read only

0 Likes
1,603

Manik,

you might want to have another look at FM and subroutines, because I don't think I agree with all your statements, for example:

1. Sub routines doesn't return any values.

Why wouldn't a subroutine return a value? As a matter effect, a subroutine SHOULD often return a value!!!!

Read only

0 Likes
1,603

Micky,

You'll like this...

Follow the two links posted by Venkat, they both include the answer posted by Manik, posted by other people.

It's almost as if poeple are posting information without really understanding it.....

Regards,

Nick

Read only

0 Likes
1,603

what means import and export n changing thy stand for return value man

Read only

0 Likes
1,603

>

> It's almost as if poeple are posting information without really understanding it.....

you can bet your sweet bottom this is happening all the time!

Read only

0 Likes
1,603

Nick,

Seems you are right, but where are they getting this stuff from???

I searched on help.sap.com and help functions via ABAP editor, but I can't find anything like it.

But unfortenately I have seen this behavior before....too bad.

Regards,

Nick.

Read only

Former Member
0 Likes
1,603

removed by moderator

Edited by: Durairaj Athavan Raja on Jun 2, 2008 3:38 PM

Read only

Former Member
0 Likes
1,603

removed by moderator

Edited by: Durairaj Athavan Raja on Jun 2, 2008 3:39 PM

Read only

prasanth_kasturi
Active Contributor
0 Likes
1,603

removed by moderator

Edited by: Durairaj Athavan Raja on Jun 2, 2008 3:39 PM

Read only

Former Member
0 Likes
1,603

hi check this...

/thread/752713 [original link is broken]

regards,

venkat

Read only

Former Member
0 Likes
1,603

removed by moderator

Edited by: Durairaj Athavan Raja on Jun 2, 2008 3:40 PM

Read only

Former Member
0 Likes
1,604

Hi,

I think you should search first like this simple question on this forum, if you not satisfie then post the thread.Its the way to find the solution of our question.

And second thing, after posting the thread and got satisfie then you should close the thread...

Rgd

Rahul

Read only

ThomasZloch
Active Contributor
0 Likes
1,603

and the correct answer actually is:

it does not matter, we're supposed to use methods anyway

Read only

Former Member
0 Likes
1,603

Fn Modules can be called in any program .

Sub routines can also be called but the program needs to be called vai submit option .

Fn modules are executed outside the program area , but subroutines are exectued inside the program .

U can maintain the exceptions separately but subroutines u need to hard code and i dont think the same exceptions are possible for all the programs calling them .

Reward points if useful