Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
girish_talele
Creator
Creator

Analysis of Monthly Closing Stock

Dear Experts,

We are developing Analysis of Closing stock where the data is taken from SAP.

But in SAP Tables, closing stock for some periods is not updated as there is no movement of material.

For Example, in Material 3 closing stock of 12-2013 is not available, in such case we want to take value of immediate previous month which is 11-2013 & value is 77.

SIMILARLY, for Material 4 closing stock of 12-2013 is not available, hence we want to take value of immediate previous month which is 08-2013 & Value is 88.

Hence the Total Closing Stock for 12-2013 (in Group2) will be 165.

Mat_GroupMaterialF_YearF_MonthClosing Stock
GROUP_1Mat120131011
GROUP_1Mat120131122
GROUP_1Mat12014255
GROUP_1Mat22013115
GROUP_1Mat220131233
GROUP_1Mat22014144
GROUP_2Mat320131066
GROUP_2Mat320131177
GROUP_2Mat32014188
GROUP_2Mat42013888
GROUP_2Mat42014188
GROUP_2Mat420142100

Detailed qvw is attached herewith.

Tried hard but failed to achieve the results.

Requesting to show some light in this issue. It will be great if some thing can be done in load only.

Regards,

Girish.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

2 Replies
maxgro
MVP
MVP

see attachment

Not applicable

Hi Massimo Grossi,

Many thanks for the solution.

Your solution helped us a lot for the same situtation.

Now with reference to the application attached by you -

Consider an example of Group_1->Mat1->2013->10 which gives me closing_stock of 11.

"Now I need your help to fill the same value "11" in the previous months i.e. Jan to Sept 2013 ."

Also same applies for eg - Group_2->Mat2->2013->5.

All the previous months should show value of "5"

Thanks & Regards,

Sarang M. Mehta