2006 Feb 02 2:02 AM
Hi,
Iam trying to get values from IE02->class overview->charecteristic values using BAPI_OBJCL_GETDETAIL.
In this BAPI iam getting date values in char format like
2.0050922000000000E07,2.0050923000000000E07.
How can i convert these values into date format?
reward guaranteed
cheers
kaki
2006 Feb 02 2:10 AM
Hi Kaki,
You can use Function module :
CTCV_CONVERT_FLOAT_TO_DATE
Please pass you float value(2.0050922000000000E+07) and this will convert your float valueto internal date format(as 20050922).
Hope this will help you.
Lanka
2006 Feb 02 2:10 AM
Hi Kaki,
You can use Function module :
CTCV_CONVERT_FLOAT_TO_DATE
Please pass you float value(2.0050922000000000E+07) and this will convert your float valueto internal date format(as 20050922).
Hope this will help you.
Lanka
2006 Feb 02 2:19 AM
Thank you murthy,
full points alloted.
cheers
kaki
2006 Feb 02 2:14 AM
Hi Kaki,
Just convert hte floating point to a Packed number and the n convert it into date. i hope it works.
regards
2006 Feb 02 2:20 AM
Lanka suggestion works good too. Basically does the same thing.
report zrich_0001.
data: char(30) type c value '2.0050922000000000E+07'.
data: f type CAWN-ATFLV.
data: date type sy-datum.
f = char.
call function 'CTCV_CONVERT_FLOAT_TO_DATE'
exporting
float = f
importing
date = char.
date = char.
write:/ date.
REgards,
Rich Heilman
2006 Feb 02 2:31 AM
2006 Feb 02 2:16 AM
If that value is truly coming in a character field, you can do something like this.
report zrich_0001.
data: char(30) type c value '2.0050922000000000E+07'.
data: f type f.
data: p(5) type p.
data: date type sy-datum.
f = char.
p = f .
char = p.
shift char left deleting leading space.
date = char.
write:/ date.
Regards,
Rich Heilman
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |