cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve a CSV file by API: only first row is retrieved

Pcu318
Explorer
0 Kudos

Hi experts,

I'm trying to retrieve a csv file from a rest API, but when the body is retrieved I have only the first row of csv. Below how I do, where is the mistake? (with Postman is ok)

Many thanks in advance.

example of csv

"sf__Id","sf__Error",Cod_cliente__c,Name,Partita_iva__c,Indirizzo__CountryCode__s,Indirizzo__StateCode__s,Indirizzo__City__s,Indirizzo__PostalCode__s,Indirizzo__Street__s

0008000141,COMPANY 1 S.P.A.,IT0201124,IT,PD,Padova,35020,"VIA test, 2"

cl_http_client=>create_by_url

go_http_client->request->set_header_fields( fields = lt_header_fields ).

go_http_client->request->set_method( if_http_request=>co_request_method_get ).

go_http_client->send

go_http_client->receive

gv_response = go_http_client->response->get_cdata( ).

here I have only the first row

PaolaCuoghi_0-1709476611384.png

 

PaolaCuoghi_1-1709476611387.png

 

Sandra_Rossi
Active Contributor
0 Kudos
If it "doesn't work" in ABAP, it's because the request is different. Take the full Postman request and do the same in ABAP. If you don't know, post the Postman request here.

Accepted Solutions (0)

Answers (0)