Skip to Content
avatar image
Former Member

Question about PNPCE

Hello experts,

I've a doubt about how the PNPCE works. I've created a report with an HR Report Category. The HR report category shows the field PNPWERKS in the first page together with PNPBEGDA and PNPENDDA. While I execute the report, the values of PNPWERKS is set to 0001 and the PNPBEGDA 01.01.2014 and PNPENDDA 30.04.2015.

If I check what is being read in the infotype 0001 after GET PERAS instruction I can see that there are some records that don't belongs to the Werks 0001 selected in the selection screen...

Can anybody explain me why?

What I've done to avoid these extra-rows is the following instruction:

delete p0001 where not werks in pnpwerks

Is this correct? Why the PNPCE is not filtering with the PNPWERKS?

Thank you so much in advance for any suggestion.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 05, 2015 at 05:10 PM

    Hi Rebeca,

    This filters on selection screen of logical database will get employees that all conditions is true at least in one day in selected period.

    So if you employee worked one half year in WERKS 0001 and another half year in WERKS 0002 this employee will be selected and all internal tables selected by LDB will contain entries from all selected period.

    Previously the logical database PNP had two BEGDA and ENDDA fields, one to selected infotypes data and another to filter employees, but it wasn't good and caused confusion on user.

    To solve this issue will depend of what do you need to do, in most of cases you need to use the 0001 infotype period to select all another infotypes, check also the RP_SET_DATA_INTERVAL macro to choose a period for each infotype that you declared.

    I hope that I've helped you!

    Best regards.

    Add comment
    10|10000 characters needed characters exceeded