cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Malformed syntax error in ODATA for $batch for GET operation

abaper_guy
Active Participant
0 Kudos
298

I am trying to test $batch for GET request in ABAP Gateway tcode, but I am getting error Malformed syntax.  However when i execute the get entity seperately it works.

I have attached the snapshots for the same.

Body

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
Accept: application/json

GET SalesOrderHeaderSet('5100000030') HTTP/1.1

--batch--

Also, if I understand correctly since I am going to use only GET requests inside the $batch so there is no need to redefine or implement the CHANGESET method.

Accepted Solutions (1)

Accepted Solutions (1)

BhargavaTanguturi
Active Participant
0 Kudos

Hi,

Can you try this.

keep two empty lines between "GET "  and "--batch--" lines

 

--batch
Content-Type: application/http
Content-Transfer-Encoding: binary

GET SalesOrderHeaderSet('5100000030') HTTP/1.1


--batch--

Thanks,

Bhargava

 

abaper_guy
Active Participant
0 Kudos

Hi Bhargava , I tried but same result

$batch_error_2.jpg

BhargavaTanguturi
Active Participant
0 Kudos
add two lines space before --batch--
abaper_guy
Active Participant
0 Kudos
@Bhargava - Thank you so much, it worked.

Answers (0)