Skip to Content
0
Former Member
Jun 01, 2011 at 10:37 AM

issue with macro and GET PERNR

599 Views

Hi All,

My scenario goes like this.

I'm providing data for the following fields in selection screen.

company code - PERNR-BUKRS

employment status - PERNR-STAT2

cost center - PERNR-KOSTL

time recording administrator - PERNR-SACHZ

I'm using 'get pernr' and the 'rp-read-infotype' macro. The LDB is PNP.

In the result, I'm getting some PERNRs which are not in the KOSTL,BUKRS and the validity period given in the selection screen

Also, some PERNRs who do not have SACHZ provided as selection criteria. As a whole, not within the selection criteria that is provided.

But all have one thing in common - employment status '3'.

My understanding is that whatever provided in the selection screen,

GET PERNR picks up only the PERNRs which come under the selection criteria and no manual 'check' statements are needed.

Please advise what could be the problem

Edited by: smkfathima on Jun 1, 2011 12:41 PM