2009 Jan 05 6:23 PM
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
2009 Jan 05 6:32 PM
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
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
2009 Jan 05 6:32 PM
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
2009 Jan 05 6:41 PM
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.
2009 Jan 05 7:06 PM
2009 Jan 05 7:13 PM
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
2009 Jan 05 7:13 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |