Skip to Content
avatar image
Former Member

Creating ABAP object dynamically

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 20, 2007 at 08:55 AM

    Hi,

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

    Check this thread and my reply in that.

    is-it-possible-to-create-a-functional-module-dynam

    Regards,

    Sesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Aug 20, 2007 at 08:53 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded