Skip to Content
0
Aug 02, 2016 at 10:24 PM

Archive APD File From Outbound to History AL11 Folder

424 Views

Hi all,

I know this is doable, but I'm struggling.

I have an APD which I use to generate a flat file and it places it in my OUTBOUND directory in my utility server (AL11). I wish to archive the file, by moving it from my OUTBOUND folder to the HISTORY folder, and placing a time stamp on it.

I'm using logical file names to place the file in the OUTBOUND folder, and that works fine when I execute my APD.

I've scoured the internet and found reference to FM ARCHIVFILE_SERVER_TO_SERVER, but I'm having issues getting it to work.

I'm using the Logical File Name of the source (ZFILE_OUTBOUND) as input in SOURCEPATH and I created a Logical File Name with the target (ZFILE_HISTORY) which I'm using in the TARGETPATH.

When I execute the FM I get an error: SAP ArchiveLink (file XYZ could not be opened for reading),

Exception: ERROR_FILE

Message ID: OA Message Number: 414

In a previous life we used to move files from one folder to another using logical file names and adding time stamps quite easily, but that was a long time ago and I obviously don't have documentation.

Is anyone currently doing this and can share some light on how to achieve this?

Much appreciated!

Marcelo