Skip to Content
Apr 24, 2020 at 02:34 AM

Records are not picking if time is given in the selection screen.


Hi Experts,

I am working on a report and it has to fetch some data from the LIKP table. So the selection screen fields are ERDAT, ERZET and LFART. So when i am passing the time in the selection field, and trying to fetch the data it is not doing that. But there are records in the LIKP table for the given time span. could you please tell me how can i modify to make the code pick the records for the given time.

Below is the code :

SELECT vbeln, erzet, erdat, lfart, kunag

FROM likp INTO TABLE @DATA(lt_likp_sto)

WHERE erzet IN @s_crtim

AND erdat IN @s_crdat

AND lfart IN @r_sto.

S_crtim is the time field and of type UZEIT.

Please let me know how can i achieve this.

Thanks in advance.


Sri Harsha.