Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

GET PERNR thows to end Of Selection

venkateswaran_k
Active Contributor
0 Kudos

Hi

i am new to the HR-ABAP

I am writing one custoized Payslip Z program. i have used Get Prnr macro. However, it does not populate the PERNR structure and the related infotypes.

Can someone help me where i am missing.

I used appropriate LDB in Program attriutes.

regards,

venkat

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try to define TABLES: PERNR.

It will fetch all the infotype details in the PERNR structure and if you want to see specific infotype detail then you have to declare it like infotype: 0000, 0001 like this.

thanks,

Khush

4 REPLIES 4

franois_henrotte
Active Contributor
0 Kudos

did you define which infotypes you want to fill with INFOTYPES statement ?

also you should have TABLES: pernr.

raymond_giuseppi
Active Contributor
0 Kudos

- [GET|http://help.sap.com/abapdocu_70/en/ABAPGET-.htm] PERNR is not a macro but an Abap statement (actually an event) used in logical database (check nodes via SE36 on ldb like PNP), RP_READ_INFOTYPE is a macro as example.

- Did you define PERNR as [TABLES|http://help.sap.com/abapdocu_70/en/ABAPTABLES.htm] or [NODES|http://help.sap.com/abapdocu_70/en/ABAPNODES.htm] in your report

Sample

REPORT RPABAP05.
TABLES: PERNR.
INFOTYPES:  2001 MODE N.
GET PERNR.
  RP-READ-ALL-TIME-ITY PN/BEGDA PN/ENDDA.
  LOOP AT P2001.
    WRITE: / P2001-ABWTG.
  ENDLOOP.

other sample

REPORT RPABAP01.
TABLES: PERNR.
INFOTYPES: 0001.
  GET PERNR.
    PROVIDE * FROM P0001 BETWEEN PN-BEGDA AND PN-ENDDA.
    WRITE:  / P0001-PERNR,
              P0001-STELL,
              P0001-BEGDA,
              P0001-ENDDA.
    ENDPROVIDE.

(look at help.sap.com or sdn.sap.com with correct keywords, you will find many samples)

Regards,

Raymond

Former Member
0 Kudos

Try to define TABLES: PERNR.

It will fetch all the infotype details in the PERNR structure and if you want to see specific infotype detail then you have to declare it like infotype: 0000, 0001 like this.

thanks,

Khush

venkateswaran_k
Active Contributor
0 Kudos

Closing the thread