cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling File adapter

Former Member
0 Kudos

Hi,

Is there any way to schedule a file adapter to read a file through FTP at a particular time everyday, say 8 PM everyday?

Some ways to schedule the message have been discussed on this forum earlier with or without a BPM, however those solutions are not at the adapter level. The message is read at regular polling intervals and transmitted at a particular time. What we want to do is poll the FTP server at a given time..

Any ideas??

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member181959
Contributor
0 Kudos

hi,

you can do that with adapter scheduling. please go tru th link below...

Adapter Scheduling - Hail SP 19

/people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-

Scheduling messages in SAP XI using SAP_XI_ADMINISTRATOR tcode

/people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi

hope this helps.

kvr

Former Member
0 Kudos

Hi,

this Link should help you.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d458a870-0601-0010-caab-b99c7974...

If one of you can provide a sample for an java proxy with ftp function it will be very helpful for all new proxy developer.

I found a lot of questions about how to implement more functionality into an ftp sender adapter. The answer is java proxy but how to implement?

Thanks Daniel

STALANKI
Active Contributor
0 Kudos

Michal,

Can you try out wether you can de-activate the adapter through module processor or some other way and activate at 8.00?

That will be useful to many..:)..just a request..:)

Former Member
0 Kudos

Thanks for the responses so far...

However, activating the adapter at exactly the same time might not be a workable solution becuase the development would have to go through the CMS process and the activation at a specified time would esentially mean activating it at that time on the production server.

The Java Proxy option seems to be a workable solution.

But if there is a way to something in the module processor that can be even more helpful as then it can be used across adapters. If you can provide some update on the same it would be gr8..

Thanks again..

MichalKrawczyk
Active Contributor
0 Kudos

hi,

In all of our projects in which we had to

schedule file adapter we've been using proxies

this is very easy:

you have to create an inobund proxy and call from it

the outbound proxy

not much coding for a java devleoper

about the adapter and module:

I don't know what could start the process.... a dummy file? if so is it good?

sure we could try to stop processing in the process

method of the adapter module but will it hold the resources for such a long time? if so do we want it?

I strongly suggest using proxies - this way you can control your flow from any place (standard WAS jobs for instance)

but there are workarounds:)

- you could put file in one folder (temporary)

- use a scheduled abap raport to start a flow in XI

that would end invoking a java proxy (which will copy the file from Temporary to destination folder )

- then the file adapter picks up the file

- if the proxy cannot copy the file then it can call an error and inform someone

Regards,

michal

-


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

Former Member
0 Kudos

Hi,

Not sure at adapter level, but did you have a glance at this from sxmb_adm

/people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi

Regards,

Anirban.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

a few ways:

1. you can set pool interval to 1 day and start the adapter at 8 o'clock

2. you can use FTP call (by proxy for example)

this way you can sechdule something that will start the BPM (abap report for example) - but with this approach you don't use adapter you have to write the code in java (if you use java proxies) but you get total and nice control of file adpater start status

Regards,

michal

-


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