Skip to Content
-2

Sapui5 - Batch Request error - URGENT!!!!!

6 days ago

94

avatar image

Hi experts,

We are currently developing an application that allows to save the information of a table in the abap system.

The process is the following:

1. Click on the Save (Guardar) button and the information of the table is sent so that a quote is generated in the abap system.

2. The odata model is updated.

In the first attempt the answer is always successful.

But if I want to generate a quote again, I get the following error:

Error: The Data Services Request could not be understood due to malformed syntax.

Please I would appreciate if you could help me to solve this error, it is urgent. Thank you.

batch-accepted.png

batch-error.png

responseerror.png

c1.png (34.7 kB)
c2.png (12.0 kB)
batch-accepted.png (50.7 kB)
batch-error.png (51.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Felipe de Mello Rodrigues 6 days ago
0

Hi Juan,

You need to check your JSON payload to understand the syntax error, to find this information you can debug your application using the Chrome Developer Tools (just click F12 before you press the save button, open the Network tab, press the save button in your application and look for the OData call in the Developer Tool again), if you don't have experience with debug you can find more information in some of the blogs from SAP community, for example, check the article below:

https://blogs.sap.com/2016/04/30/my-ui5-debugging-tips-and-experience-collection-how-to-resolve-ui5-issues-through-debugging-by-yourself/

Another option is to check the log inside your SAP Gateway server through the transaction /IWFND/ERROR_LOG. After you find your JSON payload you can verify the syntax through a JSON validator like this one: https://jsonlint.com/

Cheers,

Felipe

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Joseph Chinnabathini 6 days ago
0

Hey Juan,

2596236 - Error Message "The Data Services Request could not be understood due to malformed syntax" when creating ticket via OData

Check the above note, though it is not relevant to your issue but try to use the correct date format.

Thanks,

JC

Share
10 |10000 characters needed characters left characters exceeded
Lokeswar Reddy Byni 6 days ago
0

Hello,

Please post the payload which you are trying to execute in JSON Format.

Please chekc the below URL:

https://archive.sap.com/discussions/thread/3838443

Thanks,

Lokeswar.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Lokeswar

Thanks for your help,

You can already see what's requested in the attachments. Thank you!

0
Naoto Amari 5 days ago
0

Tu problema es al volver a generar la petición no? y si le haces un Refresh al modelo ?? suponiendo que la primera vez lo hace bien a la segunda quizas algo se este sobreponiendo o sobreescribiendo es lo unico que se me ocurre porque no me ha pasado nada parecido

Your problem is when generating the request again, no? and if you do a Refresh to the model? Assuming that the first time it does well to the second maybe something is overwriting or overwriting is the only thing that occurs to me because nothing similar has happened to me

Share
10 |10000 characters needed characters left characters exceeded
Pablo Ruiz Navas 5 days ago
0

Hi Juan,

When I face this kind of errors, what I normally do is try to run exactly the same request using the SAP Gateway Client (/IWFND/GW_CLIENT transaction). You can easily identify the url/uri of the oData request opening the console on your web browser.

Hope it helps.

Regards,

Pablo.

Share
10 |10000 characters needed characters left characters exceeded