cancel
Showing results for 
Search instead for 
Did you mean: 

File Sender - multiple input file scenario

Former Member
0 Kudos

All,

i have simple file2proxy scenario. new business requirement emerged: in case of multiple input files the file sender should read single file and delete/ignore all other files (in order to avoid receiving multiple files). additional solution is that all files will be ignored and adaptor err will be raised (following which Alert will created).

any ideas how can this be implemented?

regards,

Uri

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

this is more like a duplicate file check.

You can create a lookup based on the file name and handle this

Also there are other alternatives -

Answers (3)

Answers (3)

Former Member
0 Kudos

i used http://wiki.sdn.sap.com/wiki/display/XI/DifferentwaystokeepyourInterfacefromprocessingduplicate+files

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Uri Karagila,

I understand your scenario as in File to Proxy, if there are more than one input files,

1) then only one input file should be processed and other files needs to be deleted from sender folder. OR

2) then alert should be raised and all files need to be deleted.

I suggest you to try to achive option 1, as in option 2 support team (who receive alert mail) has to look into issue every time.

To achive first option you can use "Specifying Additional Files in the Sender File Adapter" [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/692ab8a4b633eae10000000a1553f6/frameset.htm]

Let's say you have multiple files

input.txt

input_delta1.txt

input_delta2.txt

Now you want to process 'input.txt' and ignore all other.

In file sender, input file name will be input.txt.

Enter a name for each additional file in the File List.

input_delta1,input_delta2,input_delta3,input_delta4

input_delta1.namePart --> ".txt"="_delta1.txt"
input_delta2.namePart --> ".txt"="_delta2.txt"
input_delta3.namePart --> ".txt"="_delta3.txt"
input_delta4.namePart --> ".txt"="_delta4.txt"

input_delta1.optional --> YES
input_delta2.optional --> YES
input_delta3.optional --> YES
input_delta4.optional --> YES

And I guess if you don't handle attachments, then they are igroned. I haven't tried this one, please share your testing results.

If input file names are dynamic, above solution will not work.

Regards,

Raghu_Vamsee

Former Member
0 Kudos

>

> All,

> i have simple file2proxy scenario. new business requirement emerged: in case of multiple input files the file sender should read single file and delete/ignore all other files (in order to avoid receiving multiple files). additional solution is that all files will be ignored and adaptor err will be raised (following which Alert will created).

>

> any ideas how can this be implemented?

>

> regards,

>

> Uri

This is an interesting question... I think that this can be solved by using unix command or shell, before running poll interval...

Former Member
0 Kudos

i consider that solution and it has 2 faults:

1. unix commands can not be "trusted", incase Command is failing (for some reason) the adaptor will read all files.

2. in case of multiple file (and success deletion) no err/warning mesage will be raised).

regards,

Uri