cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter module to read file contents post FCC

former_member185846
Active Participant
0 Kudos

Hello All,

My scenario is ABAP proxy to file and I need to archive the target file (post file content conversion). I'm trying with the custom adapter module to avoid extra receiver channel just for archival purpose. But the custom module is archiving only the xml payload not the actual fiat file sent to vendor FTP server.  Any suggestions how to acheive this? Wondering how SAP is handling this in SAP PI SFTP adapter.

 

Payload pl = msg.getMainPayload();

byte[] inpbyt = pl.getContent();

 

FileOutputStream fos = new FileOutputStream(/usr/sap/..);

 

fos.write(inpbyt);

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I guess u r using FCC? so instead of that use MTB module and after that use ur AM to archive that transformed file?

Thanks

Amit Srivastava

former_member185846
Active Participant
0 Kudos

Thanks, Amit. It worked!!

Answers (1)

Answers (1)

0 Kudos

Hi Joe,

Also try using the Archive module. I think it works for any adapter not just B2B.

Configuring the Archiver Module - SAP NetWeaver Process Integration, business-to-business add-on 1 -...

Regards,

Karthik