Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date Display in Different Format

Former Member
0 Likes
736

Hello,

I have a requirement wherein I'll get the Date as 01/02/2009 (MM/DD/YYYY) but I would like to see it as DD MON YYYY in my Custom Structure. I have little Confusion regarding the Usage of WRITE TO using EDIT MASK. Please help me in this Regard.

Thanks and Regards,

Venkat Phani Prasad Konduri

1 ACCEPTED SOLUTION
Read only

former_member585060
Active Contributor
0 Likes
708

Hi,

Use the FM CONVERSION_EXIT_SDATE_OUTPUT

DATA:  int_datum LIKE sy-datum VALUE '19940102',
            ext_datum(11) TYPE c.

     
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
     EXPORTING
        input      = int_datum
     IMPORTING
         output        = ext_datum.

WRITE :/ ext_datum.

Result

02.JAN.1994

Edited by: Bala Krishna on Jan 6, 2009 12:02 AM

Hello,

I have a requirement wherein I'll get the Date as 01/02/2009 (MM/DD/YYYY) but I would like to see it as DD MON YYYY in my Custom Structure. I have little Confusion regarding the Usage of WRITE TO using EDIT MASK. Please help me in this Regard.

Thanks and Regards,

Venkat Phani Prasad Konduri

5 REPLIES 5
Read only

former_member585060
Active Contributor
0 Likes
709

Hi,

Use the FM CONVERSION_EXIT_SDATE_OUTPUT

DATA:  int_datum LIKE sy-datum VALUE '19940102',
            ext_datum(11) TYPE c.

     
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
     EXPORTING
        input      = int_datum
     IMPORTING
         output        = ext_datum.

WRITE :/ ext_datum.

Result

02.JAN.1994

Edited by: Bala Krishna on Jan 6, 2009 12:02 AM

Read only

former_member156446
Active Contributor
0 Likes
708
DATA: zword TYPE string, zdd TYPE string, zmmm TYPE string,
        zyyyy TYPE string, zfin TYPE string.

  CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
    EXPORTING
      input  = sy-datum
    IMPORTING
      output = zword.

  zdd = zword+3(2).
  zmmm = zword+0(3).
  zyyyy = zword+7(2).

 CONCATENATE zdd '-' zmmm '-' zyyyy INTO zfin.
Read only

Former Member
0 Likes
708

Hi Phani,

Pls look dig into SCN forums before posting the thread.

refer to link

Thanks

Read only

0 Likes
708

Thanks for your suggestion. But we'll still have to believe in the fact that some of the Consultants posting the Thread will have a time constraint and will not have time. Would really appreciate if you spend time for posting helpful answers rather than posting unnecessary comments.

Thanks and Regards,

Venkat Phani Prasad Konduri

Read only

Former Member
0 Likes
708

Query is resolved.

Thanks,

Venkat Phani Prasad Konduri