‎2007 Jun 14 7:21 AM
20071406
bseg-zuonr
want to put decimal '.' and differentiate the date
eg;
2007.14.06
want in this format
‎2007 Jun 14 7:23 AM
Hi,
Try this..
DATA: V_INPUT(8) VALUE '20071406'.
DATA: V_OUTPUT(10).
CONCATENATE V_INPUT(4) V_INPUT4(2) V_INPUT6(2) INTO V_OUTPUT
SEPARATED BY '.'.
WRITE: / V_OUTPUT.
Thanks,
Naren
‎2007 Jun 14 7:24 AM
hi virus,
use concatenate keyword to do this,
reward points if useful.
regards,
seshu.
‎2007 Jun 14 7:27 AM
Hi,
Data: Date1 type Sy-Datum,
date2(10) .
Date1 = sy-datum.
Concatinate Date1+0(4) Date2+4(2) Date+6(2) into Date2 separeted by '.'.
Write: Date2.<b>Or else</b>
Data: Date1 type Sy-Datum,
date2(10) .
Date1 = sy-datum.
Write: Date1 to Date2.
" Here the Date2 will have the user format DateRegards
Sudheer
‎2007 Jun 14 7:33 AM
simplese way
REPORT ychatest MESSAGE-ID zz..
DATA : v_date(8) VALUE '20070614',
v_date1(10).
WRITE : v_date TO v_date1 using edit mask '____.__.__'.
WRITE : v_date1.
‎2007 Jun 14 8:18 AM
‎2007 Jun 14 3:55 PM
Hi, try this...
use CONVERSION_EXIT_SDATE_OUTPUT fm u will get the required output.
ex : if u pass 20070614 as input ,u will get 14.JUN.2007
regards
lakshmi