cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve filename in inbound abap proxy

michel_dekimpe
Participant
0 Kudos

Hello,

I've got a file to proxy pi setup.

Is it possible to retrieve the filename in the inbound proxy ?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Michel,

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...

michel_dekimpe
Participant
0 Kudos

Hello,

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.

Regards

former_member186851
Active Contributor
0 Kudos

Hello Michael,

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.

anupam_ghosh2
Active Contributor
0 Kudos

Hi Michel,

                 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. 

Regards

Anupam

michel_dekimpe
Participant
0 Kudos

Hello,

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

Regards

former_member312864
Active Participant
0 Kudos

Hello Michel,

Please go through below link to fetch filename via UDF and pass it to target field.

sender file name in mapping | SCN

Kind Regards,

Sarojkanta Parida

michel_dekimpe
Participant
0 Kudos

thanks for the udf suggestion, this is already done

I'm just wondering if I can retrieve this data in an abap proxy ?

anupam_ghosh2
Active Contributor
0 Kudos

Hi Michel,

                 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

MT_Header

        Data1

        Data2

        Filename

 

So file ---->fcc->xml--->mapping ----> creates proxy structure with the file name in it.--->proxy

Regards

Anupam

michel_dekimpe
Participant
0 Kudos

hello,

that's how I did it now and it seems to be working ...

anupam_ghosh2
Active Contributor
0 Kudos

Great to know.

former_member186851
Active Contributor
0 Kudos

Please close the thread Michael.

Answers (0)