cancel
Showing results for 
Search instead for 
Did you mean: 

File: Check there is no file with content

Former Member
0 Kudos

Hello,

My interface is R3 to File.


I just have to write the file A if there is no file B with content (no empty).


I can only add my BPM receiver step B to read the file and then check if it is empty, but I think there must be an easier way to do it

Any idea?

Regards,

Silvia

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Are you checking condition based on the source structure (R3 data) ?  Are you doing multimapping too?Or  Checking generally at the NFS area to see whether the file B exists or not? If you are checking condition based on the source data and doing multimapping then you can use interface determination check during mapping and decide to send the data for file A only or for both. If you need to check whether previous file exists A or not irrespective of your source information then use java mapping and check using java file class and test whether file name with size available or not if so construct the target structure for file A only.

Related documents

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...

Refer oracle site for doing File class coding.

Former Member
0 Kudos

Thanks Baskar,

The check is independent of R3.

Just before writing to the file A, check that there is no file B with content,
only if this is true, I leave the file A.

Other idea?

anupam_ghosh2
Active Contributor
0 Kudos

Hi Silvia,

                how are you writing the file ? is it NFS/FTP/SFTP? Are you using receiver FCC?

Is it a pass through scenario or you are using mapping in your scenario.

Regards

Anupam

Former Member
0 Kudos

FTP receiver with FCC

Answers (0)