cancel
Showing results for 
Search instead for 
Did you mean: 

Sender File Adapter: Adapter Module to archive incoming file?

peter_wallner2
Active Contributor
0 Kudos

Dear experts,

I have ZIP files coming from an external system which a File Sender adapter picks up from the PI file system. I already added the PayLoadZipBean Module to unzip the file in order to be able to map the payload. It works fine.

Now in the tab "Processing" --> "Processing Mode" I have the option to choose "Archive" and give a path. That way I can archive them also on the PI file system.

But how could I choose an FTP location here? Can I or would I have to write an adapter module?

In case for an adapter module how do I access the incoming ZIP file? Any ideas?

Thank you for any help and best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

There are 4 processing modes like Archive, Delete, Test and Set to Read only.

SAP Help document says... for Archive

If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.

peter_wallner2
Active Contributor
0 Kudos

Hello Baskar,

Thank you, but I choose "Transport Protocol" = File System (NFS).

Then under "Processing" --> "Processing Mode" --> "Archive" I do not get the option "Archive Files On FTP Server".

Or do I not see it?

Best regards,

Peter

baskar_gopalakrishnan2
Active Contributor
0 Kudos

For choosing NFS transport protocol, you won't get that option.

peter_wallner2
Active Contributor
0 Kudos

Hello Baskar,

So in that case how could I do it? With an adapter module?

In case for an adapter module how do I access the incoming ZIP file?

Thank you again for your efforts,

Peter

former_member184681
Active Contributor
0 Kudos

Dear Peter,

You can use the "Run Operating System Command After Message Processing" option to move or copy your message file after it has been processed. The actual statement depends on the operating system that your PI stands on.

Hope this helps,

Grzegorz

peter_wallner2
Active Contributor
0 Kudos

Hello Grzegorz,

I guess I will try that.

Thanks and best regards,

Peter

Answers (1)

Answers (1)

former_member184681
Active Contributor
0 Kudos

Hi Peter,

I'm afraid you are not fully right about the archiving. Choosing Processing Mode = Archive leads to the file being moved to a different directory once it is processed. According to SAP Help:

Processing Mode

○ Archive

Files that have been successfully processed are moved to an archive directory.

■ To add a time stamp to a file name, select the Add Time Stamp indicator.

The time stamp has the format yyyMMdd-hhMMss-SSS. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.

■ Under Archive Directory, enter the name of the archive directory.

■ If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.

See here for further details:

http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

Hope this helps,

Grzegorz