Application Development 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: 

Unix command question on TAB content

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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