11-17-2008 12:49 PM
Hello , Would like to know whether it is possible to have my ABAP code in a text file in desktop and then execute the code by reading it into an ITAB in another ABAP program .
Note : Pl. dont suggest how to upload and create a new program . I dont want to create a new program after uploading into ITAB using INSERT or function modules . I want to execute the code as part of the uploading program only . So that once the execution is complete the uploaded code will not be available in the SAP system.
Thanks in advance ,
Jee.R
11-17-2008 12:55 PM
Hi,
Yes you can, you can either generate a subroutine dynamically or use the ABAP statement INSERT REPORT. Once you have executed the report you then use DELETE REPORT to remove it.
See the function module RFC_ABAP_INSTALL_AND_RUN for an example.
Darren
11-17-2008 12:55 PM
Hi,
Yes you can, you can either generate a subroutine dynamically or use the ABAP statement INSERT REPORT. Once you have executed the report you then use DELETE REPORT to remove it.
See the function module RFC_ABAP_INSTALL_AND_RUN for an example.
Darren
11-17-2008 12:57 PM
>
> Note : Pl. dont suggest how to upload and create a new program . I dont want to create a new program after uploading into ITAB using INSERT or function modules . I want to execute the code as part of the uploading program only . So that once the execution is complete the uploaded code will not be available in the SAP system.
Oh dear. The only solution to your requirement is, sadly, to upload and create a new program, and then one further step. There is no other way. So it looks like you'll have to do without.
matt
11-17-2008 4:13 PM
From both an operations and a security standpoint I would say this is a really bad idea. It would allow someone to run untested, unapproved code. I can just imagine what an auditor would think, or a security consultant.
11-26-2008 1:05 PM
Darren - Thankx . Dynamic subroutine did work for me . Your points are awarded.
Michael - Thankx for remainding me the Quality and audit . The background scenario is different and its not part of any delivery .