Production Daily Report

Hello Experts,
I need a query that will be able to show me opening balance , Completed Items from Production, Cumulative Completed Items from Production, stock transfer from a a warehouse T01 to G04 and cumulative stock transfers to G04.
I have this cose below but I have had problems playing around with it.
Please help.
Declare @FromDate Datetime
Declare @ToDate Datetime
Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >={?StartDate})
Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <={?EndDate})
Select
      a.Itemcode,
      max(a.[Dscription]) as 'Description',
      sum(a.[OpeningBalance]) as 'OpeningBalance',
     min(w1.[CmpltQty]  ) as 'No. of J.Cans Filled',
     (sum(a.[OpeningBalance]) + min(w1.[CmpltQty] ) ) as 'Cumm.No.Of J.Cans',
     sum(a.[OUT]) as  'Issues to Despatch',
    sum(X1.Quantity) as 'No.Of J.cans to Dsptch',
    (  sum(a.[OpeningBalance]) + sum(a.[IN]) - Sum(a.[OUT])) as 'ClosingBalance'
FROM(
      Select
           N1.Itemcode, N1.Dscription, (sum(N1.inqty)-sum(n1.outqty)) [OpeningBalance], 0 [IN], 0 [OUT]
      From
           dbo.OINM N1
      Where
          N1.DocDate < @FromDate
      Group By
          N1.ItemCode,N1.Dscription
    Union All
    select N1.Itemcode, N1.Dscription, 0 [OpeningBalance], sum(N1.inqty) [IN], 0 as OUT
     From dbo.OINM N1
     Where N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and N1.Inqty >0
     Group By N1.ItemCode,N1.Dscription
      Union All
      select N1.Itemcode, N1.Dscription, 0 [OpeningBalance], 0 [IN], sum(N1.outqty) [OUT]
      From dbo.OINM N1
      Where N1.DocDate >= @FromDate
      and N1.DocDate <=@ToDate
      and N1.OutQty > 0
      Group By N1.ItemCode,N1.Dscription) a, OITM I1, OWOR W1, WTR1 X1
      WHERE a.ItemCode=I1.ItemCode AND a.ItemCode = W1.ItemCode
      AND W1.[PostDate]  >={?StartDate} AND  W1.[PostDate] <={?EndDate}
      AND X1.WhsCode = 'D01'  AND X1.DocDate >= {?StartDate}
      AND  X1.DocDate <={?EndDate}
      Group By a.Itemcode, X1.Quantity
      Order By a.Itemcode

Hi,
What is your B1 version and PL?
Thanks,
Gordon

