04-27-2009 5:27 PM
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.
04-27-2009 5:32 PM
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
04-27-2009 5:53 PM
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