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 ABAP infotype 0008

Former Member
0 Kudos

Hi All,

Please see my below requirement.

i got 2 periods in infotype 0008(in the datailed view)

1.03/31/2009-12/31/9999 and amount is 1500(Present period)

2.01/01/2007-03/30/2009 and amount 1000.(Previous Period)

I want to get the amount from the previous period.that is 1000.

Can you please let me know how to achive this and how to capture previous period.

Regards,

Phani.

2 REPLIES 2

Former Member
0 Kudos

Hi Phani,

I there any date on the selection screen that you are using to pick the records or its just that you need to pick the record prior to the current one?

Regards,

Ashish Arora

Former Member
0 Kudos

Hi Phani,

i got 2 periods in infotype 0008(in the datailed view)
1.03/31/2009-12/31/9999 and amount is 1500(Present period)
2.01/01/2007-03/30/2009 and amount 1000.(Previous Period)

I want to get the amount from the previous period.that is 1000.

You can code something like below:

Select * from PA0008 INTO TABLE l_t_it0008 WHERE Pernr EQ l_pernr.
SORT l_t_pernr DESCENDING BY ENDDA.
READ TABLE l_t_it0008 sy-tabix EQ 2 INTO l_wa_it0008.

Regards

Shital