Skip to Content
0

Real Time File Interface - Trigger Report whenever a new file is uploaded in AL11 Directories

Sep 28, 2017 at 10:04 AM

106

avatar image

Hello Experts,

We have a requirement where a report has to be executed when a new file is placed in AL11 directory. This file is the input to the report.

We can schedule a background job which reads file periodically. But, this approach is not a real time.

The approach should be something similar to IDOC Functionality. Whenever a new IDOC enters the system, it will call the Function Module assigned to it.

Please let me know if there are any ideas or solution.

Best Regards,
Kiran Kerudi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mike Pokraka Sep 28, 2017 at 03:59 PM
2

This is easiest to do at the OS level, a simple unix/Linux/Windows/whatever script to call an RFC FM to tell SAP to process a file.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Thanks Mike!

Is there anything from SAP that we could do to identify the new file added? The file names will have time stamp. So, periodic scheduling is not an option as it would miss some files.

Best Regards,
Kiran

0

Of course. The exact implementation depends on the OS of your application server (*nix, Linux, Windows, Z-OS, ???). You're probably best off talking to basis as it's almost guaranteed they will already have some kind of file monitor script running somewhere and it's best to use the same setup consistently in an environment.

You can write an RFC-enabled Z-FM to do whatever you like with the file, and within the script you can call the FM with the filename and other parameters. Example here: link

1

Thanks a lot Mike!

I will check with Basis Team and get back. Your comments were really helpful!

Best Regards,
Kiran Kerudi

0

I believe third-party solutions like Redwood can do this too but they cost extra, of course. Might be worth evaluating though for a serious project.

0