Calculating Total Ending Inventory
Hello BW Gurus,
I have a reporting question for you. Please reply back as soon as possible as I am nearing the deadline.
The scenario is as below:
I need to calculate the Total Ending Inventory and the formula is as below:
Total Ending Inventory = A B C + D + Last Period Total Ending Inventory
How would I calculate the Last Period Total Ending Inventory? Total Ending Inventory is just a Calculation and is stored no where in BW. Since I am running the report for the first time this month, Last period 'Total Ending Inventory' would be Zero for the current month. But current month's Total Ending Inventory would become next month's Last Period Total Ending Inventory. To acheive this, I need to store the Calculated Total Ending Inventory somewhere in BW so that I can pull this information when I am calculating next month's Total Ending Inventory.
Please let me know the solution and the steps involved as soon as possible.
Thank you very much in advance.
Best Regards,
Rajiv.
Hi Anil,
Thanks for your reply. The problem here is Total Ending Inventory is not a KF that is stored in a Cube. It is a calculated Key Figure. When I am calculating Total Ending Inventory I need to add last period's Total Ending Inventory to the calculation. Any idea on how to achieve this?
Thanks in advance.
Best REgards,
Rajiv.
Similar Messages
-
Inventory Management 0IC_C03: Beginning and ending inventory
Hi Gurus
My report is based on Inventory Management cube and I have a requirement where in I need to show Begining Inventory and Ending Inventory for Plant per Period.
There is no KF for Beginning Invin SAP standard model in inventory management cube (0IC_C03 cube), so I thought to restricting total quantity by Fiscal period and Offset by minus one to get begining inventory.
Here is my report layout:
I have got : Period , Plant in rows and Beginning and ending inventory in Columns.
Desired Output:
Fiscal Period | Plant | | Begining Inventory | Ending Inventory.
03/2009 | 1001 | 100 | 50
Actual Report output
Fiscal Period | Plant | | Begining Inventory | Ending Inventory.
02/2009 | 1001 | 100 |
03/2009 | 1001 | | 50
So basically report is being split on two lines for current and previous (due to restriction in begining period : Offset =-1 on period).
Question is how to achieve both begining and ending inventory for a period in same line.
Thanks in avdance for help and time
SAHI Naveen
Thanks for the reply. Non *** KF are already being used and Standard SAP model is being followed. Problem is not with back end but with frontend. Data coming on the report is fine but problem is how to show them on same line. Remember Beginning inventory for current open is ending inventory for previous month and in SAP content there is no KF called as begining inventory. Basically data from two consecutive periods (current and previous one) needs to be on same row of report, but they are coming on different rows if we have period in drilldown by period. this makes sense but how to overcome this.
This, We have all the correct data but facing issue while displaying that on frontend.
Thanks
Sorabh
Edited by: Sorabh on Mar 23, 2009 5:01 PM -
Inventory Management: Month beginning and ending inventory levels
Hello,
I need to have beginning and end of month inventory levels. I havent been given any functional specs . The only favor I would like from you is to know what standard chars and key figs you are using in your rows and column. And how are you using the objects in the forumla Naveen A suggested in the thread [SAP Business Explorer (SAP BEx);.
Specially where he mentions formula, I would like to know what key figures does it consist of and are they restricted to the current or prior month.
Let the end inventory be the same way and the begin inventory be as end inventory - ( total receipts current month - total issues current month).
ThanksAnyone...Naveen A ....Arun????
This is a simple one...
Thanks
Edited by: Navi Singh on May 1, 2009 9:51 PM -
Ending Inventory / Balnce using @Prior
On 9.3.1 and my time dimension spans two dimensions (Periods and years).
Measures in outline:
Inventory (LabelOnly)
----OpeningInventory (store)
----Additions (store)
----Sales (store)
----EndingInventory (store)
Years (labelOnly)
----2010
----2011
----2012 (is &year1)
----2013 (is &year2)
CalcScript :
Fix(forecast,working,&year1,&year2,@relative(entity,0),@relative(products,0))
SET CREATENONMISSINGBLK ON;
/* LOOP(12) */
OpeningInventory
IF(@ISMBR(&Year2) and @ISMBR(Jan))
OpeningInventory= &Year1->Dec->EndingInventory; /* basically @MDshift */
IF(NOT @ISMBR(Jan))
OpeningInventory=@PRIOR(EndingInventory);
ENDIF;
EndingInventory=OpeningInventory+Additions-Sales;
/* ENDLOOP */
SET CREATENONMISSINGBLK OFF;
EndFix
Sometimes, (without using LOOP as comented above), the value of the EndingInventory of the previous month is not available when OpeningInventory is calculated
Am I missing some thing?
And also is &Year1 calculated before &Year2 (as per the member oder in outline), so that Year1's December EndingInventory is available while calculating Year2's January OpeningInventory? or do I need LOOP, would like to avoid LOOP as it increases calc time?
Also looked at How to link an opening balance to prior period ending balance?
Appreciate your help.
ThanksHi,
We had similar situation and changed the script as below. Added Ending Inventory equation in both if and Else statments also.
Though it is not required, this way, it worked perfect.
IF(@ISMBR(&Year2) and @ISMBR(Jan))
OpeningInventory= &Year1->Dec->EndingInventory; /* basically @MDshift */
EndingInventory=OpeningInventory+Additions-Sales;
IF(NOT @ISMBR(Jan))
OpeningInventory=@PRIOR(EndingInventory);
EndingInventory=OpeningInventory+Additions-Sales;
ENDIF;
Edited by: PadmajaV on Aug 27, 2011 2:29 AM -
How to get Open Balance for the year and Total Ending Balance?
For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
Is there any function module available? or should I read from some tables? Please advice.Hello Paul,
You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
BAPI_GL_GETGLACCBALANCE
BAPI_GL_GETGLACCCURRENTBALANCE
BAPI_GL_ACC_GETBALANCE
BAPI_GL_ACC_GETCURRENTBALANCE
BAPI_GL_ACC_GETPERIODBALANCES
BAPI_COND_VAL_DECRE_BALANCES
You might have to put in some of your own logic after the BAPI call to get what you want.
Hope this helps,
Cheers,
Sougata.
p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM -
I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?
Hi Prabhuram and falez,
This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
~Surendra -
Calculating total memory in oracle RAC environment
I have to calculate total memry in RAC environment.
For shared and buffer pool I execute show sga.
For UGA and PGA I execute statement that have two different values.
This is my two different methot for calculating total memory in oracle RAC environment.
Why I have very different value in this 2 statements on pga values?
first stat
with vs as
select 'PGA: ' pid
,iid
,session_pga_memory + session_uga_memory bytes
from (select inst_id iid
,(select ss.value
from gv$sesstat ss
where ss.sid = s.sid
and ss.inst_id = s.inst_id
and ss.statistic# = 20) session_pga_memory
,(select ss.value
from gv$sesstat ss
where ss.sid = s.sid
and ss.inst_id = s.inst_id
and ss.statistic# = 15) session_uga_memory
from gv$session s)
union all
select 'SGA: ' || name pid
,s.inst_id iid
,value bytes
from gv$sga s
select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
IID PID BYTES
1 PGA: 196764792 <=====
1 SGA: Database Buffers 318767104
1 SGA: Fixed Size 733688
1 SGA: Redo Buffers 811008
1 SGA: Variable Size 335544320
2 PGA: 77159560 <=====
2 SGA: Database Buffers 318767104
2 SGA: Fixed Size 733688
2 SGA: Redo Buffers 811008
2 SGA: Variable Size 335544320
second stat
with vs as
select 'PGA: ' pid
,p.inst_id iid
,p.pga_alloc_mem bytes
from gv$session s
,gv$sesstat pcur
,gv$process p
where pcur.statistic# in ( 20 -- = session pga memory
,15 -- = session uga memory
and s.paddr = p.addr
and pcur.sid = s.sid
and pcur.INST_ID = s.INST_ID
and pcur.INST_ID = p.INST_ID
union all
select 'SGA: ' || name pid
,s.inst_id iid
,value bytes
from gv$sga s
select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
IID PID BYTES
1 PGA: 342558636 <=====
1 SGA: Database Buffers 318767104
1 SGA: Fixed Size 733688
1 SGA: Redo Buffers 811008
1 SGA: Variable Size 335544320
2 PGA: 186091416 <=====
2 SGA: Database Buffers 318767104
2 SGA: Fixed Size 733688
2 SGA: Redo Buffers 811008
2 SGA: Variable Size 335544320I'm sorry but it is not clear to me.
- From v$session (1th stmt) I have
nearly 196MB of PGA mem on instance 1
and
nearly 77MB of PGA mem on instance 2
- From v$process (2th stmt) I have
nearly 342MB of PGA mem on instance 1
and
nearly 186MB of PGA mem on instance 2
then...
342+186 - 196+77 = nearly 255MB of memory allocated by oracle processes but free?
if I want calculate the total thing of the amount of the allocated memory from Oracle...It is more correct 2th statement that query v$process...it is true? -
Physical Inventory Status Flag Not Reset after Year End Inventory Procedure
Hi,
We are just done with the Year End Inventory Procedures, and to my surprise, a lot of Storage Bins are having their Physical Inventory status flag as ACTIVE, which they should not have.
An example bin has incorrect status-u201Ccountedu201D in the associated inventory record number . LINV status is L-cleared. LINK status is Z-counted, LINP status is Z-counted and physical inventory flag is ON in table LAGP, but status must be L-cleared and physical inventory flag should be OFF (or blank) in table LAGP.
Our users did not use LI20 to clear the empty bins or bins had no difference to post (meaning book qty & count qty are the same).
I already tried the Program RLREOLPQ and OSS Note 824904, but no its of no use in our Case.
Any guess/hint for the problem?I solved this with thehelp of a Zprogram writeen wrt the OSS note mentioned above in the question.
-
Calculating Totals for a column in ALV Grid Display
Hi All,
I frustrated with the problem of simple calculating total for a column. I wrote the following code:
LW_CATALOG-TABNAME = P_GV_STRUCT.
LW_CATALOG-FIELDNAME = 'ZSUMMS'.
LW_CATALOG-DO_SUM = GC_X.
APPEND LW_CATALOG TO G_FIELDCAT_TAB.
CLEAR LW_CATALOG.
It is not working. Could you please suggest the solution?
It would be great help to me.
Advanced Thanks,
Phani KumarPhani,
Did u try playing around with any of these layout fields ?
no_sumchoice(1), " no choice for summing up
no_totalline(1), " no total line
no_subchoice(1), " no choice for subtotals
no_subtotals(1), " no subtotals possible
no_unit_splitting " no sep. tot.lines by inh.units
totals_before_items, " diplay totals before the items
totals_only(1), " show only totals
totals_text(60) , " text for 1st col. in total line
subtotals_text(60) , " text for 1st col. in subtotals
b. Addtionally... not a solution.. but u know...
just try the same code iwth reuse_alv_list_display and see if the total gets displayed properly ? -
Organizer 12 backup stops while calculating Total Media Size
I have not successfully completed a backup with PS Organizer 12. It stalls at 16 or 17 % calculating Total Media Size. My Photo folders are about 180 GB. I have 287GB free on my data drive. My Apps drive is a 100GB SSD with 36GB free. When Backing up I am given the choice for full backup of the partial. I chose full. It does not ask for a folder. Do not know why. I transferred my photo folders from my previous PC, then transferred my USER PSE files and all worked fine, all attributes were transferred. In addition I have optimized my catalog; cleaned the thumbnail CACHE by changing the .dat files to .old and restarting; set my Registry for maximum file size in Organizer to 1.5GB, my largest file size is 1.2GB;
deleted files from the Catalog larger than 50MB and all files and imported them back in. The Adobe help has help topics of either Back up your catalog to an external hard drive or Back up your catalog to a CD or DVD (Windows Only). They do not mention a thing about backing up onto your PC, they do not say you cannot. Well, oh, I have 8GB RAM and an Intel Core i7. Suggestions appreciated.I identified the problem as to why PSE 12 Organizer was freezing during backup procedures. The problem of freezing during backup calculation of the file size is caused by the existence of *.MOV file types. Both my Nikon camera and my Kodak digital cameras save video recordings in *.MOV file formats. This is likely a rare case, as only users who have Kodak or Nikon Cameras would be affected.
I had to select, filter, all files with *.MOV formats and delete them from my catalog. After the catalog was backed up successfully on my hard drive, same drive, different folder, I had to drag and drop the videos to get them back into the catalog. All tags and locations and people were lost. I could not search them and import from folder. So the catalog is backed up successfully. This is likely a rare case, as only users who have Kodak or Nikon Cameras would be affected.
Case Solved.
Elements 12 backup failPhotoshop ElementsProblem with backing up catalog in Elements Organizer 12 - help please@ -
When I try to backup my catlaog the program locks up during the "Calculating Total Media Size" process at 33%?
I have seen this before and it is probably a bad video. There is no great solution. To determine if this is the cause I would remove all your videos from PSE and try to do a backup, if the backup works, one of the videos is bad. It is trial and error to determine which video. When you remove your videos from PSE make a note as to where you have put them so you can reload them..
-
When I try to backup my files from photoshop elements 12 the "calculating total media size" box will only get as far as 46% and then freeze, how can I make it go to 100%
hi barbara
thank you for your response, i appreciate it. there's definitely nothing wrong with the mouse or trackpad, both work fine in every other application....i can also easily change size dimensions in other programs on my computer so it doesn't seem to be that either. it seems like there is something weird going on in the way that pse and my mac are interacting with each other, just wish i knew what it was. thank you again, wish me luck! -
End inventory and beginning inventory
Hi all,
how can i get the end and beginning inventories of a material, mlcd ckmlpr ckmlpp tables have some data regarding this issues but i want to know the how much of a ending inventory is of production and how much is of material etc.
From which tables i can get this data?
Thanks in advance.
deniz.hi,
thanks for reply,
CKM3 is the trans code.
i see the values i wanted there but i want to retrieve the same values for a report and dont know how to assign for example material costs, production costs or miscelanous costs.
deniz. -
I am preparing the Inventory Turnover Report. I need data on the beginning and ending inventory values per item per month. I looked at the Inventory Audit Report and it does show the data I need which are cumulative Qty and cumulative Value columns. These data however appears to be transient computed data and not table fields.
Does anyone know the table and fields(s) I should use to access the beginning and ending inventory values per item per month? I already looked at these tables: OITM, INV1,OINV,OINM,MRV1,MRV2,OMRV. I could find the what I am looking for.
The fields I am referring to is the same one being used by the system to calculate the COGS and/or Gross Profit per line item in the invoice.
Tips or suggestion is greatly appreciated
Thanks.
Edited by: raymon on Feb 17, 2012 8:27 PMHi Raymon,
Check this link...
http://forums.sdn.sap.com/thread.jspa?threadID=1997923&messageID=10459565#10459565
Thanks,
Srujal Patel -
Hi,
I need some help.
I have a simple 'query/single selection result' page. You select a row and go to a 2nd page where you can make changes to the details.
One of the changes you can make is a quantity attribute which is part of an EO/VO. If quantity changes, the total amount is re-calculated and updated on a different VO. Total amount is a transient field of a VO without EO.
The problem is I can't seem to redisplay this new calculated total when the 'apply' button is pressed even though I've updated the VO with the new value. It still shows the old value and I have to go back to the query page and redisplay to see the new value.
I've tried the following but nothing is working:
pageContext.setForwardURLToCurrentPage (playing with retain AM)
ClearCache
pageContext.putParameter(totalAmount)
Any help or ideas is greatly appreciated.pageContext.putParameter(name,value) worked. I just had the wrong name.
Thanks for your time.
Maybe you are looking for
-
Incomplete order list V.02 shows complete orders
Hi All, There is a order which has a pricing error, but this order is complete(header ---> status). There is a issue with pricing being changed after a invoice being created. Could someone please advise on how to correct this as the conditions cannot
-
500 Internal Server Error : Servlet error: Security sensitive exception..
Hi Thank you for reading my post. i Faced a problem when i tried to run my ADF + BC application on standAlone OC4J version 10.1.3.1.0 . I have validation like what i saw before in demos for username length ,etc I developed the application in Jdevelop
-
Just wanted to give an update an issue. My Mboard is a MSI H81 P33 Running 2x2gb 1300 corsair ram and a Intel celeron G1820 on windows 8.1 64 The build was fine no issue installed all updates from Microsoft and the msi live update software. I then
-
Highlight few fields based of condition
Hi Experts, I have to highlight few fields which are changed. Scenario is, i am reading materials from SAP & displaying it in a view in edit mode for change. On send it has an aproval process befor updating SAP database. The approver should be able t
-
Hello-- My MacBook Pro has been extremely slow since the Mavericks install. I was hoping someone could look at my entrecheck report and advise. Thanks in advance! EtreCheck version: 1.9.13 (49) Report generated August 12, 2014 at 10:08:59 AM EDT Har