Skip to Content
avatar image
Former Member

Date Conversion in service

Hi All,

As I am finding NW gateway support date in YYYYMMDD format. At times we are getting dates from ECC which are in YYYYDDMM format and we are getting error with status '500'. Is their any way put conversion on date fields so it  always convert date to YYYYMMDD format.

Other option is to changes service FM to convert it to supported format before populating the value..

Please suggest if we can handle it without coding.

Thanks & Regards,

Rajesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 07, 2015 at 08:11 AM

    Bind the data element to ABAP data element with type DATS. It always has YYYYMMDD format.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 07, 2015 at 04:46 PM

    Hello Rajesh,

    In the GW level the format which GW understands is YYYYMMDD. Only then it will be able to display the Date in a Correct Format in the response.

    You can use Edm.DateTime or DATS in ABAP Editor.

    If you are sending YYYYDDMM to GW and expecting to work, you are bound to get error.

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thats correct, I am aware how to map date field. I was exploring for the options if we have any for handling conversions at field level ( if SEGW tool provides or other ways). So for all the conversions we have to handle thru coding ..


      Thanks for quick response..