Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Regards,

Aneel


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.

Former Member
Former Member replied

Dear All,

I have applied this solution which is more easy I think.  Giving for the help of others.

concatenate  '%' so_year '%' into so_year.

  selectfrom pa2001 into corresponding fields of table tvbap

  where pa2001~pernr eq so_pernr and  pa2001~endda like  so_year.

Regards,

Aneel

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question