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

Regarding CALL SYSTEM id

Former Member
0 Likes
453

Hi all,

When using CALL 'SYSTEM' id 'COMMAND' field unix-command, how does one capture the results of the command? For example, if the unix-command were the date

Reply wil be appreciated,

Varsha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
389

Hi,

You capture the results in the table e.g TABL, like this

DATA: BEGIN OF TABL OCCURS 0,

LINE(560),

END OF TABL.

REFRESH TABL.

CALL 'SYSTEM' ID 'COMMAND' FIELD PARCOM_LOC

ID 'TAB' FIELD TABL-SYS.

Reward points if found helpfull...

Cheers,

Chandra Sekhar.

Hi all,

When using CALL 'SYSTEM' id 'COMMAND' field unix-command, how does one capture the results of the command? For example, if the unix-command were the date

Reply wil be appreciated,

Varsha

1 REPLY 1
Read only

Former Member
0 Likes
390

Hi,

You capture the results in the table e.g TABL, like this

DATA: BEGIN OF TABL OCCURS 0,

LINE(560),

END OF TABL.

REFRESH TABL.

CALL 'SYSTEM' ID 'COMMAND' FIELD PARCOM_LOC

ID 'TAB' FIELD TABL-SYS.

Reward points if found helpfull...

Cheers,

Chandra Sekhar.