Skip to Content
author's profile photo
Former Member

SAP SCRIPT

How we print date like 1 Oct 2005 instead of 01-10-2005?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Oct 04, 2005 at 04:21 PM

    You can use edit masks in your sapscript code.

    Regards,

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 04, 2005 at 04:34 PM

    Check this out -

    http://help.sap.com//saphelp_470/helpdata/EN/d1/8031dd454211d189710000e8322d00/content.htm

    Cheers.

    ( Dont forget to reward if answers were helpful)

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 05, 2005 at 04:09 AM

    Hi,

    here is the code.

    DT <H>Date:</>,,&HERE GIVE YOUR FIELD OF DATE FROM WHERE YOU ARE GETTING&

    /: SET DATE MASK = 'MM/DD/YY'

    See this will work.

    If your issue is solved plzzz award points.

    CHEERS

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 05, 2005 at 04:26 AM

    use this fm AND CONCEPT......-----

    DATA: BEGIN OF it_month OCCURS 0.

    INCLUDE STRUCTURE t247.

    DATA: END OF it_month.

    CALL FUNCTION 'MONTH_NAMES_GET'

    EXPORTING

    language = sy-langu

    • mnr = num

    • IMPORTING

    • RETURN_CODE =

    TABLES

    month_names = it_month

    • EXCEPTIONS

    • MONTH_NAMES_NOT_FOUND = 1

    • OTHERS = 2

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    READ TABLE it_month WITH KEY mnr = date+4(2).

    Add comment
    10|10000 characters needed characters exceeded