Application Development 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: 

Picking up a file as soon as it is kept in the folder on the server

former_member474221
Participant
0 Kudos

Hi Guys,

Is there a way that I can pick up a file as soon as it is placed in a folder..

I do not want to schedule a background program to keep on checking for files

6 REPLIES 6

Former Member
0 Kudos

Hello hema,

You can schedule a FTP JOB or install a FTP server in your SAP application server .

Another option do a folder Mounting the the Operating system level. Folder that you are mounting will be an another mechine / server. But SAP program can do open dataset and can write the file directlt to that folder where you that file to write.

You can take help from BASIS for this functionality.

Hope this answers your question.

Thanks,

Greetson

former_member474221
Participant
0 Kudos

i did not get this reply..

can anyone suggest something

0 Kudos

Hello hema,

I will explain in more detail.

Option 1:-

You can schedule a thirt party FTP tool JOB (not SAP JOB) like install a FTP server in your SAP application server .

Option 2:-

Another option is do a folder Mounting( This is an BASIS activity in the SAP Application Server OS level activity) in the SAP Operating system level. Folder that you are mounting will be an another mechine / server. But SAP program can do open dataset and can write the file directlt to that folder where you that file to write.

You can take help from BASIS for this functionality.

Hope this answers your question.

Thanks,

Greetson

0 Kudos

Hi Hema,

You could try with the below option,

1) Create a Batch file(DOS) that will trigger the SAP EXE -> SAPEVT.EXE.

2) Then schedule it with the windows scheduler(for every 30 seconds or whatever is the frequecy).

3) Create an event in SM62, this will be called by the batch file that you have created above.

4) Create a background job which will be started on the triggering of the above event.

So, once a file is dropped in the folder, the batch file will trigger the event and the event will start the background job that will read this file.

Regards,

Chen

Former Member
0 Kudos

WE have processes that raise an event, with that firing off a program. We also have situations where the arrival of a file triggers a process that calls an FM in SAP, supplying a file name....

Former Member
0 Kudos

Where is the file? On app server or local PC?