Last Consumption & Last receipt date logic

Hi
I am facing some issue while developing BI Stock report where user wants last consumption date & last receipt date in the report.
But issue is that when i am going to develop BI query how can i differentiate date for both consumption & receipt because consumption & receipt has differentiate with movement type (suppose Mov type : 101 is for receipt & 261 is for consumption then if i use exceptional aggregation and put last value & reference char as Mov type then all 101 & 261 mov type data will come.
Please guide for developing last consuption & last receipt date logic
Regards,
Gaurav

Hi Anshu
Thanks for your helpful reply.
This is my last option as you suggested. But i will share you my concern that i have developed report on 0IC_C03 & in our business scenario, If i change ETL Structure then we need to delete target data, & we have millions of records if i reconstruct the data then it will take 4-5 days times. Also, some times our marker is interrupted then we need to again the same activity so i want to avoid the same activity in Workbench side and do all required changes in BI Query side.
Can we use customer variable for time characteristics for the same issue.
If there is any other idea in your mind, Please share.

Similar Messages

  • Material wise Last Receipt Date v/s Last Issue Date report

    Dear Sir,
    We are in a need of a report which can provide us Material code wise the last material recipt date and last issuance date .
    Kindly guide us if there is any standard report available in  SAP . Incase we need to go for a z report then which tables should be referred to get the desired information .
    Regards
    Sania agarwal

    Dear Sonia,
    Execute the reports,MC.1,MC.A,MC.9,after executing these reports,click on choose key figures (F6) and select the options for
    Last consumption
    Last goods issue
    Last goods movement
    Last Receipt
    and check the same.
    Regards
    S Mangalraj

  • Last receipt date of materials vendor wise

    Dear All,
    Plz suggest is there any standard report available which gives us the last date of receipt,material wise and vendor wise.
    Rgds

    Hi,
    Yes in MB51 (Material Document list) in item data if you want see material wise give the material 
    or vendor wise you give vendor there you can see last date of  receipt material wise or vendor wise or
    m.type wise also

  • Last Goods Issue Date & Last Goods Receipt Date

    Hi ,
    I would like to know in which table (and fields) I can find the "<b>Last Goods Issue Date</b> " & "<b>Last Goods Receipt Date</b>" based on Material Code, Plant and Storage location.I have to prepare a existing stock report for slow moving material.
    Thanks.

    Hi,
       Check table LIKP deliver header and LIPS deliver Item
    Regards,
    Prashant

  • What is the table name for getting Last Receipt  & issue date of material?

    Hi Friends,
    What is the table name for getting Last Receipt  & issue date of material?
    *Case 1:*
    Here, I am running report in May 2008. But, if there is no goods receipt for the respective material since last 13th March 2007.
    Then in this case Last goods receipt date should be 13th March 2007.
    Please guide me.
    Regards
    Siva

    I checked MSEG table. But, I didn't find any field for date.
    Can you tell me field name.
    Regards
    Siva

  • Report for Last receipt (GR) date

    All SAP Gurus,
    Is there any standard report available in which we can get last GR date of the material?
    Regards,

    HI,
    Please Check in Tcode: MB51.
    Regards,
    sai.

  • How to get the last run date.

    We intend to develop an incremental data load mapping using this strategy:
    1) The mapping reads the date it was last run from an auxiliary table.
    2) It selects from the source only those rows that were inserted or updated after said date.
    3) Then, a post-mapping process updates the last run date in the auxiliary table, using SYSDATE.
    The problem with this logic is that there is a gap: if the mapping starts running at 1:00 and ends at 2:00, the rows that are inserted in between will never be loaded.
    Is there any way to get the value when the mapping started running? Is there a better way to do this?
    Any help would be appreciated.
    Juan Algaba

    There is always the possibility of some record updates slipping through the crack if you are depending on dates unless you are very carefull. All of the audit tasks that the OWB-generate code performes take time. Any pre- or post- process that needs to run takes time. So which date is the best cuttoff point to equate to "when the last run of the merge (or insert or update) statement completed"?
    Plus, how do you handle reloads if the previous load failed and your mapping had incremental commits?
    Is your source on another server? If so, are the dates in perfect synch? The audit tables populate with sysdate of your runtime schema. Is that the same as the sysdate on your source remote database?
    I would qualify my query to look for all updates since the start of the last run that finished successfully - adjusted if neccesary for sysdate differences if it is on a remote schema. And make sure that your code handles any reloads gracefully in the event that this brings back data that you have already loaded once. .
    Because we use Oracle Streams to load a local staging area, we also have custom code to dump the primary keys of all data changes to utility staging tables while streams is updating the local copy. So, our Person table has an st_Person_delta table that just holds the primary keys that have been updated by Streams since the last ETL run.
    During datamart load we disable the streams apply to stabilize our environment, and join these lists of pk's to their source tables to drive our ETL. So we only select data where Streams has performed an update to the row since our last run. When we are done our ETL, we truncate the primary key staging tables, and then turn streams back on to start loading up our new delta into our staging tables again..
    The ETL gets pretty complex though when many tables join together in one mapping and you need to check all possible source table deltas to see if any of them got updated to determine the delta for a given dimension or fact record, but it works great once you get it all done.

  • Last transaction date

    hi experts,
    I want to write a daily report to show a item's history, not only last sales, purchase date, but also last transaction date(includes production, inventory transfer, issues and receipts).
    I know OITM and OITW can get Stock, unit price, last purchase date and last sales date, but where can I get the last transaction date and info such as item post list? Thanks...

    Try this one:
    SELECT   T0.ItemCode, T0.ItemName, T0.Onhand, Max(T1.DocDate) 'Last Trans Date'
    FROM        dbo.OITM T0
    INNER JOIN dbo.OINM T1 ON T1.ItemCode = T0.ItemCode
    WHERE T0.ItemCode Like '[%0\]%'
    GROUP BY T0.ItemCode, T0.ItemName, T0.Onhand
    Thanks,
    Gordon

  • Last GR Date in the Bex Query

    Hello Experts,
    I have one requirement in BW, where I need to get the last GR (Goods Receipt) date.
    In my query, I will be having 4 KEY Fields and 1 CHR Field
    CHR Field is “ 0MATERIAL
    KEY Field is  : Closing Stock Qty , Closging Stock Value, GR Value, and Last GR Date
    I am using 0PUR_C01 and 0IC_C03  info provider for this query. Now my concern is, how do i get the “Last GR Dates”.
    No matter to which date I execute the report, it should always shows the latest date on when we have done the last GR.
    For example.. I executed the query as on 31/Dec/2013.. But the last GR date should be let’s say 03/April/2014.
    Regards
    Sachin

    u can follow this document Posted by  AL , Provides Detail steps how to show latest Record based on Date .
    How to show First and Latest Record at BEx Level

  • DB Polling Issue (last read date strategy)

    I am using a DB polling adapter, using the Last read date strategy.
    I have an issue when error is occured.. Here is the scenario..
    Polling table name: bpel_poll
    polling fields: table_name and last_read_date..
    insert into bpel_poll values( 'TEST_TABLE', 4/21/08 10 AM )
    Now the bpel picked up 100 records at 10:30 AM (after 30 mins). all the BPEL instances are errored out because of some issue in some activity.
    At the end When the 100 instances errors out, the polling table is updated with the current date ie 4/21/08 10:30 AM.
    There is no way to reprocess the 100 records that are failed becoz the last read date is changed and will never pickup previous 100 records.
    I don't know if this is bug or expected behavior. I would assume the BPEL will keep the last read date as 10 AM instead of 10:30 AM as all instances failed..
    Is there any way to achieve this? if not How can we reprocess the failed records?
    please help..

    I believe the point of the DBPolling is that once a record is successfully read then depending on the strategy that has been implements either a sequence or value in a table will be updated with a specfied value. Hence logically delete it so it is not picked up by another run of the process.
    I.e if you ran the process and it took a long time before the DB was polled again then it would potentially re-process the same records twice.
    Not sure if I fully understand the problem. When I have used a Polling strategy I tend to ensure I use a BPEL_STATE column to allow me to re-process records that have errored.

  • Last Execution Date at source

    Hi Guru Sankar
    Sometime back i had some requirement to get last update date of target tables .
    I had changed the IKM and added the step as per your suggestion
    i.e insert into xxsm_audit_table (SESS_NO, SESS_NAME,TARGET_TABLE_NAME, DATE_UPDATED) (SELECT <%=odiRef.getSession("SESS_NO")%>, '<%=odiRef.getSession("SESS_NAME")%>','<%=odiRef.getTargetTable("RES_NAME")%>',sysdate FROM dual)
    Now my requirement is similar but this time i want the same at source database and source tables
    I am using ODI 10.1.3.5.
    I have created a table at source DB.i.e xxsm_odi_audit_table and tried the modified query as below
    with the above step but at Command on Source
    insert into xxsm_audit_table (SESS_NO, SESS_NAME,TARGET_TABLE_NAME, DATE_UPDATED) (SELECT <%=odiRef.getSession("SESS_NO")%>, '<%=odiRef.getFrom("SESS_NAME")%>','<%=odiRef.getTargetTable("RES_NAME")%>',sysdate FROM dual)
    But i am getting error invalid SQL Statement.
    My source is having multiple source tables/views/synonyms
    can you tell me what i am doing wrong???
    regards
    Gourisankar

    Hi Gourisankar,
    If u need to capture SOURCE table list then ur customization should be at LKM level not at IKM level. For capturing source table list in spite of multiple tables (views, synonyms, tables etc) u can do it using a API called getSrcTablesList.
    Do the following steps.
    Step 1:
    Create a new step in ur LKM (LKM SQL To SQL) after Load Data Step.
    Step Name: Insert Audit Log
    Command On Source:
    Technology: Oracle
    Logical Schema : <whichever schema points to ur xxsm_audit_table table>
    Command:
    SELECT '<%=odiRef.getSrcTablesList("", "[RES_NAME]", ", ", "")%>' as SrcTable FROM dual
    Command On Target:
    Technology : Jython
    Command:
    import java.sql as sql
    import java.lang as lang
    #Get the log table connection information by using getJDBCConncetion("SRC")
    myCon =odiRef.getJDBCConnection("SRC")
    MyStmt=myCon.createStatement()
    #Assigning Source Table List to a Jython variable
    JSrcTable='#SrcTable'
    #Insert into xxsm_audit_table with the source table/tables list
    LogInsert= MyStmt.executeQuery("insert into xxsm_audit_table (SESS_NO, SESS_NAME,TARGET_TABLE_NAME, DATE_UPDATED) (SELECT <%=odiRef.getSession("SESS_NO")%>, '<%=odiRef.getSession("SESS_NAME")%>','"@JSrcTable@"',sysdate FROM dual)")
    P.S: Replace @ with plus sign the above line.
    That's it.
    Please note, if u have multiple source table used in ur interface then those will be inserted with comma (,) separated in to audit table.
    Also, make sure u need to add this in ALL the LKM wherever u require to capture the source table names.
    Let me know how it works.
    Thanks,
    Guru

  • Inventory - last purchase date

    This is my first post, so my apologies if all is not correct.
    We were recently taken over and the new owners are trying to put a realistic value on the stock and it has fallen to me to provide the information. I need to ascertain the age of the stock and could do this 2 ways if the information was available:
    1. Use the last purchase date to determine how long we have held the stock. Acceptable but the last purchase field in OITM is not the last purchase date. For items it is, for others it is the last stock transaction date and for the rest I have no idea what the date relates to.
    2. Use a last transaction date, if only SAP had one. Our old system had this date and it made life very simple.
    I can find dates for last issue, receipt and sale but not for production order transactions. If I could then I can get the information merging a few spreadsheets.
    A last transaction date must be stored somewhere, maybe in the financials?
    Any help would be gratefully received.
    Regards
    Stewart Clark
    We are using 2005 SP1 PL45.

    Stewart Clark,
    To expand on what Petr has mentioned most of the information you are looking for is available in SAP Business One.
    The Inventory posting list contains an entry for every inventory transaction that has been processed inclusing Goods Issue, Receipt, Delivery, Production, .....
    The table these values are stored is OINM (warehouse journal).  If you could manage using SQL you could query this table and get the details you need.
    Let me know if you need further assistance with anything to help you move forward
    Suda

  • Query Help for reporting on last receipt qty

    SBO Version: 8.82 PL11
    Hello Forum,
    I am looking for some help devising a command behind a crystal report. We are hoping to achieve the last receipt quantity. To arrive at this we would like it to get the last GRPO for an item and total the quantity on that particular GRPO. In addition to this, we want to consider all the lines on the document and SUM them.
    At present, the query I have is as follows:
    Select SUM(c0.Quantity) from PDN1 c0 WHERE c0.ItemCode = T1.ItemCode AND Shipdate = (select Max(ShipDate) from PDN1 C0  INNER JOIN OPDN c1 ON c0.DocEntry = c1.DocEntry where C0.Itemcode =T1.ItemCode AND c1.DocStatus <> 'C'))
    Any assistance would be greatly received.
    Thanks
    Sarah

    Hi Sarah,
    Please repost to the SAP Business One Application  space.
    -Abhilash

  • Voice Memos older than last Sync date not copying from iPhone to PC after sync, even though "Include voice memos" is checked

    I am trying to copy over my voice memos from my iPhone to my PC. I have "Include voice memos" checked under the Music tab.
    I had an issue with voice memos being duplicated on my iPhone after a sync (I got two versions of each memo on my phone for some reason), so after deleting the extra copies on my phone I deleted all voice memos from within iTunes and chose the option to move the files to the Recycle Bin. So the Music\iTunes\Itunes Music\Voice Memos folder is empty, and there are no voice memos showing up in iTunes.
    But now when I sync, it isn't copying over the older memos that are on my iPhone to my computer. If I record a new voice memo then that memo transfers successfully, but any voice memos with a recording date older than my last sync date do not transfer.
    How can I get these older voice memos (with dates older than my last sync date) transferred over from my phone onto my PC?

    Does anyone know of a way that I can access the voice memos with dates older than my last sync date...?

  • How to get the last run date of an ISchedulerTask ?

    Hello,
    I have implemented an ISchedulerTask and inside the run method I would like to get a reference to the last timestamp/date that the task was running, any idea how to achieve that?
    Rgds,
    Roy

    Hi
    You can create a custom metadata property and set this property with the date when the Ischedlar task runs.
    So, in your code you can read this property whenever you want to read the previous date.
    Hope this works.
    Thanks
    Puneet

