on 01-17-2017 7:32 AM
'Address' is a complex type. Complex types cannot be arrays. You are assigning an array to a complex type.
So below should work.
itemData = {
'City' : 'City1',
'PostalCode': 'PostalCode1',
.....
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Melanie,
Check the gateway logs for more details , might be you are not sending the correct address. SAP might be checking the validity of postal code with city and country ... or any other check related to address.
thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viplove,
Tried it using a valid address (copied some from the existing data from the odata service) but still having an error. Also I can do create using .submitChanges(). This was how the template in SAP WEDIDE implemented the create method. I'm trying to recreate the same functionality but with .create(). I tried type : '/IWBEP/GWSAMPLE_BASIC.CT_Address' since this was the complex type of "Address" on the payload. Maybe I'm pushing the data on itemData incorrectly.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.