Skip to Content
author's profile photo Former Member
Former Member

How to execute an ABAP dynamically?

Hi,

How to execute an ABAP code directly within the ABAP code[transport]?

I have to inject the ABAP code in the run-time to transport and has to execute it.

I am not looking for SUBMIT, CALL, PERFORM as this is not solving my use case.

Sample :

ABAPFunction (write:/ 'Hello World')

Thanks

Ashish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 25, 2016 at 12:37 PM

    You need to explain your requirement further. What do you mean by: inject the ABAP code in the run-time to transport?

    And, check if this document helps your requirement: XPRA - Execute ABAP Program Automatically After Transport Request Import

    Thanks,

    Juwin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 27, 2016 at 07:21 AM

    Hi,

    you can create a report using ABAP keyword INSERT REPORT.

    Then you can call fm RFC_GENERATE_REPORT.

    After that you can SUBMIT this report.

    But you can also create the main report with an include. insert only the include report, generate the main report and submit it.

    Regards,

    Klaus

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.