Skip to Content
author's profile photo Former Member
Former Member

hi i want the date format as 09-jan-1985 without change in print program

could u help me in this

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 04:22 AM

    Hi,

    Check this example of how to get this format..

    TABLES: T247.

    DATA: V_DATE TYPE SYDATUM.

    DATA: V_STRING(20).

    V_DATE = SY-DATUM.

    SELECT SINGLE * FROM T247

    WHERE SPRAS = SY-LANGU

    AND MNR = V_DATE+4(2).

    IF SY-SUBRC = 0.

    CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)

    INTO V_STRING.

    WRITE: / V_STRING.

    ENDIF.

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 04:17 AM

    Hi,

    You can call a SUBROUTINE and convert the date to your format..

    Check this link of how to call subroutine in sapscript..

    http://help.sap.com/saphelp_46c/helpdata/EN/d1/802fd3454211d189710000e8322d00/frameset.htm

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 04:24 AM

    make use of this FM

    CONVERSION_EXIT_IDATE_OUTPUT

    and see its documentation.

    Regards

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 04:51 AM

    hello guys thank u for the replies but cant i do it with out change in the print progarm and only changing the variables in the form

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.