08-21-2008 5:18 PM
Hi ,
I have one ztable which contains the Quater wise updated data. In this table MATNR was the key field. I want the requirement that, if i execute my report , i want the previous Quater of the stock of the material should be display in my report.
Example : if July,Aug,Sep is first Quater(2008) , i want the material of the stock value in Apr,May june(2007 4th Quarter) previous quater .
regards,Ajay reddy
08-22-2008 11:09 AM
pls post the structure of your ztab
q_prev = q_current -1.
If q_prev = 0.
q_prev = 4.
endif.
you can dtermine date of your quarter with fm'
RS_VARI_V_QUARTER1XXXX - RS_VARI_V_QUARTER4XXXX
hope that helps
A.