2006 Oct 09 10:44 AM
Hi All,
I need set the date to like 12 july 2006.
I wirting the code in the exit.
How to apply this format to my date field.
Thanks in Advance.
Thanks&Regards.
Ramu.
2006 Oct 09 10:47 AM
hi Ramu,
use FM 'CONVERT_DATE_TO_INTERN_FORMAT'
REgards,
Santosh
2006 Oct 09 10:47 AM
data: date type sy-datum,
text(20).
date = sy-datum.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
INPUT = date
IMPORTING
OUTPUT = text.
write: text.
2006 Oct 09 10:47 AM
Hi Ramu
chk this
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
input = l_s_laufdt-low
IMPORTING
output = l_laufdt_low.
do some mauplations and change the output accordingly
2006 Oct 09 10:49 AM
hi santhosh,
use the FM 'CONVERT_DATE_TO_INTERN_FORMAT'
regards
Alfred
2006 Oct 09 10:50 AM
hi,
u can use the function module ...
<b>CONVERSION_EXIT_SDATE_OUTPUT</b>
<b>example :</b>
INPUT 20061009
OUTPUT 09.OCT.2006
2006 Oct 09 10:51 AM
Use the below conversion exit:
CONVERSION_EXIT_IDATE_OUTPUT
CONVERSION_EXIT_IDATE_INPUT
When u pass 20060101 to CONVERSION_EXIT_IDATE_OUTPUT it will return you 01 JAN 2006.
Regards,
Prakash.
2006 Oct 09 10:52 AM
hi ramu,
chk this.
data:lcdate(11).
call function
'converstion_exit_idate_output'
exporting
input = sy-datum
importing
output = lcdate.
concatenate lcdate(2) lcdate2(3) lcdate5(4) into lcdate seperated by space.
--lcdate is your required format.
sample data ..sy-datum = 20060830
lcdate = 30 AUG 2006
rgds
anver
if hlped mark points
2006 Oct 09 10:53 AM
hi ramu,
chk this.
data:lcdate(11).
call function
'converstion_exit_idate_output'
exporting
input = sy-datum
importing
output = lcdate.
concatenate lcdate(2) lcdate2(3) lcdate5(4) into lcdate seperated by space.
--lcdate is your required format.
sample data ..sy-datum = 20060830
lcdate = 30 AUG 2006
rgds
anver
if hlped mark points
2006 Oct 09 10:56 AM
try this
REPORT YCHATEST.
DATA : V_DATE(12).
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
INPUT = SY-DATUM
IMPORTING
OUTPUT = V_DATE.
REPLACE ALL OCCURRENCES OF '/' IN V_DATE WITH SPACE .
CONCATENATE V_DATE+3(2) V_DATE+0(3) V_DATE+5(4)
INTO V_DATE SEPARATED BY SPACE.
WRITE : V_DATE.
2006 Oct 09 10:58 AM
use this fm.
CONVERT_DATE_TO_ALPHA_NUMERIC
Converts internal date to DD Mon YY
Import : YYYYMMDD, Language; Export : DD Mon YY.
hope this helps .
Regards,
Vijay