cancel
Showing results for 
Search instead for 
Did you mean: 

XI30 File Adapter - check for (NOT) incoming file

Former Member
0 Kudos

Hi!

We use XI30 SPS15 and have the following challenge: We expect every

week on a certain day a file coming from a customer. So far so good.

But now we want to check whether such a file has really come within a

given period of time and if not, we want to take some action (e.g.

trigger Alert or s.th. like that).

Business Background is: If the customer does not send the file or he

sends it too late, we cannot bill him in time, thus increasing our DSO.

Is there any mechanism within the XI to check things like these and to

trigger an alert? I've read the File Adapter Documentation as well as

the BPM documentation but I could not find any hint.

Any help would be great. Thanx!

Regards,

Volker kolberg

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi volker,

this is not supported in standard but...

you can do it very easily with standard ABAP job scheduling

- you schedule a job (every week, day etc.)

which starts a raport that send a RFC (or abap proxy call to the XI)

- then the RFC starts a BPM and inside it triggers a

java proxy that checks for a file

- if the proxy finds the file then if copies it to some other folder (which is monitored by another flow)

- if it doesn't find the file it triggers an error - sends mail or anything

the only thing you need to code is a few lines in java

to check the existance of a file + copying nothing else:)

this is the easiest way I believe till now <= Sp15

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Answers (4)

Answers (4)

Former Member
0 Kudos

we've solved it with a report checking the file system.

Former Member
0 Kudos

Hi!

My problem is: There is no file, thus the File Adapter will do nothing.

Regards,

Volker

Former Member
0 Kudos

Hi Volker,

Let me put forward a suggestion...

- In the Regular process make the file adapter archive the files to a different folder(archive folder).

- write a batch file/shell script on the App server, which checks in the archived folder for files created with todays date. If it does not find any files for the required day...output a file with some custom message(error file) to a different folder....

- schedule this batch file/shell script to run every day(or what ever period required)

- on XI, check for the creation of this error file and sent a message out using the mail adapter for any file created by this batch file/shell script.

Thanks,

Renjith

Former Member
0 Kudos

Hi Renjith!

Of course this may be an option ... although it would be nice, if the File Adapter would provide me with a feature solving my problem.

Regards and Thanx!

Volker

Former Member
0 Kudos

You might try by creating a command to be executed before any file is retrieved. This command will create an "error" file if no file is found in the directory.

Regards,

Bill

Former Member
0 Kudos

With SPS15, you can set the "Adapter-Specific Message Attributes" in the sender file adapter. Within the attributes, among several pieces of file information, you can get the "Source File Timestamp". By examing this information, you can send an alert.

The information on how to retrieve attributes is in help.sap.com.

Regards,

Bill

MichalKrawczyk
Active Contributor
0 Kudos

Hi William,

but if there's no file there's no information

so the BPM or anything else will not start will it?

so how can you tell when to invoke an error in case the file is not found?

Regards,

michal