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: 

Doubt in Generate Subroutine Pool.

subbarao_ilam
Explorer
0 Kudos

Hi,

Can any one tell the purpose of generate subroutine pool statement

with an example. and which scenarios it will be used.

thanks,

Ilam

4 REPLIES 4

former_member189059
Active Contributor
0 Kudos

Hello,

It can be used to generate a dynamic program and execute it at runtime

The advantage is that the code is not static as in normal programs

your code could even be uploaded from a text / excel file

it is used in cases where we need some information which cannot be predetermined inside the code

Former Member
0 Kudos

Hi

Generate subroutine pool creates a subroutine pool in the main memory area of the running program. You need to pass the source code of the subroutine pool in internal table <itab>. The statement returns the name of the generated subroutine pool in field <prog>

refer these links too:

<u>http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm</u>

<u>

<u>http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1250455,00.html?NextURL=http%3A//searchsap.techtarget.com/tip/0%2C289483%2Csid21_gci1250455%2C00.html</u>

Thanks

Vasudha

Former Member
0 Kudos

have a look this:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm</a>

uses of sub routine is

<a href="http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1250455,00.html?NextURL=http%3A//searchsap.techtarget.com/tip/0%2C289483%2Csid21_gci1250455%2C00.html">http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1250455,00.html?NextURL=http%3A//searchsap.techtarget.com/tip/0%2C289483%2Csid21_gci1250455%2C00.html</a>

if u like post plz reward me.

Message was edited by:

Trupti Zanwar

Former Member
0 Kudos

have a look this:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm">uses of sub routine is

[url=http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1250455,00.html?NextURL=http%3A//searchsap.techtarget.com/tip/0%2C289483%2Csid21_gci1250455%2C00.html]http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1250455,00.html?NextURL=http%3A//searchsap.techtarget.com/tip/0%2C289483%2Csid21_gci1250455%2C00.html</a>

if u like post plz reward me

Message was edited by:

Trupti Zanwar