2008 Dec 02 1:19 AM
Hi Experts,
I have a requirement to trigger SAP job whenever there is a new file in a network folder which is outside SAP. File name is like worklistYYYYMMDDHHMMSS.CSV. Timing of this file creation are unpredictable.
Also, this new file should be passed to SAP job for running.
Do you have any idea about possible solution? Can we user Event based trigger (SAPEVT command)?
Please let me know the details.
Many thanks,
Apps
Hi Experts,
I have a requirement to trigger SAP job whenever there is a new file in a network folder which is outside SAP. File name is like worklistYYYYMMDDHHMMSS.CSV. Timing of this file creation are unpredictable.
Also, this new file should be passed to SAP job for running.
Do you have any idea about possible solution? Can we user Event based trigger (SAPEVT command)?
Please let me know the details.
Many thanks,
Apps
2008 Dec 02 3:23 AM
Hi
You can do it in this way.
Creat a program in ABAP which picks up the file from Application Server
Put all the reocrds in an internal table and post it in SAP.
This program will be batch program and it will run once in every hr and
it will store the last captured file name in a Z table so whenever it picks up new file it will
compare the name old file and if they are not same delete the old file name and insert the new file name in the Z table.
Your batch program can pick up the file name from this Z table.
Hope it is useful.
Regards
Neha
2008 Dec 02 4:04 AM
Hi,
My data file folder is outside SAP and also since file timing is unknown , do not wish to schedule job which will check every 10-15 mins for file...if possible would like to have an inbound ( from external folder to SAP job) trigger.
Apps