‎2007 Jul 28 1:21 AM
Hello Experts,
I am new to programming in HR. I am getting a syntax error "PERNR is not defined for the current logical database" with the following piece of code.
TABLES: PERNR.
INFOTYPES: 0002, 0006.
GET PERNR.
PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE: P0002-PERNR, P0002-NACHN, P0002-VORNA.
ENDPROVIDE.
Am I missing a statement or something needs to be configured in the system?
Any help will be highly appreciated.
thanks...
Rony.
‎2007 Jul 28 1:49 AM
HI,
your code works perfectly well.. I have added the PNP logical database and selection screen 100... i think you r not added this PNP logical database
&----
*& Report ZTESTPRG *
*& *
&----
*& *
*& *
&----
REPORT ZTESTPRG .
TABLES: PERNR.
INFOTYPES: 0002, 0006.
GET PERNR.
PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE: P0002-PERNR, P0002-NACHN, P0002-VORNA.
ENDPROVIDE.
Thanks
mahesh
‎2007 Jul 28 1:37 AM
‎2007 Jul 28 1:42 AM
As Rich said that you need to add Logical database in your progam.
Select attributes -> in the bottom you will see Logical database -> fill your Logical database name.
one more thing when you use Logical database ,try to use nodes statement instead of Tables
Nodes : pernr.
Thanks
Seshu
‎2007 Jul 28 1:49 AM
HI,
your code works perfectly well.. I have added the PNP logical database and selection screen 100... i think you r not added this PNP logical database
&----
*& Report ZTESTPRG *
*& *
&----
*& *
*& *
&----
REPORT ZTESTPRG .
TABLES: PERNR.
INFOTYPES: 0002, 0006.
GET PERNR.
PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE: P0002-PERNR, P0002-NACHN, P0002-VORNA.
ENDPROVIDE.
Thanks
mahesh
‎2007 Jul 29 1:40 AM
Thanks guys for such a quick response....
Points rewarded...
Rony.