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: 

HR Module

Former Member
0 Kudos

Hi All,

I am doing ABAP in HR. Maximum requiremnet is PNP screen.

So I need to use logical database. PNP screen contains so many select options.

my question is

1. we need to handle all those select options externally or will handled by PNP logical database.

2. What is difference between 'Data selection period' and 'Person selection period'?

Thanks.

6 REPLIES 6

Former Member
0 Kudos

hi....

The PNP ldb itself take care of the screen fields ...

u need not worry...i hope ur using get pernr

i am not sure abt second que..so i wont comment

regards

vivek

0 Kudos

Hi vivek,

Yes I am using GET PERNR. But some cases it doesn't check all select options. So I include all select options which are user frequenly used, for safer side.

If I use 'Person selection period' quite ok.

But If I use 'Data selection period' doesn't handle properly.

User wants to use 'Data selection period', So I handle externally.

Select options handle externally when using LDB ,is a wrong procedure. plz clear me.

Thanks.

0 Kudos

hi

you can handle it externally

it shouldnt give any problem...

regards

vivek

0 Kudos

Hi vivek,

Yes I am using GET PERNR. But some cases it doesn't check all select options. So I include all select options which are user frequenly used, for safer side.

If I use 'Person selection period' quite ok.

But If I use 'Data selection period' doesn't handle properly.

User wants to use 'Data selection period', So I handle externally.

Select options handle externally when using LDB ,is a wrong procedure. plz clear me.

Thanks.

0 Kudos

" here i have manually used select options for payroll and wage types.

plz read the comments in program code. hope it will help u

get pernr.
  clear: pernrid.
  pernrid = pernr-pernr.
" Here i reject those pernrs which do not lie in my selected pay_roll in selection screen.
  if ( pernr-pernr not in pernrs or pernr-abkrs not in pay_roll ).
    reject.
  endif.


get payroll.
  if ( payroll-evp-srtza = 'A' ).
    clear: wa_rt.
" Here i reject those pernrs's payroll whose wage type is not in my select option
    loop at payroll-inter-rt into wa_rt where lgart in wa_type.
      clear: orgeh_val, wa_it_final , wa_wpbp.
      loop at payroll-inter-wpbp into wa_wpbp .
        orgeh_val = wa_wpbp-orgeh.
      endloop.
      wa_it_final-pernr = pernrid.
      wa_it_final-orgeh = orgeh_val.
      wa_it_final-amount = abs( wa_rt-betrg ).
      collect wa_it_final into it_final. " Collect all pernr's data on pernr,objid and orgeh
      clear: wa_rt.
    endloop.
  endif.
" Main difference is that while using the LDB select options , data is processed accroding to ur selection.
" But when u manually give the select option's then u will have to process data urself according to ur 
" options selected in parameters or select options.
" i.e. when u use LDB Payroll select options then GET PERNR will bring only those pernrs which lies in
" in that selected payroll. but when u use ure own manually defined Payroll select option GET PERNR
" Will bring all pernrs and u have to reject or discard manually those pernrs which do not lie in ur
" selected payroll.
end-of-selection.

Edited by: tahir naqqash on Feb 24, 2009 9:46 AM

Former Member
0 Kudos

Thanks to all.