cancel
Showing results for 
Search instead for 
Did you mean: 

Generation of blank file to confirm that the earlier 2 files have been sent

Former Member
0 Kudos

Hi All,

In a Idoc to File scenario, at the end of each working day there are two files generated in the target directory depending on certain condtions.

In addition, a unique third file(which is a blank file) is sent to confirm that the other 2 files have been sent.

Please suggest the approach to create this third blank file.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181962
Active Contributor
0 Kudos

HI savita,

Check this thread:

Regards,

Ravi

Former Member
0 Kudos

Hi,

The approach mentioned in the thread is that we connect to FTP server from XI machine and then run the script there , which is not permitted in my case.

So, can the use of BPM solve the problem ??

former_member181962
Active Contributor
0 Kudos

Hi savita,

What is your file system? FTP or NFS?

If it is NFS, then you can try to use the Run OS Command after processiing.

YOu should write an OS command which would create an empty file.

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Hi ravi,

Its FTP, so OS commnad option is ruled out.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Savita,

Develop one file to file scenario,sender side give an option that seelct 2 files from FTP,mapping level ignore these two messages and send one empty file .

schedule the sender communication channel to run end of the day.

if it NFS file server we can achieve using one simple UDF or JAVA Map to check file in NFS at maping level then we can sent empty file.

BUt in your case its not posible.

cheers,

Raj

Former Member
0 Kudos

Maybe in the last Idoc you set some value('X') in one of the fields to indicate the end of transaction.

Accordingly in ID you can keep a check in Interface determination, if an idoc with this field value('X') comes in then map to an empty message type which will generate the empty file.

Regards,

Manjusha.