2008 Feb 05 8:58 AM
&----
*& Report ZPV003HR_ANIV_EMP
&----
REPORT zpv003hr_aniv_emp .
TABLES: pernr.
INFOTYPES: 0002,
0001.
DATA: age TYPE d,
serv TYPE d,
curdate TYPE d.
DATA: years TYPE d,
enddate TYPE d .
DATA: BEGIN OF int_empinfo OCCURS 0,
pernr LIKE p0002-pernr,
nachn LIKE p0002-nachn,
vorna LIKE p0002-vorna,
gbdat LIKE p0002-gbdat,
begda LIKE p0001-begda,
emp_age TYPE d,
emp_serv TYPE d,
END OF int_empinfo.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
PARAMETERS: 5_years RADIOBUTTON GROUP g1 DEFAULT 'X',
10_years RADIOBUTTON GROUP g1,
15_years RADIOBUTTON GROUP g1.
*curdate type d DEFAULT '00050101' .
SELECTION-SCREEN END OF BLOCK block1.
START-OF-SELECTION .
IF 5_years = 'X'.
curdate = '00050101'.
ELSEIF 10_years = 'X'.
curdate = '00100101'.
ELSEIF 15_years = 'X'.
curdate = '00150101'.
ENDIF.
GET pernr.
When I compile above piece of code, it says "PERNR" is not defined for the current logical databse.How to go about this.
Declare PNP in the attributes of the program for
Logical database
2008 Feb 05 9:02 AM
Hi,
In the attributes of the PROGRAM, have you mentioned the LDB as PNP or PNPCE.
Mention LDB as PNP/PNPCE.
Just try with this.
2008 Feb 05 9:04 AM
I think UR not using PNP logical database .. Instead U might
be using PNPCE ... or U have not declared PNP in the Attributes ...
PNPCE does not recognize PERNR ...
2008 Feb 05 9:06 AM
I havent mentioned anything in that infotypes.Infact Iam just typing that program which I got from net.You mean to say that I have do something with infotype declaration,where I have to give that PNP,elaborate please
2008 Feb 05 9:08 AM
Declare PNP in the attributes of the program for
Logical database
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |