Skip to Content
0

How to read .tar file?

Nov 27, 2017 at 06:25 AM

118

avatar image

Hi All,

I have a scenario .tar file to SAP .

Kindly advise me how to read .tar using PI

Regards

Umesh

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Iñaki Vila Nov 27, 2017 at 10:36 AM
0

Hi Umesh,

Are you sure that you have to unzip the .tar file?, i mean, you can have a File to File scenario, and to deposit the file in filesystem accesible by SAP ERP ant this SAP ERP would be the responsible for unzip. If you have to unzip, you will need to do:

Option 1 Java code like here https://blogs.sap.com/2013/04/29/module-payloadgzipbean-zip-and-unzip-payloads-using-gzip-2/ , also you can do an UDF.

Option 2. Install in the OS system a program to zip/unzip these kind of file and to call this OS command from file adapter.

Regards.

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Feb 14 at 11:12 AM
0

Hi Umesh!

I've never implemented scenarios in which .tar files were used, but I guess, that processing such files shouldn't be a kind of problem. You could try to use Apache Common Compress library to fulfill your requirement:

https://stackoverflow.com/questions/315618/how-do-i-extract-a-tar-file-in-java/7556307#7556307

At first sight, it's similar to .zip files processing in Java.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded