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: 

need logic for previous Quarter Amount

Former Member
0 Kudos

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

1 REPLY 1

andreas_mann3
Active Contributor
0 Kudos

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.