Skip to Content
author's profile photo
Former Member

Date Format

Hi

i want today's date 10-7-2005 to be displayed as October-7. Is there any FM for this ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 07, 2005 at 11:28 AM

    This gives output in a format 07.October.2005

    I dont want the year in the output.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      DATA: char1(2) type c,

      char2(10) type c,

      char3(4) type c.

      SPLIT '07.October.2005<b>(Output from the funtion module)</b>' at '.' into char1 char2 char3.

      concatenate char2 char1 into char2 separated by '-'.

      write: /char2(<b>Desired field).</b>

  • author's profile photo
    Former Member
    Oct 07, 2005 at 11:19 AM

    Hi,

    there is a FM <b>CONVERSION_EXIT_LDATE_OUTPUT</b>.

    Hope this is what you are looking for.

    Regards,

    Stefan

    Add comment
    10|10000 characters needed characters exceeded