cancel
Showing results for 
Search instead for 
Did you mean: 

Getting dynamically a specific file in FTP sender adapter

Former Member
0 Kudos

Hi all,

I'm getting an idoc in a BPM and there's a field with a file name, which is the one I have to read in the following step.

I'm not sure this is possible, but I'd like to hear from the PI community...

The problem is that in the usual FTP sender comm channel, I have to specify in configuration time the folder and the pattern of the file names to be read. And in my scenario I only know that in execution time (that's possible when the FTP channel is receiver though).

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Jorge,

if you have a certain number of possible file names, you could create for each file name one adapter and activate it by http message, see William's blog: [Control Communication Channels Externally without using RWB|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6456] [original link is broken] [original link is broken] [original link is broken];

If you dont know the file names before you could could try to configure the adapter with ABAP from a ABAP proxy, looks a bit comlex see Allesandro's blog: [Using the Communication Channel Web Service with ABAP: A Sample Report|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11633] [original link is broken] [original link is broken] [original link is broken];

Regards,

Udo

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Udo,

that answers my question, I didn't know that the comm channel was exposed as a web service, so you can access to it and modify it in execution time.

Anyway I'm afraid that that solution won't be feasible in my scenario, as PI will be getting thousands of idocs. There will have to be some functional changes.

Jorge

prateek
Active Contributor
0 Kudos

Oops!! I misunderstood it

At sender, neither of them would work. In fact, there is no other direct options at sender. You have to specify the filename. As Udo suggested, you have to create multiple channels.

Still if you could explain your BPM configuration, some solution may turn up. You said you are receiving Idoc in BPM and a file too?

Regards,

Prateek

prateek
Active Contributor
0 Kudos

If you have the filename in receiver side payload too, then you may use variable substitution. If in case you have data only at sender side, you may use Dynamic Configuration.

/people/sravya.talanki2/blog/2006/12/20/accessing-system-parameters-in-mapping-runtime

Regards,

Prateek

Former Member
0 Kudos

Thanks Prateek,

but as I said it's not ftp receiver, it's ftp sender. In one field of the idoc I'll have the name of the file to be read.

Your blog deals with setting dynamically the name of one file to be generated (ftp receiver).