I have an oData service for File Download functionality. I have to include $value parameter to oData call to trigger GET_Stream at backend.
I see with an external breakpoint on get_stream
method, that the method is triggered. But the file download doesn't work. I get a HTTP response 200 which means it is all OK but I don't see any data or row of information. The response in /IWFND/GW_CLIENT
is empty.
So I debug and see that at the end of the get_stream
method there is a parameter changing with these lines:
COPY_DATA_TO_REF(
EXPORTING IS_DATA = LS_STREAM
CHANGING CR_DATA = ER_STREAM)
In ls_stream
there should be two columns (column1
and column2
).
One of the columns is set and the other is empty. No matter what value I give to column2
, it is still empty. Maybe I don't get any information at /IWFND/GW_CLIENT
request because the parameter column2
is empty? Can you give me a suggestion?
My redefined methods are:
- _DPC_EXT:
- /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM
- ATTACHMENTSET_GET_ENTITYSET
- _MPC_EXT:
- DEFINE