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: 

@ Master data HRP1000-OBJID

Former Member
0 Kudos
263

Hi,

Given a Position Number i.e. HRP1000-OBJID how do u determine whether that position is still active or not??

2 REPLIES 2

Former Member
0 Kudos
92

Hi

ENter that Position Number (HRP1000-OBJID) in PA0001-PLANS field

and take the PERNR from this PA0001

and enter this PERNR in PA0000

and see the field<b> STAT2</b>

if it is <b>3</b> then that positiion is ACTIVE.

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos
92

select single objid from HRP1000 where otype = 'S' and plvar = '01' and objid = positionnumebr and sy-datum between begda and endda.

if sy-subrc = 0.

message 'Position is active' type 'I'.

endif.

or u can use FM <b>RH_READ_INFTY</b>

pass otype = 'S', plvar = '01', objid = positionnumber and begda = sy-datum and endda = sy-datum ( or u can give date range in BEGDA and ENDDA )

If u get some entry that entry is valid and position is active...

Regards

Prax