Application Development and Automation 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: 
Read only

LDB error

Former Member
0 Likes
717

&----


*& 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.

4 REPLIES 4
Read only

Former Member
0 Likes
549

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.

Read only

Former Member
0 Likes
549

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 ...

Read only

0 Likes
549

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

Read only

0 Likes
549

Declare PNP in the attributes of the program for

Logical database