Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Function import does not convert Edm.DateTime parameters

$
0
0

Hello,

 

in my Gateway service, I have a function import CheckLeaveRequest which, among others, has the input parameter StartDate of type Edm.DateTime:

2014-07-30_12h51_50.png

 

The service was generated when we were still on GW 2.0 SP6. Back then, everything worked fine when calling the function import

...CheckLeaveRequest?StartDate=datetime%272014-07-31T00%3A00%3A00.000%27&...

 

Later, we updated to SP7. By then, the function import was still working correctly as long as the service was no regenerated!

However, if the service is generated now, the function import does not work anymore, because the date and time input parameters are not getting converted! The input of method EXECUTE_ACTION now looks like this:

 

2014-07-30_12h57_14.png

 

Before, in line 2 the value was already in internal ABAP format: 20140731.

 

Things I already tried that didn't help:

  • Update to GW 2.0 SP8
  • Use data element TIMESTAMP instead of BEGDA
  • Use Edm.Date instead of Edm.DateTime - that gave a syntax error in the model class (I guess because Edm.Date isn't supported anymore)

 

What is the trick to make the Gateway Framework convert my request parameters again?

 

Thanks,

Björn


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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