11-24-2011 2:04 PM
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
11-25-2011 6:29 AM
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
11-24-2011 2:19 PM
did you define which infotypes you want to fill with INFOTYPES statement ?
also you should have TABLES: pernr.
11-24-2011 2:28 PM
- [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
11-25-2011 6:29 AM
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
11-27-2011 7:33 AM