Skip to Content
0

SAP GW - Download file by using execute action

Sep 13, 2017 at 06:12 AM

50

avatar image
Former Member

Hello Experts,

I've the following scenario:

I need to send some header and table data (as input to GW service) and get a file (in my case it's PDF file but it could be any other file).

I'm aware of file download option (by using get_stream) in GW but in the case I need to use execute_action.

How can I define an entity/complex entity or any other data structure that will return a file (I tried to define an entity with xstring field and set relevant header fields (content type etc) but it seems that the gateway framework classes that runs AFTER my custom DPC class code is changing it).

Regards,

Omri

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Sep 24, 2017 at 11:59 AM
0

Solved it on my own by using ICM cache.

https://github.com/CmIm/sapui5-display_smartform_pdf/blob/master/Z_TEST_PDF_DISPLAY

Instead of returning file (xstring) I'm returning a link to file (url) which is saved on ICM cache.

Regards,

Omri

Share
10 |10000 characters needed characters left characters exceeded