Logic for stock aging report
I am trying to create a stockaging report using 0IC_C03.
I am see that the tables actually stores the qty recieved and issued of an article on a particular day/period.
Can some one explain how it is being used in aging?
How is it used to compute against the current SOH of article for aged QTY?
Thanks
Bye
Hi,
Create a Formula variable with Replacement Path for Batch, and replace with Attribute and attribute is Date OF Manufacturing, so using this you get Date Of manufacture. And next create a Formula variable with Custome Exit and select Dimenstion ID = Date.
And write the following code to get Current day.
WHEN 'ZVCURDAY'.
CLEAR: l_s_range.
l_s_range-low = sy-datum.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
so by using you get current date. So create Formula and do Substraction, i.e. Curday-Dateof Manufacture (above Replcement variable), so you get number of days from Manufacturing.
Then you csan create conditions, i.e. <30 days, <60 days like that.
Thanks
Reddy
Similar Messages
-
Problem in Logic for Customer Ageing Report
Hi,
I am developing a Customer Ageing Report in which i am facing a problem i.e. i am taking tables BSID,BSAD in which i ham taking the open items first and then i am using for all entries in it on the open items and i had debugged it and data picking is correct .
But the MAJOR problem comes when the data is stored in the respective coloumns i.e. 0-30 ,31-60-61-90 etc.. Currently i am comparing the code with the Standard Report i.e.S_ALR_87012126 it is not coming accurate...
Is there any way to solve this problem ....
Edited by: nav009 on Jan 8, 2010 11:39 AMHi,
First you need to calculate the Due date of the Transaction with the help of FM 'NET_DUE_DATE_GET'.
Once you get the Due date calculate the value wf_nod as wf_nod = p_budat - wf_due_date where p_budat is the date on which you want to run the ageing report and wf_due_date is due date of the transaction.
once you get this wf_nod write the following logic :
IF wf_nod < 0.
wa_tab-ndue = wa_data-dmbtr.
ELSE.
IF wf_nod <= pnod1.
wa_tab-amt1 = wa_data-dmbtr.
ELSE.
IF wf_nod > pnod1 AND wf_nod <= pnod2.
wa_tab-amt2 = wa_data-dmbtr.
ELSE.
IF wf_nod > pnod2 AND wf_nod <= pnod3.
wa_tab-amt3 = wa_data-dmbtr.
ELSE.
IF wf_nod > pnod3 AND wf_nod <= pnod4.
wa_tab-amt4 = wa_data-dmbtr.
ELSE.
IF wf_nod > pnod4 AND wf_nod <= pnod5.
wa_tab-amt5 = wa_data-dmbtr.
ELSE.
IF wf_nod > pnod5.
wa_tab-amt6 = wa_data-dmbtr.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
Collect wa_tab into it_tab.
where pnod1.......pnod5 are the aging period as 30,60,90,180,365 etc.
by this you will get correct results.
Please get back to me if you need some more help on this.
Regards,
Nikhil -
Urgent: regarding stock aging report
hi,
i want to have t-code for 'STOCK AGING REPORT' which shows that this material is present in the plant from this <b>date</b>. <b>plzzz provide me the tcode for it.</b>
if anybody provide me solution to it will be definately rewarded.
Message was edited by:
ric .s
Message was edited by:
ric .s
Message was edited by:
ric .sHi,
Please try transaction code MC50
also u can use mc.9 in that use fields like last consumed last good issued and last goods receipt
after runing report u will get material and values t add above fields
press f6 and add last consumed last good issued and last goods receipt
and with this data u can analys this data
Reward if found helpful ...
Cheers,
Chandra Sekhar. -
Stock Aging report Whwise & IT group wise
Hi All,
I want query for stock aging report Warehouse wise and Itemgroup wise in 0-45, 46-90 and greater then 90 days with value,
Thanks in advance.
Thanks & regards,Hi,
Check this...
SELECT distinct T0.ITEMCODE, T1.itemName,T0.ONHAND as 'Total Qty', T1.ManBtchNum,T1.ManSerNum,
CASE WHEN Datediff (day,T1.LastPurDat, Getdate ()) <45 THEN T0.ONHAND END '<45 Days (Qty)',
CASE WHEN Datediff (day,T1.LastPurDat, Getdate ()) <45 THEN T0.ONHAND * T0.Avgprice END '<45 Days (Value)',
CASE WHEN Datediff (day,T1.LastPurDat, Getdate ())>45 AND Datediff (day,T1.LastPurDat, Getdate ()) <90 THEN T0.ONHAND END '<45 T0 90 Days (Qty)',
CASE WHEN Datediff (day,T1.LastPurDat, Getdate ())>45 AND Datediff (day,T1.LastPurDat, Getdate ()) <90 THEN T0.ONHAND * T0.Avgprice END '<45 T0 90 Days (Value)',
CASE WHEN Datediff (day,T1.LastPurDat, Getdate ()) >90 THEN T0.ONHAND END '>90 Days (Qty)',
CASE WHEN Datediff (day,T1.LastPurDat, Getdate ())>90 THEN T0.ONHAND * T0.Avgprice END '>90 Days (Value)'
FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD
left join ibt1 t3 on t3.itemcode = t0.whscode
WHERE T0.ONHAND >0 AND T0.WhsCode = '[%0]' AND T2.ItmsGrpNam ='[%1]'
Thanks
Sachin -
Hi ,
There is a report requirement from stock aging report based on the bucket scenario.
I need to calculate the stock based on quantity(MSEG - MENGE) and moving average price/periodic unit price(MBEW - VERPR).
Then i need to perform the same into bucket scenario like 0-09 ,91-180,180-360,>360.
I can see the field (MENGE) in the standard datasource 2LIS_03_BF which is connecting with the infoobject 0QUANT_B.
But in the update rule/transformation there no assignment for this.
For which infoobject i can map to the cube and what logic i need to perform.
There is a calculation for this in the report for the value of the stock below.
Value = Quantity(MENGE)xmoving average price/periodic unit price(VERPR).
Stock Logic:
Stock is consider based on the movement types: 101,701,712.
Can anyone give me the idea on this how to perform the logic.
Thanks,
satyaHi Vijay,
Functional consultant has given the logic for calculating the stock is
Stock Quantity is restricted based on the movement types 101,701,712.
Stock Value = QuantityxMoving average price /periodic unit price
The logic for calculating the buckets based on the Posting date(0PSTNG_DATE).
My concern is how i can perform the same logic in BW side to calculate the value of the stock.
Advice...
Thanks,
Satya
Edited by: satya prasad on Aug 5, 2011 7:03 AM -
Standard Report for stock Aging
Hello all,
can anyone plz let us know that is there any standard report in SAP for stock aging? actually i have to see the materials quantity whose 311 movement not done after 321 and also from how many days it is pending.
Kindly help and tell how can i find those materials quantity, while user also do 311 for partial quantity?
Regards.Hi @ABAP@
Check the followings...
MB24 - Reservations for Material
MB25 - Reservations for Account Assignment
MB51 - Material Document List
MB52 - List of Warehouse Stocks on Hand MB53 - Display Plant Stock Availability
MB54 - Consignment Stocks
MB56 - Analyze Batch Where-Used List
MB57 - Build Up Batch Where-Used List
MB58 - Consgmt and Ret. Packag. at Customer
MB59 - Material Document List
MB5B - Stocks for Posting Date
MB5C - Pick-Up List
MB5L - List of Stock Values: Balances
MB5M - ShL.exp/prod.date
MB5S - Display List of GR/IR Balances
MB5W - List of Stock Values
MB9A - Analyze Archived Material Documents
MBAL - Material Documents: Read Archive
MBGR - Display Material Documents by Movement Reason
MBSI - Find Inventory Sampling
MBSM - Display Cancelled Material Documents
MMBE - Stock Overview
MD07 - Current Material Overview
MR51 - Material Line Items
MRKO - Settle Consignment/Pipeline Liabilities
MB5T - Stock in transit CC -
How to Calculate the Stock aging report in BW
Dear All,
Please let me know the process to calculating the Stock Aging report in BW.
And what are date field need to be consider and what are customer exits used to populated different agings in Stock like 0-30 days etc.
Thanks
Regards,
SaiHello,
I would be very happy if you send me some sample code to implement this in User exits.
I mean which ABAP statements are useful in this case. I think we need to implement the following logic for User Exit variable.
1. At run time, retieve the SSN data from BW dabase
2. Convert the first 5 digets into *****
3. Make it available to report in BEX.
Thanks
VNM -
Hi All,
I am using MC44, MC46 and MC50 for my stock aging reports. But i a m not getting correct figures. Please update me whether we can use these reports anyways.Can you provide the logic behind the calculation of the Aging of these reHi,
Refer the below notes,
[483887|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=483887]
[1410256|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1410256] -
Urgent: Regarding Stock Ageing report
hi,
i want to have stock ageing report in which i want to have the deatils :-
This is the material which is present in the palnt from dis <b>date</b> and further details of it consumption. plzz tell the <b>tcode</b> for it.
plzz help me out as it is most urgent to me..
regards,
ric.s
Message was edited by:
ric .sHi
The report MC.9 shows Last movement date/Last receipt date / Last issue date.
In period to analyze give appropriate date range
Or
check MSEG & MARD table to get details about material documents with date
Vishal... -
Facing Issue with Stock Ageing report
In Blocked Stock Ageing report Output, I am facing following issues
1. Stock is correct but once we include the "Reason For Movement" then the aging is getting wrong and in some cases value is coming Negative.
2. In some cases "Reason For Movement" is coming in ‘#’, but this is a mandatory field. Hence cannot be blank.
Note:
1. Overall stock is coming correct.
2. Reason Movement chat. is in free char
3. Report is based 0IC_C03.Hi Nadeem,
Reason for Movement is loading from what attribute? check in RSRV for that attribute.
RSRV-->All Elementary Tests ->Master Data ->Compare Size of P-, Q- with X- and Y- Tables respectively .
If it has any error then correct that error in RSRV. It will solve your problem.
Regards,
Rajesh -
Batch transaction stock aging report
Hi Experts,
Can you some one help me with query which give stock aging report base on Batch wise transactions (IBT1).
Item Code, Item description Batch#(Qty which are >0), Batch Qty, Stock "IN" creation Date,
Thanks for your help.
Regards,
SureshDear parneeth,
As requested please try this Query to fulfill your requirement.
SELECT T0.docnum,
T2.BatchNum,T2.ItemCode,T2.Quantity,
T2.ItemName,T0.CardName as Supplier,
T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
convert(varchar(8000),T2.Notes)
FROM OPDN T0 INNER JOIN PDN1 T1 ON T0.DocEntry=T1.DocEntry
inner join
OIBT T2 on T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype and T2.baseentry=T1.Docentry
inner join
oitm T5 on T1.Itemcode=T5.Itemcode
WHERE
T2.quantity>0
group by T0.docnum,T2.BatchNum,T2.ItemCode,T2.Quantity,
T2.ItemName,T0.CardName,
T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
convert(varchar(8000),T2.Notes),T1.Linetotal,T1.Quantity
REGARDS
MANGESH PAGDHARE.
Edited by: MANGESH PAGDHARE on Jan 9, 2012 6:31 PM -
Stock ageing report with batch Management active
Hi Experts,
My client wants a Stock ageing report and batch management is active
According to my client, Inventory ageing report should show stock quantities and stock value as follows,
1. Below one year
2. Between one and two years
3. Above two years
What are the table and fields to be considered for this report.
Thanks
NDSWhat steps do you mean? taking an ABAP course and doing it yourself, or stepping to an ABAPer and let him know what he shall do?
you asked for a stock report, not for a movement report.
If I go into my warehouse and looking at all the stuff sitting there and want a report that should tell me how old this stuff is, then i am not intrested if there was a goods receipt movement.
However I would like to know the last movement date. In this case you have to look into table S032 or into the movements MSEG (with MKPF as header table) -
Stock ageing report in inventory management
Hi,
iam working in stock ageing report my requirment is i for developing stock ageing i have chars for plant and material ,and other 2 chars but i dont have cal day i have only creation on date means posting date only availble .my current layout is :
Plant
Plant Material 0 u2013 30 Days 30 u2013 60 Days 60 u2013 90 Days 90 u2013 180 Days > 180 Days
Expired Blocked Restricted
above is mentioned is my current layout.
but now user will be want they want see 0-30 below month also mean july- august same as 30-60 also.
Report to display always 2 months data at a time. Previous month closing and current month ongoing
this is my requirement please hpe help on this.
thanks in advance.
DevaAs you already noticed not only the input (GR) but the output (GI) is also important.
The date of the GR is only one thing, but after that you received the goods in your SLoc you cannot make difference between stocks received at different times.
As your stock is not distinguished in the system as per the GR date you cannot say that which sub-stock has been consumed during GI.
So, without batch management you cannot achieve your goal in standard system.
Of course, physically you can realize your idea by putting labels on different batches - this would mean batch management physically and not in SAP.
If you use warehouse management you can use a workaround: the GR date is stored in the quants and this makes possible to track the age of the stock without batch management. Please check:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/c6/f83b5e4afa11d182b90000e829fbfe/frameset.htm
Regards,
Csaba -
Stock ageing report by profit center
hi I am new to abap, please kindly send the code for the stock ageing report by profit center in MM module
hi,
for getting stock ageing report in profit center in MM
use the tcode :
S_ALR_87013348
from this u can get the necessary data.
rewards points if useful.
regards
sandhya -
Hi Friends,
We have a requirement to create stock ageing report in BIW.
If i create the report based on the material documnet date which is coming in 0IC_C03 cube,i will get correct ageing as far as manufacturing plant is concerned.
But we have defined the sales depots also as plants in our R/3,so if i take the material doc date from the ic_c03 cube,my ageing will be wrong for my sales depots because here it will consider the documnet(material) received into the depot date and will not consider the material manufacture(updated into system by 101 movement).
So in my depots,i will get the wrong ageing based on the material received date and not the manuf date.
So how do i go about this issue.
Awaiting your inputs..
Thanks & Regards
Sudhakar MHi
You can look for some standard date fileds in MM03 transaction under Production for material manufacturing data and map this field in BW to fetch data and use the field in your query for ageing
Assign points if useful
Regards
N Ganesh
Maybe you are looking for
-
I have tried to download and run Firefox on my MAC OS 10.6.7 several times and have run into this error message every time: "A copy of Firefox is already open. Only one copy of Firefox can be open at a time". A search through the computer does not fi
-
App/itunes gift card from another country
Hi For Christmas I was given an app/itunes gift card by a friend, the card was purchased in italy. Now I have just tried to enter the code and guess what? it tells me i cannot redeem it cos my store is Uk not Italy. If i try to change it to Italy it
-
Email submit button created in LC ES2 causes Acrobat and Reader to crash
I've created a form in LC ES2, and included an email submit button. When I open this form in Acrobat Reader 10.1.3, click the submit button, and specify "Desktop Email Application," as opposed to the "Internet Email" option, no email is generated, Re
-
Compression Algorithm (LZW,RLE,Hoffman) implemnation code for free
this file contain java implemntation of lzw and run length and hoffman compression technique for compression text file : to run unzip project.zip and run using java sun one stdio or use dose the main window using: C:\java JFrame_1 enter the name of t
-
Disable alert and dialog box in vb script
Pls. help to disable the alert and dialog box for indesign CS3 in vb script? I have try to add the following code to my vb script: myIndesign.ScriptPreferences.UserInteractionLevel=1699640946 (Indesign still display missing Link alert box) myIndesign