Application Development and Automation 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: 
Read only

How to execute some code in command line, and read its output?

Former Member
0 Likes
693

I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.

But I want to take it one step further and read its output. is it possible?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
461

Hi RagnaRock,

one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.

I hope this helps. Kind regards,

Alvaro

1 REPLY 1
Read only

Former Member
0 Likes
462

Hi RagnaRock,

one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.

I hope this helps. Kind regards,

Alvaro