12-05-2007 5:26 AM
Hi,
Can any one tell the purpose of generate subroutine pool statement
with an example. and which scenarios it will be used.
thanks,
Ilam
12-05-2007 5:36 AM
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
12-05-2007 5:36 AM
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>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
12-05-2007 5:45 AM
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
12-05-2007 5:48 AM
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