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

[HR] Precise GET PERNR

Former Member
0 Likes
911

Hi. When I use GET PERNR, all pernr are taken so it takes a long minute to complete. How can I limit number of PERNR who are taken by GET statement? For example I'd like to process only pernr from particular shop or particular organization. I'll be thankful for tips. Greetings. P.

Hi. When I use GET PERNR, all pernr are taken so it takes a long minute to complete. How can I limit number of PERNR who are taken by GET statement? For example I'd like to process only pernr from particular shop or particular organization. I'll be thankful for tips. Greetings. P.

5 REPLIES 5
Read only

0 Likes
878

Hello,

If you are using an LOGICAL DATA BASE, you can filter the information or the PERNR using the fields of selection´s screen, for example, you can use the logical database PNP, and, when you introduce some filters in the fields of the selection´s screen, this will affect to the provide in order to filtar the workers.

Regards PpCHiCo

Read only

0 Likes
878

Thanks very much for replying. I'm new to this topic. You described me what should I do to limit pernr from the level of selection-screen. But how would it look like from the level of code? Is there some function module or macro or other tool to limit processed PERNR?

Read only

0 Likes
878

I believe that the only thing that your you can do is to check manually with a CHECK after GET PERNR, of way that if it does not fulfill the conditions necessary, the PROVIDE continues with the following PERNR. Something like this:

GET PERNR.

check pernr-pernr in so_pernr.

....

Read only

0 Likes
878

Isn't it possible to do sth like

GET PERNR WHERE [conditions].

?

Read only

0 Likes
878

After GET PERNR ..

U can write where conditions ..

Say ..

GET PERNR.

if pernr-pernr <condition>

reject.

endif.