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

ABAP HR

Former Member
0 Likes
495

Hi Experts,

My question is , will , get pernr get only the record which satisfy all the conditions on the screen like emp status, emp group, sub group ect with out any code writen or i need to add code for validation before get pernr.

Any example for screen validation code will be appriciated and same question for date range too. Will date range be evaluated by get pernr or i need to add code for that, I need the record with in the given range.

my email: [email protected]

Thank you.

Regards,

Admir.

Points will be rewarded.

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
454

<<<get pernr get only the record which satisfy all the conditions

YES.. but within the date range you entered on the sel scr.. You might need to put in explicit validations in the GET PERNR if you want to verify the employee's current record vis-a-vis the selcriteria ie

GET PERNR.
* to verify if the employee status for the current record
rp-provide-from-last p0000 space pn-begda pn-endda.
if pnp-sw-found eq 1.
check p0000-stat2 in pnpstat2.
endif.
* to verify empoyee belongs to pers Area on sel scr.
rp-provide-from-last p0001 space pn-begda pn-endda.
if pnp-sw-found eq 1.
check p0001-werks in pnpwerks.
endif.

~Suresh

Hi Experts,

My question is , will , get pernr get only the record which satisfy all the conditions on the screen like emp status, emp group, sub group ect with out any code writen or i need to add code for validation before get pernr.

Any example for screen validation code will be appriciated and same question for date range too. Will date range be evaluated by get pernr or i need to add code for that, I need the record with in the given range.

my email: [email protected]

Thank you.

Regards,

Admir.

Points will be rewarded.

2 REPLIES 2
Read only

Former Member
0 Likes
454

Please don't write down your e-mail...We got the Business Card -;)

GET PERNR do all the neccesary validations, so you don't need to do anything else...while you don't need some custom validations -;) I have work with LDB PNP without troubles....

Greetings,

Blag.

Read only

suresh_datti
Active Contributor
0 Likes
455

<<<get pernr get only the record which satisfy all the conditions

YES.. but within the date range you entered on the sel scr.. You might need to put in explicit validations in the GET PERNR if you want to verify the employee's current record vis-a-vis the selcriteria ie

GET PERNR.
* to verify if the employee status for the current record
rp-provide-from-last p0000 space pn-begda pn-endda.
if pnp-sw-found eq 1.
check p0000-stat2 in pnpstat2.
endif.
* to verify empoyee belongs to pers Area on sel scr.
rp-provide-from-last p0001 space pn-begda pn-endda.
if pnp-sw-found eq 1.
check p0001-werks in pnpwerks.
endif.

~Suresh