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

Date printing using date mask

Hi,

Iam using Date mask to print the date in 96/01/10 (year/month/Date),(CHINA) but iam getting 0.

This is the code i have written.

SET DATE MASK = 'YY/MM/DD'

,, ,,&REGUD-SWABZ(16)& ( i have to get the date from this field ).

Any one help.

Thanks,

Donald

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Mar 06, 2007 at 08:40 AM

    Hi,

    you can take the help from this code :

    <b>data : day(2), month(2), year(2).

    data : date1(10).

    data : date type sy-datum.

    date = sy-datum.

    day = date+6(2).

    month = date+4(2).

    year = date+2(2).

    write: date.

    concatenate year '/' month '/' day into date1.

    write : date1.</b>

    If it is helpful, please donot forget to reward the points.

    Sandeep

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 06, 2007 at 09:00 AM

    These commands are used for specifying the format of date and

    time and setting the default country.

    <b> /:SET DATE MASK = 'YYYY/MM/DD'</b>

    Refer this link

    http://sap.niraj.tripod.com/id18.html

    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.