ABAP: Compare year parameter with date
Dear Abap experts,
I want to compare the date with year. How can I do this. I tried this but error.
select pa2001~aedtm pa2001~begda pa2001~endda pa2001~abwtg pa2001~awart
from pa2001 into corresponding fields of table tvbap
where pa2001~pernr eq so_pernr and pa2001~endda+0(4) eq so_year.
I have applied this solution which is more easy I think. Giving for the help of others.
concatenate '%' so_year '%' into so_year.
select * from pa2001 into corresponding fields of table tvbap
where pa2001~pernr eq so_pernr and pa2001~endda like so_year.