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

Regd Position Text - HR ABAP

Former Member
0 Likes
2,866

Hi All...

I have a requirement where i have to pick up position text of the employee from T528T-PLSTX for P0000-MASSN (Action Type) = Joining (BJ) and display in my smartform. Please advice me steps to do the same.

Thanks & Regards,

Preeti

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,688

Hi

Position texts are in T528T table

write a select and take it by passing position field

declare ITAB with fields like PERNR,PLANS, TEXT.

select apernr aPLANS into table ITAB

from PA0001 as a join pa0000 as b on

apernr = bpernr

where b~massn = 'BJ'.

tables t528t.

loop at ITAB.

select single plstx into itab-text

where plans = itab-plans.

if sy-subrc = 0.

modify itab index sy-tabix transporting plstx.

endif.

endloop.

Reward points if useful

Regards

Anji

Message was edited by:

Anji Reddy Vangala

Message was edited by:

Anji Reddy Vangala

Hi All...

I have a requirement where i have to pick up position text of the employee from T528T-PLSTX for P0000-MASSN (Action Type) = Joining (BJ) and display in my smartform. Please advice me steps to do the same.

Thanks & Regards,

Preeti

6 REPLIES 6
Read only

Former Member
0 Likes
1,689

Hi

Position texts are in T528T table

write a select and take it by passing position field

declare ITAB with fields like PERNR,PLANS, TEXT.

select apernr aPLANS into table ITAB

from PA0001 as a join pa0000 as b on

apernr = bpernr

where b~massn = 'BJ'.

tables t528t.

loop at ITAB.

select single plstx into itab-text

where plans = itab-plans.

if sy-subrc = 0.

modify itab index sy-tabix transporting plstx.

endif.

endloop.

Reward points if useful

Regards

Anji

Message was edited by:

Anji Reddy Vangala

Message was edited by:

Anji Reddy Vangala

Read only

0 Likes
1,688

Hi Anji,

I have to take action as "joining" also into consideration. Please advice how can i do that.

thanks & regrds,

preti

Read only

0 Likes
1,688

Hi

See the select again.

I modified it.

regards

Anji

Read only

amit_khare
Active Contributor
0 Likes
1,688

select plansa from pa0001 where pernr = v_pernr.

select plastx from t528t where plans = p0001-plans

and sprsl = sy-langu

and otype = 'S'.

Regards,

Amit

Reward all helpful replies.

Read only

suresh_datti
Active Contributor
0 Likes
1,688

get the employee's Position no from Infotype 0001ie p0001-plans & then read its text from the db table T528T.

~Suresh

Read only

Former Member
0 Likes
1,688

Hi,

Position of an employee is available in table PA0001. (PLANS) You can select particular record from that table based on employee number and Action date.

Then the text can be fetched from table HRP1000, One sample query can be

SELECT SINGLE stext FROM hrp1000 INTO l_emp_pos_text

WHERE plvar = '01'

AND otype = 'S'

AND objid = l_emp_pos

and langu = 'E'

and begda LE sy-datum

and endda GE sy-datum.

Regards,

Devendra