cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple files in single directory

former_member650013
Participant
0 Kudos

Hi experts,

Can any body tell me how to pick up multiple files in single directory.

Thanks

N.Madhu

Accepted Solutions (0)

Answers (3)

Answers (3)

r_s_kulkarni11
Participant
0 Kudos

Hi Madhu ,

You can use the Advanced selection of source file for picking up the files from same source directory with different extensions or with different names.

You can have *.xml, *.txt like that. For this you need to tick the advanced selection of source file in the Sender file Channel.

sherin_jose4
Participant
0 Kudos

Hi Madhu,

Can you be a little more specific on your requirement ?

Is it like you would have a single folder where the files will of different name. If this is the case, then you can use the * symbol to pick all the files.

In case you get file names as text01, text02, text904, text744, etc. then you can use the filename as text* in your communication channel which will pick all the file names that starts with text.

former_member650013
Participant
0 Kudos

Hi sherin,

In my requirement file names are different one is .csv and other is .dat and other is .xml

Thanks

N.Madhu

Former Member
0 Kudos

picking up and move multiple files is not a big deal, you can do it using *.* , but if it requires to play with payload or content conversion  then you have to put bit effort, may be an adapter module...

sherin_jose4
Participant
0 Kudos

Hi Madhu,

As SAP Tech suggested, you can use *.* for picking any format file or any file placed in a directory. If your requirement goes in deep to play around FCC, then try using separate Communication Channels and sender agreements. This should help your cause.

iaki_vila
Active Contributor
0 Kudos

Hi Madhu.

At first you should use the FILE adapter.

Check the SAP.help documentation:

http://help.sap.com/saphelp_nwpi71/helpdata/en/44/655453b48a4ddfe10000000a1553f7/content.htm

4. Specify the Source Directory containing the files to be processed.

You can either specify the entire name or a name relative to the working directory of the Adapter Engine. On all platforms (including Windows), use a forward slash (/) to separate directory names in accordance with the Java specification.

  1. Specify the File Name of the file to be processed.

If you want to specify multiple files, you can use placeholders in the file name and enter file name masks. Use exclusion masks to exclude particular files from the selection.

More information: Defining Placeholders, File Name Masks, and Exclusion Masks

As the documentation said, you can use name masks, as *.* for example

To exclude files check Mickael Huchet's blog http://scn.sap.com/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-...

Regards.

former_member650013
Participant
0 Kudos

Thanks for your help

former_member650013
Participant
0 Kudos

but in my case file names are different so in that case what is solution for that