Skip to Content
0
Sep 18, 2014 at 06:04 AM

HR Abap - Using select query

63 Views

Hello expert,

I've tried provide statement and macro both work fine. Now i want to do a select statement using bedga and endda entered on screen.

"getting all employee personal number & normal hours employee only

SELECT pernr

FROM pa0007

INTO TABLE gt_007

WHERE begda <= p_begda AND endda > p_endda.


Is this the right way? Because here we are dealing with with period interval not just comparing date, please let me know if this is correct