5

Fiori Elements, SAP Business One Service Layer and "Incomplete batch reques...

 11 months ago
source link: https://answers.sap.com/questions/13509034/fiori-elements-sap-business-one-service-layer-and.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Oct 26, 2021 at 08:56 AM

Fiori Elements, SAP Business One Service Layer and "Incomplete batch request body"

413 Views

Hi all,

We are trying Fiori Elements with SAP Business One version for SAP HANA 10.0 (10.00.170) FP 2108.

Using Visual Studio Code and Fiori: "Open application generator", i've created a Fiori Elements app (List Report Object Page).

My goal is to show sales quotation information from Quotations Service Layer endpoint. Everything seems to work fine but when i press "Go" button for fetching the info i receive "Incomplete batch request body":

01-error.png

The problem seems to be related with the endpoint for batches processing.

Inspecting the network browser tab i can see this payload sent to the Service Layer ($batch):

POST http://localhost:8080/b1s/v2/$batch

--batch_id-1635237711263-116
Content-Type:application/http
Content-Transfer-Encoding:binary

GET Quotations?$count=true&$select=CardCode,CardName,DocDate,DocEntry,DocNum,DocTotal&$skip=0&$top=30 HTTP/1.1
Accept:application/json;odata.metadata=minimal;IEEE754Compatible=true
Accept-Language:en-GB
Content-Type:application/json;charset=UTF-8;IEEE754Compatible=true


--batch_id-1635237711263-116--
Group ID: $auto.Workers

Response:

{"error":{"code":"242","message":"Incomplete batch request body."}}

Thank you very much

Kind regards,

Attachments

01-error.png (63.8 kB)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK