Skip to Content

Can we add a method to controller in runtime?

Hello,

I have a custom method and I have a requirement to add that method to standard app controller in runtime.

Please share your ideas and answers.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 07 at 01:09 PM

    Hi Suriya Pandiyan! Yes, you can! However, this should be done via an extension project of the standard Fiori App. This allows you to write your own custom methods in the app container and follow the best practices by SAP.

    Here's an example of how you can do that.

    Hope this helps you.

    Bruno

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 10 at 02:14 PM

    Hi Suriya Pandiyan ! Did this answer your question?

    Bruno

    Add comment
    10|10000 characters needed characters exceeded