04-02-2008 5:44 PM
We found the following ABAP statemenet
DATA: our_unix_path_and_file_name(64) TYPE c,
v_unixcmd(255) TYPE c,
result(255) TYPE c OCCURS 100 WITH HEADER LINE.
CONCATENATE 'ls -al' our_unix_path_and_file_name INTO v_unixcmd SEPARATED BY space.
CALL 'SYSTEM' ID 'COMMAND' FIELD v_unixcmd
ID 'TAB' FIELD result-*sys*.
The question is: is result an internal table? if it's an internal table, then why it's defined as type c? And also what is included in this result after calling this UNIX command? it will list all the file content?
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 2, 2008 12:45 PM
04-02-2008 5:51 PM
Hello
Yes result is an internal table with lines of 255 chars and an initl allocation for 100 rows.
It will contain the output of the ls - al command.
A good way to check is to set a breakpoint in the code and then use the debugger to see what result looks like.
Hope this helps.
Regards
Greg Kern
04-02-2008 5:51 PM
Hello
Yes result is an internal table with lines of 255 chars and an initl allocation for 100 rows.
It will contain the output of the ls - al command.
A good way to check is to set a breakpoint in the code and then use the debugger to see what result looks like.
Hope this helps.
Regards
Greg Kern