Maybe you are looking for

  • How to transfer iPhoto libraries to an external hard drive.

    I would like to transfer my iPhoto library from my iMac (2004) and my MacBook (2008) to an external hard drive (WD EX2, formatted for Mac). I will be purchasing a new MBP soon and handing down the older Mac's. I would like to be able to keep all of t

  • Can't activate my iPhone 6.1.3

    After update I was getting manny issues like 1611 error, restored to factory settings, now I am not able to bypass activation screen. Phone is locked to ATT,never been unlocked, I cant find my ATT card, is there any way to activate it without using A

  • Import/export route targets from E-BGP ?

    hi all, a newbie question again, can i import/export rte target in a vrf from/to ebgp session, in all my readings i only see samples from import/export with iBGP peering thanks for answer

  • Hierarchical DATA?

    I KNOW WHAT IS hierarchical DATA IN WHICH THE A RECORD HAVE A CHILD AND PARENT RELATION SHIP. IN WHICH A RECORD SHOULD HAVE ONLY ONE PARENT DATA. IS THIS RIGHT ANSWER?????? AND I CAN DISPLAY EMP TABLE RECORDS IN hierarchical MODEL BUT THESE TABLES WI

  • Printer printing problems Deskjet Ink Advantage 4645 e-All-in-One Printer

    My computer installed windows 8.1  I do not know to define the problem because the printing works with most programs.  Printing does not work in programs word pad and word of Office.  After printing command one of these programs. Printer pane appears