Ansicht
Dokumentation

00254 - Problem using call 'SYSTEM' function to copy I FS files

00254 - Problem using call 'SYSTEM' function to copy I FS files

General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Problem using call 'SYSTEM' function to copy I FS files

Hi Klaus,
hi Russ,

I changed your progrm a little bit so that you can see the result afterwards
on the screen (positive or negative). So I was able to detect the problem of
Russ a lot easier:

* Testprogram that can execute AS/400 commands.
* Author: 981028 - Klaus Lindegaard RW-DK
*
* For result check as400 joblog under job(AS4DIREXE) user(SAPxx)

* Idea of Jim Doll, Perrigo:
* (in order to solve really strange problems!)
* old ABAP: call RPGPGM
* new ABAP: call CLPGM

* CL:
* CLPGM
* - CHGJOB generate joblog
* - CHGJOB log CL
* - SNDMSG QSECOFR "Running test job..."
* - DLYJOB or SNDMSG *INQ
* - CALL RPGPGM

*
report zcall_system2.

* Standard-Parameter for this pgm
parameters:
as4cmd(200) default 'CPY OBJ(''/tmp/allsys'') TOOBJ(''/tmp/aa1'')'.
*
data: begin of msg occurs 0,
field(199) type c,
end of msg.
data: wa_msg like line of msg.

* Call of the SAP-API
call 'SYSTEM' id 'COMMAND' field as4cmd
id 'TAB' field msg-*sys*.

* Write Output to the screen
loop at msg into wa_msg.
write: / wa_msg.
endloop.

Regards

Volker Gueldenpfennig

Durban Tours - Südafrika Safari

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1617 Date: 20240426 Time: 215522     sap01-206 ( 2 ms )