Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger SAP job

Former Member
0 Likes
642

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

2 REPLIES 2
Read only

Former Member
0 Likes
577

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

Read only

0 Likes
577

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