I've got a file to proxy pi setup.
Is it possible to retrieve the filename in the inbound proxy ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes ,It is possible,
Get the filename using ASMA and map it to the required field in Proxy structure.
Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integr...
Thanks for your response but this is for receiver file adapter, I know it's possible there.
My scenario is sender file adapter to receiver proxy
I could do it via a message mapping and retrieve the filename from the dynamic configuration via a udf but I don't use a mapping for the moment.
I think without mapping it is possible, Might be modules should help.
Simple design would be create a one to one mapping, Since you will be having proxy structure already in place.
The Code returns the filename, Just map it to the required proxy structure field.
You need an adapter module in sender adapter.
It extracts file name and adds the same to the payload as a new field. I assume the payload is xml or converts to xml after FCC.
Yes, it is xml after FCC.
How should I do that with an 'adapter module' ?
For the moment I just read the dynamic configuration via a message mapping
Please go through below link to fetch filename via UDF and pass it to target field.
sender file name in mapping | SCN
thanks for the udf suggestion, this is already done
I'm just wondering if I can retrieve this data in an abap proxy ?
I was in a notion that there was no ESR objects in the scenario hence suggested adapter module. Now if you have mapping then using UDF you can get the file name through ASMA.
Here is the sample proxy structure
So file ---->fcc->xml--->mapping ----> creates proxy structure with the file name in it.--->proxy
that's how I did it now and it seems to be working ...
Great to know.
Please close the thread Michael.