cancel
Showing results for 
Search instead for 
Did you mean: 

$batch returning empty responce

former_member188554
Participant
0 Kudos

Hello Experts,

I am executing $batch query in gateway client.

My query is as follows :-

/sap/opu/odata/sap/ZCRM_APPOINTMENT_SRV/$batch

in HTTP Request body i have send following data..

--batch_39d0-355d-989b

Content-Type: application/http

Content-Transfer-Encoding: binary

GET UserPriorities?$format=xml HTTP/1.1

--batch_39d0-355d-989b--


I am getting empty response. But status code is 202.

when i am executing fiori App , the App is sending $batch request as follows ..

Can you please me , why from gateway client its not working.

Thanks

Deborshi

0 Kudos

Hi Deborshi,

Did you find the solution? I am facing the same issue. Get operation gives me the result but the Batch Technique with POST operation gives empty response.

GregMalewski
Contributor
0 Kudos

Try to send the request to your collection directly as Naga Prakash described in his answer.

Accepted Solutions (0)

Answers (4)

Answers (4)

Pavan_Golesar
Active Participant

Hi,

If I were you, I would try GET operation on OData directly to confirm if GET is working fine.

ODATA:

/sap/opu/odata/sap/ZCRM_APPOINTMENT_SRV/UserPriorities

BR,

-PG

NagaPrakashT
Contributor

Hello,

As it is GET call, please try to run the URI directly in the gateway client instead of $batch and check if data is coming.

/sap/opu/odata/sap/ZCRM_APPOINTMENT_SRV/UserPriorities

Thanks,

NP

Joseph_BERTHE
Active Contributor
0 Kudos

I found out the solution 🙂 you have to use a batch number and enclose in the right way your query, take a look at the screenshot I made :

Regards

former_member188554
Participant
0 Kudos

Hi Joseph BERTHE

I have tried as your suggestion ..

But i am getting following Error - ..ERROR_INFO The Data Services Request could not be understood due to malformed syntax

Can you help me , where is my mistake ?

Thanks

Deborshi

Joseph_BERTHE
Active Contributor
0 Kudos

Does the request GET UserPriorities returns a well formatted response ? 🙂

Just in case 😉

former_member188554
Participant
0 Kudos

Yes. Its coming perfectly as my previous screen shots.

Joseph_BERTHE
Active Contributor
0 Kudos

Sorry, no more idear 😞

Joseph_BERTHE
Active Contributor
0 Kudos

Hello,

It will not help you, but I try lot of combinaison in the Gateway client, even by following this blogthis blog and I have the same issue !!

Hope this is not a bug of the GW Client.

System:

SAP_GWFND 750 0006

Regards