Skip to Content
0

$batch returning empty responce

Sep 07, 2017 at 11:26 AM

254

avatar image

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

gw-client.jpg (98.8 kB)
gw-client-1.jpg (50.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Joseph BERTHE Sep 08, 2017 at 07:14 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Naga Prakash Sep 11, 2017 at 01:34 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Sep 12, 2017 at 06:36 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Joseph BERTHE Sep 15, 2017 at 04:48 AM
0

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


gw-issue1.png (30.2 kB)
Show 4 Share
10 |10000 characters needed characters left characters exceeded

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

error-batch.jpg (136.4 kB)
0

Does the request GET UserPriorities returns a well formatted response ? :)

Just in case ;)

0

Yes. Its coming perfectly as my previous screen shots.

0

Sorry, no more idear :(

0