Skip to Content
0
Nov 05, 2018 at 02:01 PM

SAP Gateway CSV file upload (POST) response table to front end

268 Views

Dear friends,

We are POSTing a .CSV file from the front end to upload some data for which I am using an entity type with Media and reading the file content in "/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM" and this works like a charm.

However, our requirement is to send a table as a reponse back to the front end which will have a message for each row of data.

I tried populating a deep strucutre: ls_log and used

copy_data_to_ref(
EXPORTING
is_data = ls_log
CHANGING
cr_data = er_entity ).

But the front end is not receving any response except any success/error as http code.

Any suggestion on how to achieve this will be of great help.

Thanks and Regards

Sathya