cancel
Showing results for 
Search instead for 
Did you mean: 

what is wrong with this Odata call ??

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

AshwinDutt
Active Contributor

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

0 Kudos

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

cwolter90
Participant

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

AshwinDutt
Active Contributor
0 Kudos

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

0 Kudos

Hi Christian,

Its working now.Thanks for your Inputs.

Regards,

Giri