Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Deep insert using Model.create()?

$
0
0

Hi Krishna,

 

I have issue in deep create entity i am passing values from SAPUI5 .but is not triggering.

 

varitem1 = {
CopmCode :'8415',
PoItem  :'10',
ShortText  :'AA0019',
Plant :'8415',
MatlGroup :'MRO',
  };

 

 

    varitem2 = {
CopmCode :'8415',
PoItem  :'10',
ShortText  :'AA0019',
Plant :'8415',
MatlGroup :'MRO',
  };

 

 

       varoEntity = {};
        oEntity.CompCode ='8415';
        oEntity.DocType  ='NB';
        oEntity.Vendor  ='AA0019';
        oEntity.PurchOrg ='8415';
        oEntity.PurGroup ='MRO';
        oEntity.Currency ="INR";

 

 

 

 

              oEntity.PoItem = item1;

              oEntity.PoItem = item2;

       

     oModel.create("/Header",oEntity ,null, function(oData)  {
     alert("suceess");
          }, function(err) {
alert("Error");

I am getting the following Error.

 

2014-07-17 13:48:19 The following problem occurred: HTTP request failed400,Bad Request,<?xml version="1.0" encoding="utf-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>/IWCOR/CX_DS_EP_PROPERTY_ERROR/005056A509B11ED1BF822D2D09171A04</code><message xml:lang="en">Property 'PoItem' is invalid</message><innererror><transactionid>53C6B1A17E144300E10080000AC4A0E2</transactionid><timestamp>20140717081700.0886510</timestamp><Error_Resolution><SAP_Transaction>Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details</SAP_Transaction><SAP_Note>See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)</SAP_Note></Error_Resolution><errordetails/></innererror></error> - 


 

          });

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I am Waiting for Response Thank's in advance


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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