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: 

Logical database PNP screen

anupam_srivastava2
Participant
0 Kudos

Hi All

I want to initialize the Employment Status to Active employee that is 3.

Does any body know how can I do it.

Thnaks in advance.

Regards

AJ

3 REPLIES 3

Former Member
0 Kudos

p0002-stat2 = '3'. or ur internal table..

do u want to change it in PA30 screen...

For more help.. pl post ur ?'s in ECM(HR)..

0 Kudos

Hi Raj

I am creating a report, which uses PNP logical database. So when I run the report, by default the Employee Status should be defaulted to 3 which is Active Employee.

If you know how to do that, that would be gr8.

regards

AJ

Former Member
0 Kudos

Hi AJ,

here a simple codeexample, try it:

*

  • Log. datenbank PNP (P-Stammdaten)

*

TABLES: PERNR.

*

************************************************************************

INITIALIZATION.

*

REFRESH PNPSTAT2.

CLEAR PNPSTAT2.

PNPSTAT2-SIGN = 'I'.

PNPSTAT2-OPTION = 'EQ'.

PNPSTAT2-LOW = '3'.

APPEND PNPSTAT2.

*

************************************************************************

*

START-OF-SELECTION.

*

GET PERNR.

*

WRITE: / PERNR-PERNR.

*

END-OF-SELECTION.

*

Regards, dieter