cancel
Showing results for 
Search instead for 
Did you mean: 

REST Receiver Adapter with Attachment as response?

santosh_k3
Active Participant
0 Kudos
1,774

Hi All,


We have a requirement (S4HANA<-->PI<-->ARIBA) synchronous scenario.

It is custom development where we send the request to Ariba and it returns the File as an attachment in response.

and place the file in AL11 of S4HANA server.

Below are my queries:

1) Currently we are in SAP PO SP 04 and I guess the attachment for REST adapter only supports from SP 07?

- Is there any alternative approach where we can do this without upgrading it to SP07?

2) How to read the File attachments in response and place it AL11 ?

Thanks

Sai

santosh_k3
Active Participant
0 Kudos

Hi All,

Could you please help on the above requirement.

Thanks

Sai

jose_llamazares2
Explorer
0 Kudos

Hi all,

Does anyone found the solution? I have the same requirement

Receiver REST. Call REST HTTP (GET) and it returns the File (aplication/pdf) as an attachment in response).

version PO = 7.50 SP07

Thanks!

0 Kudos

Hello Experts,

I have also the same issue as below

Receiver REST. Call REST HTTP (GET) and it returns the File (aplication/pdf) as an attachment in response).

version PO = 7.50 SP07

Can anyone advise on this.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Sai,

Do you found the solution? I have the same requirement with receiver REST. Call REST HTTP (GET) and it returns the File (pdf) as an attachment in response.

Please help

former_member522768
Discoverer

Hi,

I have also the same requirement with receiver REST. Call REST HTTP (GET) and it returns the File (pdf) as an attachment.

Is there any update , did this work ?

0 Kudos

Hi kairamkondas

I don't know how to do it, even if it is possible.

I hope any expert can help us, any example...

former_member607993
Contributor
0 Kudos
Muniyappan
Active Contributor
0 Kudos
  • You can try adapter module and check if attachment is available to be read. If you are able to get, then try to create attachment from module. Or add the attachment to payload and later convert it to attachment. But this is double work.
  • If you are not able to read the attachment from adapter module, then you can keep the scenario like this. S/4Hana – {call Ariba from java map and create output} – File receiver So calling ariba and reading attachment and creating output will be done by java mapping. But this is not usual design and you can make it as asyn scenario if you can adjust in sender side.you have to make the ariba urls dynamic so that it will fit when moving to qa and prod. you can use parameterized mappping.