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: 

Creating ABAP object dynamically

Former Member
0 Kudos

Hi All,

I have a requirement to create a program / function module dynamically, based on user input on a screen.

Based on user input on a screen, I have to generate a syntax/code and create an object, which can be called by other objects.

Please let me know how this is possible.

Thanks in advance,

Archana.

1 ACCEPTED SOLUTION

0 Kudos

Hi,

You can use the function module "RS_FUNCTIONMODULE_INSERT" to create function modules dynamically.

Check this thread and my reply in that.

Regards,

Sesh

3 REPLIES 3

sharat_chandra
Active Participant
0 Kudos

Hi,

There are function modules whihc let you to create objects. These are the FM's which are interface to the Repository info system. Search for RPYINS in se37. Specifically RPY_PROGRAM_INSERT,

RPY_CLIF_MULTI_INSERT,

RPY_FUNCTIONMODULE_INSERT.

These would meet your requirements.

Regards,

Sharat.

0 Kudos

Hi,

You can use the function module "RS_FUNCTIONMODULE_INSERT" to create function modules dynamically.

Check this thread and my reply in that.

Regards,

Sesh

0 Kudos

Hi,

Thanks for you reply...it worked for creating new FM.

Further to that in case I want to change the source code or other things in an FM created already, how is it possible to do that ?

I read your reply on the thread you sent but in case of changing source code it doesn't work.

Apreciate your help.

Thanks in advance,

Archana Admane