cancel
Showing results for 
Search instead for 
Did you mean: 

Same File Names

Former Member
0 Kudos

File --> XI --> IDOC

We are getting the file from the Legacy System ,picked up by XI and posted as an IDOC.

In case if the Legacy system place the same file by Mistake, File adapter should Intelligently avoid that? if there is any way to check whether a particular file has been processed already?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

STALANKI
Active Contributor
0 Kudos

I donot recommend a BPM.Please go by what vijaya said.

When u process the file you can update the file in an abap table in XI abap stack ...write a custom rFC to update the table with processed file and also to check wether the file has been processed..you can call this custom RFC using JCO in UDF or use mapping API's...

Former Member
0 Kudos

Thanks a lot for ur useful tips.

Sravya when you say I need to write a Custom RFC did u mean I need to develop this INSIDE the XI BOX, or some other R/3 BOX.

You also say "custom RFC using JCO in UDF or use mapping API's... "

Would you please help me on this point.

Thanks again all of you.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Mohaen,

You can write this custome RFC in XI itself and so can you create a custom table in your Xis ABAP stack itself.

To make use of a JCO call to check and update the table, just refer to this blog by Sravya,

/people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups

So, in XI, you will check if an entry exists with the file name in the custom table using an RFC call, and if it does not exist , you add the filename in the table and proceed and if it exists, you stop processing of this file.

Regards,

Bhavesh

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Mohan,

Every interface run in XI is going to be independent of the other and ASFAIK, there is no way you can achieve what you are trying to do using the Standard XI file adapter.

Maybe you can explore options of using Adapter Modules or OS script to do such checks.

Regards,

Bhavesh

former_member206604
Active Contributor
0 Kudos

Hi Mohan,

Please confirm that should the file adapter avoid that file if it is already processed or the file adapter can pick up the file but the file should not be processed further. If you are ok with the 2nd case you can do using BPM by making a Sync RFC call to a Function module where you can check if the file is processed already. Based on that you can avoid creating a IDOC. If you are running above SP15 then you will have adapter specific attributes where you can access the file name inside the mapping program or you can always you a simple adapter module to retrieve the file name. Please let me know if you need anymore details.

Also this might be possible using ABAP mapping but am not sure please check out.

Thanks,

Prakash

Former Member
0 Kudos

Hi Mohan,

You will have to do it in a roundabout way.

Store the names of incoming successfully process files in ABAP or Java stack.

When the file is picked up first check in you module whether the file by this name is already written. IF yes then you can reject the file or process it accordingly.

Regards

Vijaya