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

ABAP-HR

Hi to all

I am modifying a standard report pp6b HR report.

I added a field Employee group. But it is not coming with updated seniority.

select single * from pa0001 where pernr = data_tab-hidden_pernr and

ygroup ne ' ' .

I am unable to find out exactly what is the date field in standard report.

I have to compare begda and endda .

plz guide me....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 04:21 AM

    Hi,

    Check for begda <= sy-datum

    and endda >= sy-datum

    in your select query and try.

    Note:Pls reward suitbale points.

    Regards,

    IFF

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 04:43 AM

    Hi,

    If PNP logical database is used in the program, then try using macro

    rp-provide-from-last p0006 space pn-begda pn-endda.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 05:12 AM

    Hi,

    Try to get the latest record by comparing the Begin date and End date.

    As per the system dte if u want to get the seniority, use

    begda LE sy-datum and endda GE sy-datum.

    If for any particular month, u want to get the seniority,

    Ex: 11th month ( p_date)

    use like this

    begda LE p_date and endda GT p_date.

    Regards,

    Vani

    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.