Similar Messages

  • Daily Report Layout Customization

    Is it possible to customize the layout in the Daily Report - LABOR tab? I wish to rearrange the column order and the widths. It is possible at the Daily Report level but I don't see how it is possible at the Tab level...

    It is never pointless to submit an enhancement request whether you own 1 license or 1,000. Without enhancement requests, you are relying on others to ultimately decide what should be included in the application and how to make it better. Primavera (Oracle) relies on feedback from all clients and users when it comes to bugs or new features. I have also seen the bug/enhancement process in action while I worked at Primavera. You're right, marketing, development, support, and others have input when it comes to deciding which bugs to fix and which enhancements to add. Ultimately, bugs have to be fixed before enhancements can be added and then they have to decide which enhancements will do the most good vs. the amount of time it will take to deliver as something that seems simple enough could take a really long time to program, test, and refine. They also need to deliver a product and service packs while working with a limited development staff; there are not exactly 100s of devs working on CM.
    I am just trying to encourage everyone to send in enhancement ideas that could benefit everyone or else the software will never get better.

  • Opportunity Product Revenue report using Narrative option

    Hi,
    I have created quote report using "Opportunity product revenue report" with the use of narrative option and its working fine but the problem here is if opportunity has multiple product revenue items it shows in multiple quotes. For me it should show in a same quotation if there are multiple opportunity product revenue items in a opportunity. Could anyone help me how can i achieve this.
    Any help would be appreciated. Thanks in advance
    Thanks & Regards
    Ambarish

    You need to modify report and club all revenue to single item / row.

  • How to create a daily report for sales order

    hi
    how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

    Hi
    You have to use the sales order tables VBAK,VBAP and VBEP
    So keep date field on selection screen
    and treat this date as Order creation data audat field in VBAK.
    based on this fetch the data from VBAK and VBAP  with the following fields like
    VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS  etc and display in the report
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Daily report for user sessions in oracle10g database

    I would like to genarate the daily report for user sessions in oracle10g database
    daily report of how many of sessions present in oracle database for each user

    Thanks for link ( I know you always post the oracle document link here)
    But I am expecting scripts( someting like logon trigger and logg off trigger) to genarate the user session report.

  • Does anyone have a daily report for system status?

    Basically, I am looking for an automated daily report to give me the status of jobs and workflows.  I am having a hard time finding the talbes and relationships for all the jobs, workflows, and tasks in the CMDB.
    Once I know where to find all the pieces, I can take it from there.

    Sounds like a job for OpsMgr. 
    - Get on the floor, do that dinosaur

  • No data for daily report sent from my PC

    Since a clean install of Windows 7 Ultimate on my PC, no data is being sent to the Cisco server from my PC. Previously I was running the RC version of Windows 7 Ultimate on this PC, with the same router and configuration, and no problems in being able to access a full daily report. I was using Outpost Security Suite Pro, which allowed the data to be sent, but am now using the native Windows  firewall, configured to allow NM outward communications.
    I asked Support to assist with configuring the Windows  firewall, but they were unable to assist, as they did not know how to do this- I would have thought that as NM is Windows 7-compatible, this information would have been available to them.
    My netbook is running Windows 7 Ultimate RC, with OUtpost Security Suite Pro, and does send the data for the daily report, when using my home wireless network and the same router, so I suspect that the Windows 7 firewall is causing the problem with the PC.
    Can anyone advise me on the specifics of configuring the Windows 7 firewall to allow NM to send the necessary data so that I can get the daily report?
    Running Network Magic version -5.5..9195.0-Pure. ADSL-2 connection; Netcomm Router NB6Plus4W;PC connection to router wired; PCI Adaptor card; VIPRE Antivirus and Antispware (disabling this made no difference)

    ambergris77 wrote:
    Since a clean install of Windows 7 Ultimate on my PC, no data is being sent to the Cisco server from my PC. Previously I was running the RC version of Windows 7 Ultimate on this PC, with the same router and configuration, and no problems in being able to access a full daily report. I was using Outpost Security Suite Pro, which allowed the data to be sent, but am now using the native Windows  firewall, configured to allow NM outward communications.
    I asked Support to assist with configuring the Windows  firewall, but they were unable to assist, as they did not know how to do this- I would have thought that as NM is Windows 7-compatible, this information would have been available to them.
    My netbook is running Windows 7 Ultimate RC, with OUtpost Security Suite Pro, and does send the data for the daily report, when using my home wireless network and the same router, so I suspect that the Windows 7 firewall is causing the problem with the PC.
    Can anyone advise me on the specifics of configuring the Windows 7 firewall to allow NM to send the necessary data so that I can get the daily report?
    Running Network Magic version -5.5..9195.0-Pure. ADSL-2 connection; Netcomm Router NB6Plus4W;PC connection to router wired; PCI Adaptor card; VIPRE Antivirus and Antispware (disabling this made no difference)
    Hi ambergris77,
    First only one Software can be turned on within the operating system, otherwise you have problems. Also Network Magic needs Full Access, not just Outward Access.
    thecreator - Running Network Magic version -5.5..9195.0-Pure0 on Windows XP Home Edition SP 3
    Running Network Magic version -5.5.9195.0-Pure0 on Wireless Computer with McAfee Personal Firewall Build 11.5.131 Wireless Computer has D-Link DWA-552 connecting to D-Link DIR-655 A3 Router.

  • Daily Report for e-mail alerts sent to via subscription

    Hi All,
    Good Day!!!,
    We have multiple subscription in SCOM 2012 SP1.
    we need to generate a daily report stating that this many Alert sent to this subscriber group and this many are closed .
    Ex: We have [email protected] is the subscriber and for this subscriber we have created 3 subscription for send notifications.
    In a native mode we can able to export alerts details by group or objects. but we need a report based on subscription.
    Thanks in advance.
    Thanks & Regards, Kesa_Kara

    Hi,
    Please refer to the links below:
    OpsMgr 2012:  Configure notifications
    http://blogs.technet.com/b/kevinholman/archive/2012/04/28/opsmgr-2012-configure-notifications.aspx
    Best Practices: E-mail Notification Subscriptions
    http://www.opsconfig.com/?p=574
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • As a part of my Daily Reporting Activity; i have to send 35 SMS everyday. Can someone suggest me which software is suitable for my usage as it's tedious job to forward the same sms report 35 times. I am using  IPhone 3GS -32 GB. Sincerly req your reply

    As a part of my Daily Reporting Activity; i have to send 35 SMS everyday. Can someone suggest me which software is suitable for my usage as it's tedious job to forward the same sms report 35 times. I am using  IPhone 3GS -32 GB. I am using service of Vodafone, Mumbai. & when i first time sent 35 SMS (having habit of Nokia to send group SMS at the click of one button) my IPhone sent 35 MMS.

    Found something for you that might be useful:
    http://itunes.apple.com/us/app/igroup-sms/id377378452?mt=8

  • Creation of production order report as per format

    Hi!!!!
    Gurus!!!!!
    I want production order report in some required format.
    How to see the format on production order
    How to see the report in the following format.
    Company name:-
    Material requirement Number:-
    date :-
    Time:-
    Due Date:-
    Plan Date:-
    Production Details:-
    Item Code:-
    Item Description:-
    WH:-
    Planned Quantity:-
    Completed Quantity:-
    Completed date:-
    Rejected Quantity:
    Waste and Scrap:-
    Evaporation Quantity:-
    Components:-
    Sr.No.      Item No.   Desription             BOM Quantity  Planned Quantity  Issue Quantity
    1     1000     RED                 20                     200                      200
    2     1001     BLUE                 30                     300                      300
    3     1002     Waste and Scrap -0.45987     -0.9845           -0.984567
              Total Quantity      50.45987     500.9845                     501.98888
    Order Remark.
    I want to see the report in this format.
    Thanks with Regards,
    Nitin

    Nitin,
    Your requirement certainly qualifies for creation of a new Production order Print form and custom print program if you are looking at printing at individual order. If you are looking at report, then certainly a custom report.
    Regards,
    Prasobh

  • Creation of production order report

    Dear,
    Gurus !!!!!
    I am working on production order report.
    Could you give me some idea how to create a production order ,stock overview report and
       work center reports.
    How I see it .
    Regards,
    Nitin

    Dear Nitin,
    use std report availble
    1. production order COOIS
    2. Stock overview MMBE, RWBE, MB5B, MB52
    3. For work center use CR05/06/07/08/10/15/60/80
    sree

  • Generate a daily report

    Thanks first.
    How to generate a daily report automatically?
    we can generate a report using sqlplus spool command, the problem is I need a daily one automatically generated. any ideas?

    user11017933 wrote:
    Thanks.
    how to write script is a problem for me, could you give me example? The internet is full of tutorials on how to write scripts on whatever your unnamed OS is.
    write a sql query to produce your report
    put tht sql query into a simple text file, name whatever.sql
    find out how to start sqlplus and pass it the name of the text file to be executed. (hint - find the SQLPlus manuals at tahiti.oracle.com)
    put that sqlplus startup command in a file that your unnamed os will recognize as an executable batch file.
    use your unnamed OS's scheduling mechanism to execute the batch file.
    also, we need a new report whenever a new record gets into tableA.And how often do you expect a new row (tables don't have records) to be inserted into tableA?
    Maybe you should back up and explain the business problem, before you start down the road to Database Hell chasing an ill-conceived solution.

  • Correction for Daily Report Log Web Service

    In the August 29th iTunes U Administrator email, there was a mistake in the example for the Daily Report Log Web Service.
    The example showed:
    http://deimos.apple.com/WebObjects/Core.woa/API/GetDailyReportLogs/example.edu?S tartDate=2007-07-01&EndDate=2007-07-17&destination=example.edu&username=ADMIN&ac cesskeys=Administrator@urn:mace:itunesu.com:sites:example.edu&emailaddress=foo@b ar.com&displayname=test&expiration=1186086577&signature=4443ac48a8ae1a0c50dbfb35 f201b6d0db14b16d
    There are extraneous form value pairs in the above example. The POST form values required to get a daily report are:
    StartDate (EndDate is optional) - format YYYY-MM-DD
    credentials
    identity
    signature
    An example of a correct request:
    http://deimos.apple.com/WebObjects/Core.woa/API/GetDailyReportLogs/example.edu?S tartDate=2007-09-12&EndDate=2007-09-13&credentials=Administrator@urn:mace:itunes u.com:sites:example.edu&identity=%22JaneDoe%22+%3Cjdoe%40example.edu%3E+%28jdoe%29%5B42%5D&signature=38bda70d9aa6975ae8756754034feb6e3c794aca4b21665f6dc85d2ed42d4 f6b

    Currently displaying audit log reports in REST or API is not supported by Microsoft. SharePoint online in Office 365 just supports saving an audit log report as a Microsoft Excel 2012 Preview workbook.
    You can refer the following post :
    http://community.office365.com/en-us/f/172/t/164047.aspx

  • Goods receipt - daily report

    Hi all,
    We have a warehouse storing own stock and supplier owned stock. I would like to pull a daily report showing all receipt done on that day for each storage location. Any ideas?
    thank you,
    M

    Hi Sathish,
    As per my understanding parent que was not for any schedule program.
    Just check in SAP Monitor and WT  document posted on a day and from that sort with document type GR. If needed you can create variant and pool data as required.
    More can be done if we create new node for extracting such document. Check enhancement in EWM monitor development document in market place.
    Regards
    Suraj 

  • Production costing - report

    Hi All,
            I have newly started working on production - costing report. Please send me any ppt files or pdf files ,, to understand the production costing procedures and concepts.. so that be comfortable in working on that.
    regards and thanks.

    Hi
    I would recommend the product drilldown reports in KKO0...
    For this you will have to do settings in OKN0 (Asisgn a Cost Comp Structure and specify the Product Group)
    After this, execute KKRV to collect the summarized data and then you can use KKO0 reports
    It gives cost of production as per the Cost Comp Str and also the product no, product group, Prod Order etc
    Regards
    Ajay M

Maybe you are looking for