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

put decimal between dates

Former Member
0 Likes
672

20071406

bseg-zuonr

want to put decimal '.' and differentiate the date

eg;

2007.14.06

want in this format

6 REPLIES 6
Read only

Former Member
0 Likes
649

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

Read only

Former Member
0 Likes
649

hi virus,

use concatenate keyword to do this,

reward points if useful.

regards,

seshu.

Read only

Former Member
0 Likes
649

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 Date

Regards

Sudheer

Read only

Former Member
0 Likes
649

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.

Read only

0 Likes
649

bseg-zuonr

want to convert format data in this field

Read only

Former Member
0 Likes
649

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