Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Multiple Rows using Json Input from PostMaster

$
0
0

Hi,

 

New to SAP HANA Odata servicess, I am trying to insert multiple rows using POST method from POSTMASTER in below formats

 

1. Json

2. XML

 

When I Insert multiple rows using Json object, i get below error

 

{

    "Odata": [

        {

            "MY_COL1": "Sadsad124511",

            "MY_COL2": 124511

        },

        {

            "MY_COL1": "Sadsad124512",

            "MY_COL2": 124512

        }

    ]

}

 

Error:  <message xml:lang="en-US">Resource not found for the segment &#x0027;Odata$batch&#x0027; at position 0.</message>

 

I can insert single entries using Json

        {

            "MY_COL1": "Sadsad124511",

            "MY_COL2": 124511

        }

 

 

I have exposed table ZTRANS with two columns MY_COL1(String) MY_COL2(Int) as ODATA service, my service definition is as below

 

 

service  {

 

   "P0_MAPPING"."ZTRANS" as "Ztranslation";   

 


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>