cancel
Showing results for 
Search instead for 
Did you mean: 

need help on AF modules

former_member229310
Active Participant
0 Kudos

Dear friends,

I have a scenario with ABAP proxy (pdf attachment)   -- PI --- File .  I have to just save the PDF attachment coming from abap proxy into File server. I do not have to read file or mapping is needed.

Could you please kindly let me know what modules i have to use in soap xi sender and file receiver adapters.

appreciate for your guidance.

thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182412
Active Contributor
0 Kudos

Hi Hari,

  • Do you need to write the same attachment name as PDF in target directory?
  • if yes are you receiving the attachment name in the proxy main payload in one of the field name??If yes you can use variable substitution for writting the same file name
  • You need to use PayloadSwapBean to swap the attachment to main payload and write it to target directory

Regards,

Praveen.

former_member229310
Active Participant
0 Kudos

Thanks Praveen. I just have to save the attachment with the same file name as it is sent from SAP.

No need to use any payload help as well.

For using PayloadSwapBean how to swap the attachment to main payload and write it to target directory ?

former_member182412
Active Contributor
0 Kudos

Hi Hari,

You can use like below in receiver file adapter.

Regards,

Praveen.

former_member229310
Active Participant
0 Kudos

Thanks Praveen for the inputs.  rather the file that got saved is empty pdf without any content.

I think the module is missing something. Could you please give some inputs. Should i add anything more.

when I click on payload****@sap.com  it shows me actual pdf.

The actual file name from SAP is showing under mainfest detais  -  sap:Name>

Thank you.

former_member229310
Active Participant
0 Kudos

Dear friends,

Is there any more module parameters i have to add.

Coulld any one please guide me.

Thanks in advance.

engswee
Active Contributor
0 Kudos

Hi Hari

Can you select the message in PIMON, click Open Message, then provide screenshot of the Attachments tab?

Regards

Eng Swee

former_member182412
Active Contributor
0 Kudos

Hi Hari,

When you creating attachments in ECC with in the proxy are you not setting mime type and name for the attachment like below?

I use above code i can see proper attachment name in sxi_monitor.

And i used below module configuration and it is working.

If you set attachment content type properly then you can also use below values.

For dynamic file name better to include the file name in the main payload then you can set the file name using dynamic configuration in message mapping.

Regards,

Praveen.

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos
former_member229310
Active Participant
0 Kudos

Thanks for the response Sri.

Infact my question was not understood correctly, i was looking for  AF module sequence in the proxy sender to save attachement in the file server.

former_member186851
Active Contributor
0 Kudos

Oh Ya Hari..

yes misunderstood it.

Refer the below link or you can refer to Praveens comment

Inserting MessageTransformBean in Module Processor - SAP NetWeaver Process Integration - SAP Library