on 09-13-2017 7:12 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.