‎2010 Sep 01 5:31 AM
Hi All,
I am trying to get data based on time and date input....
In the table the filed is having the value like this: 30.07.2010 11:48:51
so i concatenated the input by user and bought it to same format......
but i am gettin an runtime error as
"Error analysis
An exception occurred that is explained in detail below.
This exception cannot be caught in the context of the current statement.
The reason for the exception is:
The program attempted to interpret the value "27.07.2009 14:22:06" as a num
but
since the value contravenes the rules for correct number formats,
this was not possible."
Please let me know.. how to proceed..
‎2010 Sep 01 5:35 AM
Hi,
Does the Data type of Table field and Generated Input variable are same ?
Regards
Vinod
‎2010 Sep 01 5:35 AM
Hi,
Does the Data type of Table field and Generated Input variable are same ?
Regards
Vinod
‎2010 Sep 01 6:05 AM
Please see this:
finaldt_low(10) type c ,
lv_crtat_low(19) type c,
pa_frmtm TYPE sy-uzeit,
CONCATENATE finaldt_low pa_frmtm INTO lv_crtat_low SEPARATED BY space.
I am using a concatenate so the final field will be of character value....
then i am doing a select
SELECT lgnum
procty
tostat
altme
vsola
weight
rdocid
confirmed_by
FROM /scwm/ordim_c
INTO TABLE it_ordim
FOR ALL ENTRIES IN it_actype
WHERE procty EQ it_actype-procty
AND rdoccat = 'PDI'
AND created_at GE lv_crtat_low
AND created_at LE lv_crtat_high .
here the bold one is a problem...
CREATED_AT -> /SCWM/DE_CREATED_DT... is of this type...
‎2010 Sep 01 5:40 AM
‎2010 Sep 01 6:07 AM
Hi,
> In the table the filed is having the value like this: 30.07.2010 11:48:51
>
> so i concatenated the input by user and bought it to same format......
Table will show the date field and time field according to the user settings.(Just for display purpose)
You need to just read them into your variables and use them as they are.
You need not concatenate them into the same format as shown in the table.
Regards,
Srini.
‎2010 Sep 01 6:11 AM
I mean to say the selection screen is having date and tme fields.... so to compare i need to concatenate....
one more thing is when i execute SE11... the field shows me like this in the table : 20.100.730.094.851..... this is date n time...