Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3585

Re: how to pass a value to BAPI in sapui5 using odata services?

$
0
0

Hi Ashwin,

Thanks it's working now.

  • Without any parameter, i,e oModel.read("/EmployeeSet",null,null,true,function(oData,repsonse)

        The statement ("/results/0") will work fine and we will get the value in variable  empname.

          var results = oJsonModel.getProperty("/results/0");

          var empname = results.Empname; 

 


  • With a parameter, i,e oModel.read("/EmployeeSet('00011930')",null,null,true,function(oData,repsonse)

          The statement ("/results/0") will NOT work. So, we have to change the code to

          var empname = oData.Empname;

          to get the value in empname



Many Thanks,

Firoz.


Viewing all articles
Browse latest Browse all 3585

Trending Articles



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