Skip to Content
0

what is wrong with this Odata call ??

Mar 28, 2017 at 09:50 AM

89

avatar image

I am trying to call the Get method in 'SEGW' with the below Request URI but I am getting an error saying 'Malformed URI literal syntax' .I tired different ways but was unsuccessfull in calling the serivice>

/sap/opu/odata/SAP/************/C_TerminalInventoryTP(CreationDateTime='00000000000000',Plant='GP01',ExternalPlant='',Location='G1L1',SequenceNumber='Test1',Material='ARCH_MAT01',ExternalMaterial= ' ',DraftUUID=guid'40F2E963-AFF2-1ED7-83BC-2438505C03B2',IsActiveEntity=false)

Request your help and inputs.

Regards,

Giri

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ashwin Dutt R Mar 28, 2017 at 10:55 AM
1

Hello,

Please correct the date format to datetime'2017-03-28T00:00:00.00' and send as below and check.

Hope EDM type used is EDM.DateTime and ABAP type as DATE in your GW model.

(CreationDateTime=datetime'2017-03-28T00:00:00.00',Plant='',ExternalPlant='',Location='',SequenceNumber='',Material='',ExternalMaterial= '',DraftUUID=guid'40F2E963-AFF2-1ED7-83BC-2438505C03B2',IsActiveEntity=false)

Regards,

Ashwin

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

Hi Ashwin,

Thanks for you answer.

The date is of type string as of now.If i use the $filter option i am able to make a successfull call , however it fails if i am trying to access it with key values.

Regards,

Giri

0

If its a String and is working for $filter, then it should not fail even when you pass as Keys.

0

Hi,

when you do a successfull call, then you could adopt the keys from response. There is a self-link.

Example:

Best regards

Christian Wolter

response-uri.jpg (48.7 kB)
1

Hi Christian,

Its working now.Thanks for your Inputs.

Regards,

Giri

0