Skip to Content
author's profile photo Former Member
Former Member

Head count select statement

Dear Experts,

for calculating headcount i had written the select statment as follows,

SELECT DISTINCT a~pernr INTO TABLE it_pa00001

FROM pa0000 AS a

INNER JOIN pa0001 AS b

ON apernr = bpernr

WHERE a~stat2 <> 0

AND abegda LE p_date21 AND aendda GE p_date11

AND b~persg = '1'. "#EC CI_NOFIRST

Check whether it is correct or wrong ...

Thanks in Advance,

ThiruKumaran. R

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2008 at 09:37 AM

    Hi stat2 should be other than 0.

    i.e. stat2 ne 0.

    Regards,

    Dilek

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.