cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI: Not able to pick done file

MohitRelwani
Discoverer
0 Kudos
190

Using Sender SFTP, I am trying to pick the Main file based on Read lock strategy as Completion file.

 

Main file Naming Format: abc.TXT
Done/completion File Format: abc_CMPL.TXT

What should be the format of Done file Naming. Seems it only supports when extension is .done.

Please suggest

 

View Entire Topic
Punith_Oswal
SAP Champion
SAP Champion
0 Kudos

Hello Mohit, 

The format of done file should be ${file:name}.done

Example : hello.txt is the file to be consumed, hello.txt.done is the associated .done-file.

Please check the below link for more details :

https://help.sap.com/docs/cloud-integration/sap-cloud-integration/configure-sftp-sender-adapter 

 

Thanks,

Punith

felipe_correa
Explorer
Building on Punith's correct answer: The SFTP adapter specifically uses the pattern ${file:name}.done. Here, ${file:name} is a dynamic expression within SAP Integration Suite that automatically resolves to the actual name of the source file being processed. So, if the adapter picks up abc.TXT, this expression evaluates to abc.TXT.done. The adapter waits for this exact .done file as confirmation that abc.TXT has been completely written to the server. This prevents the integration flow from reading an incomplete file during transfer. Regards, F.
MohitRelwani
Discoverer
0 Kudos
Backend is already generating abc_CMP.TXT as the completion indicator file. This is already a working solution in PO and we are migration to BTP IS. Seems like we need to get this changed from backend to make it compatible with BTP IS?
Punith_Oswal
SAP Champion
SAP Champion
0 Kudos
Hello Mohit, Yes that is correct, Ask the backend Team to change the filename to achieve this in SAP CI.
Punith_Oswal
SAP Champion
SAP Champion
0 Kudos
Thanks Feilipe for the in depth clarification !!