Skip to Content
avatar image
Former Member

regarding conversion of date in wd abap

Hi All,

I have created an ui element i.e a table and in that one row is for getting the date of birth.i have binded this table with a table which is in dictionary structure. while running my application I am not getting the date of birth in correct format.

say for example i require the correct output i.e DOB as 01.01.1970 but i am getting the wrong output in this field as 19700101.so if there is any function module or any way to do the date conversion then give it.

Thanking you All in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Sep 04, 2008 at 09:26 AM

    Hi ,

    Change the datatype for the node attribute to like Sy-datum or DATS.

    Regards

    Yash

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 11:04 AM

    hi,

    Use this FM CONVERSION_EXIT_PDATE_OUTPUT.This will always converts from system(YYYYMMDD) to user format.

    Thanks,

    suman

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2008 at 03:14 PM

    As Yashpal Gupta said, change the attribute data type to a date one. You shouldn't need to call CONVERSION* modules yourself unless you specifically need the attribute to be some other type (and then, you'll loose the automatic calendar).

    Add comment
    10|10000 characters needed characters exceeded