2006 Sep 04 11:31 AM
Hi experts,
plz help me with this.
actually i want ot concatenate 'sy-datum ,sy-uziet and one literal in to one variable.
but before concatenation i want ot change the format of sy-datum as mm-dd-yyyy format .
regrads,
siri.
2006 Sep 04 11:36 AM
concatenate sy-datum4(2) '-' sy-datum6(2) '-' sy-datum+0(4) sy-uzeit 'literal' into result_var .
Regards
Raja
Hi experts,
plz help me with this.
actually i want ot concatenate 'sy-datum ,sy-uziet and one literal in to one variable.
but before concatenation i want ot change the format of sy-datum as mm-dd-yyyy format .
regrads,
siri.
2006 Sep 04 11:36 AM
concatenate sy-datum4(2) '-' sy-datum6(2) '-' sy-datum+0(4) sy-uzeit 'literal' into result_var .
Regards
Raja
2006 Sep 04 11:36 AM
USE FM.
<b>CONVERSION_EXIT_PDATE_OUTPUT</b>
to change data format.
after that u use concatenate into string(21) type c..
or..
concatenate sy-datum4(2) '/' sy-datum6(2) '/' sy-datum+0(4) sy-uzeit into string.
2006 Sep 04 11:37 AM
Hi!
If your sy-datum seems like this '04092006'
CONCATENATE sy-datum2(2) '-' sy-datum(2) '-' sy-datum4(4) ' ' sy-uzeit variable INTO destination_variable.
Happy developing...
2006 Sep 04 11:43 AM
sy-datum will always be in the following format
YYYYMMDD
Regards
Raja
2006 Sep 04 11:38 AM
> actually i want ot concatenate 'sy-datum ,sy-uziet
> and one literal in to one variable.
> but before concatenation i want ot change the format
> of sy-datum as mm-dd-yyyy format .
>
Hi,
Declare one more variable of type c and length 10 and use that for concatenation.
See the code below:
Data: w_datec(10).
write sy-datum to w_datec MM/DD/YYYY.
Concatenate w_datec sy-uzeit......
Regards
2006 Sep 04 11:47 AM
Hi Sireesha,
Check the following code:
Date
wa_header-typ = 'S'.
wa_header-key = 'Date/Time ' .
CONCATENATE sy-datum+6(2) '/'
sy-datum+4(2) '/'
sy-datum(4) sy-uzeit0(2) ':' sy-uzeit2(2) 'AM'
INTO wa_header-info SEPARATED BY ''.
APPEND wa_header TO t_header.
CLEAR: wa_header.
You can use std. FM 'CONVERSION_EXIT_PDATE_INPUT', for conversion of date.
2006 Sep 04 11:48 AM
hi.
try this.
data: string type string.
CONCATENATE sy-datum4(2) sy-datum6(2) sy-datum(4)
sy-uzeit(2) ':' sy-uzeit2(2) ':' sy-uzeit4(2) 'var'
into string.
hope this help u.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |