Warehouse wise Detailed query Report

Please share detailed report on Warehouse wise, it consists of Purchase,Goods Receipt, Inventory Transfer,Invoices, sales return

Hi Jain,
Execute the query in RSRT or in RRMX. To Check how much time it is taking to execute this querry?? To get this information, Goto SE11> Give table name RSDDSTAT_DM in BI7.0 or RSDDSTAT in BW3.x> Display -> Contents-> Give from date and to date values as today, user name as Ur user name, and give the query name--> execute.
Now u'll get a list with fields like Object name(Report name), Time read, Infoprovider name(Multiprovider), Partprovider name (Cube), Aggregate name... etc. If the time read is less than 100,000,000 (100 sec) is acceptable. If the time read is more than 100 sec then it is recommended to create Aggregates for that query to increase performance.
Here in this table u'll find detailed Query Runtime Statistics.
Hope thsi helps you..
Regards,
Ramki.

Similar Messages

  • Sales Analysis Report service warehouse wise

    Dear Experts,
    I've configured 4 service warehouses to an item  in SAP B1 8.8 PL:16.  And now I want to see sales analysis report of that particular item against each service warehouse. But from the Sales Analysis or purchase analysis report I can't able to see service warehouse wise sales quantity & amount.
    N.B.-Those items are created as Sales & Expense item only, no inventory.
    Plz help.
    Subrata

    Hi Subrata,
    in this case you need a customized report trough Query or through Crystal Report.
    regards,
    Fidel

  • Stock report warehouse wise for a particular batch

    Hi all,
    How do you find out a stock report warehouse wise for a particular batch along with the same batch items sold to whom and with what quantity?
    Thanks
    SV Reddy

    Hi SV Reddy
    pls find the query for stock report
    Select X.DocDate, X.ItemCode,
    ((Select isnull(sum(InQty-OutQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode  And
    (T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate < X.DocDate)) As [OpeningStock],
    IsNull(sum(X.InQty),0)As[Received Qty],IsNull(sum(X.OutQty),0)As[Consumed Qty],
    ((Select isnull(sum(InQty-OutQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode  And
    (T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate < X.DocDate)+
    (Select isNULL(sum(T0.InQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode And T0.DocDate<=X.DocDate And
    (T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate = X.DocDate)-
    (Select isNULL(sum(T0.OutQty),'0')From OINM T0 Where T0.ItemCode=X.ItemCode And T0.DocDate<=X.DocDate And
    (T0.DataSource='I' or T0.DataSource='N')  And T0.DocDate = X.DocDate))As [ClosingStock]
    FROM OINM X Where ItemCode=X.ItemCode And
    (X.DataSource='I' or X.DataSource='N')
    Group by X.DocDate,X.ItemCode
    Order by X.DocDate
    regards
    Jenny

  • V IMP : Report for Cash Customer Bill wise details

    Hi ABAP Gurus,
    Any body is having the report on Cash Customer Bill wise Details (with invoice details) ? Input criteria - Company Code, Plant, Cash Customer Name(customer Name given while creating cash customer) & Date Range(Document date). I am using the tables BSEC,BKPF,VBRP,BSAD,BSID. Out put i have to get Date, Doc No, Particulars QTY UOM Material Rate and Gross amount(Opening & Pending Amount) as line items.
    Please send me code on this. It's very urgent. Tomorrow is it's delivery date.
    I will reward points.
    My mail ID is [email protected]
    Thanks and Regards,
    Sundeep.

    Hi,
    Check the following links:
    http://www.sap-img.com/sap-fi.htm
    http://www.sapbrainsonline.com/TUTORIALS/FUNCTIONAL/FI_tutorial.html
    Regards,
    Bhaskar

  • Stock movement report date and warehouse wise

    I need this report date wise and warehouse wise...
    please help ..
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Whse nvarchar(10)
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    select @Whse = Max(s2.Warehouse) from dbo.OINM S2 Where S2.Warehouse = '[%2]'
    Select @Whse as 'Warehouse',
    a.Itemcode,
    max(a.Dscription) as ItemName,
    sum(a.OpeningBalance) as OpeningBalance,
    sum(a.INq) as 'IN',
    sum(a.OUT) as OUT,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing
    --(Select i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
    from( Select N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    (sum(N1.inqty)-sum(n1.outqty))as OpeningBalance, 0 as INq, 0 as OUT From dbo.OINM N1
    Where N1.DocDate < @FromDate and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,
    N1.Dscription Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance,
    sum(N1.inqty) , 0 as OUT From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <= @ToDate
    and N1.Inqty >0 and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance, 0 , sum(N1.outqty) as OUT
    From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and N1.OutQty > 0
    and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
    where a.ItemCode=I1.ItemCode
    Group By a.Itemcode Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0 Order By a.Itemcode

    please advice.. - wrong out put.
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
    select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
    select
    a.Itemcode, a.warehouse,a.price as 'Item Cost',
    max(a.Dscription) as ItemName,
    sum(a.OpeningBalance) as OpeningBalance,((sum(a.OpeningBalance) *a.Price)) as 'Opening STock Value',
    sum(a.INq) as 'IN',
    sum(a.INq)*a.Price as 'IN Stock Value',
    sum(a.OUT) as OUT,
    sum(a.OUT)*a.Price as 'OUT Stock Value',
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT))*a.Price as 'Closing Stock Value'
    --(Select i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
    from( Select N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,n1.Price,
    (sum(N1.inqty)-sum(n1.outqty))as OpeningBalance, 0 as INq, 0 as OUT From dbo.OINM N1
    Where N1.DocDate < @FromDate  Group By N1.Warehouse,N1.ItemCode,n1.Price,
    N1.Dscription
    Union All
    select N1.Warehouse, N1.Itemcode, N1.Dscription,n1.Price, 0 as OpeningBalance,
    sum(N1.inqty) , 0 as OUT From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <= @ToDate
    and N1.Inqty >0  Group By N1.Warehouse,N1.ItemCode,N1.Dscription,n1.Price
    Union All
    select N1.Warehouse, N1.Itemcode,N1.Dscription,n1.Price, 0 as OpeningBalance, 0 , sum(N1.outqty) as OUT
    From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and N1.OutQty > 0
    Group By N1.Warehouse,N1.ItemCode,N1.Dscription,n1.Price) a, dbo.OITM I1
    where a.ItemCode=I1.ItemCode
    Group By a.Itemcode,a.warehouse,a.Price
    Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0 Order By a.Itemcode

  • Vendor wise product wise details report

    Dear all,
    please give me any standard report for vendorwise product wise details. and also  customer wise and product wise details report.

    Pls have a look on the blw link which is the std sap reports, its provided by sap.. hope it will be helpful for u.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erplo/sapStandardReports

  • REPORT ON G/L accounts with plant wise details .

    HI ,
    Kindly provide me some standard reports in which i can see the G/L accounts with plant details.
    thanks

    Dear Muskan,
    you can use FBL3N only with GL code provided and from dynamic selection you can add business area or Business place or profit center, which ever is applicable, from change layout. then set filter on these fields, to get the Plant wise details.
    you might be knowing that 4.7 SAP use business area concept to bifurcate the line items. and in 6.0 profit center is used for same. FAGLL03 can be used for checking The smae on Profit center level.
    Regards
    Ashok kumar

  • Query Report  For  a Forecast

    Hi Members,
    I want a Query report showing items Consumption From A to Z for a proposed Forecast, that mean when i plane Finish items like this in MRP forecast, for a one month
    Item - Qty For September
    A - 20
    B - 10
    A,B are Finish items which having BOM,
    BOM are contains several components items
    i want a report giving details of item wise total
    requirement for the above forecast,in this case we should not consider present stock, purchase order,sales orders. so please help me to do it.
    tell me how can i do it with a query .
    thank you,
    saman
    Edited by: saman_wm on Aug 8, 2011 8:36 AM

    Hi,
    Have you started with query regarding the data which you want. if yes, you can post here and members can check the same and help you out with.
    If you have not started then you can check following tables :
    OFCT, FCT1, OITM, ITM1, OMSN, MSN2, OITT, ITT1
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Last Purchase price Warehouse wise for given date

    Hai all....
                      I Want query report for Last purchase price for all items, warehouse wise for given date, i tried following query
    SELECT
    T10.ItemCode,
    (Select i1.Itemname from  oitm i1 where i1.itemcode = T10.[ItemCode]) as 'ItemName',
    T10.[Whscode],
    (SELECT T1.[DocDate] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'Doc_Date',
    (SELECT T1.[DocNum] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'GRPO_NO',
    (SELECT case avg(T2.[Rate]) when 0 then avg(T2.[price]) else (avg(T2.[price]) * isnull(avg(T2.[Rate]),1)) end  FROM PDN1 T2 where  T2.[DocEntry] = max(T10.[DocEntry])
    and T2.Itemcode = T10.[ItemCode]) as 'Unit_Price',
    (SELECT isnull(avg(T3.[Rate]),0) FROM PDN1 T3 where  T3.[DocEntry] = max(T10.[DocEntry])
    and T3.Itemcode = T10.[ItemCode]) as 'CurrencyRate',
    (Select isnull(max(OP1.Docnum),0) from OPCH op1 where op1.Docentry in
    (SELECT T12.[trgetEntry] FROM PDN1 T12 where  T12.[DocEntry] = max(T10.[DocEntry]))) as 'Invoice_No'
    FROM PDN1 T10 
    INNER JOIN OPDN T11 ON T10.DocEntry = T11.DocEntry and T11.[DocType] = 'I'
    where T11.Docdate <= '[%0]' and t10.targettype <> 21
    GROUP BY
    T10.[ItemCode],T10.[Whscode]
    this query working good but problem in this query is ,when the user put back dated entry means this report will show wrong value,bcz i write this query based on MAX of docentry please help me to solve this issue
    Edited by: Prasanna s on Mar 27, 2009 5:49 AM
    Edited by: Prasanna s on Mar 27, 2009 8:00 AM

    Hai ...
    please help me in this query,my question is not clear or??

  • Stock Aging Query/Report

    Dear all,
    We are on SAP B1 2007 PL42 and using Moving average as our cost valuation method.
    It doesn't have an inbuilt stock aging report, I have searched through the forum but none of the queries arebshowing the correct aging of stocks. Could anyone have a query/report/addon for stock aging?
    Kind Regards,
    Asif

    Hi,
    Try this one,with warehouse code as input parameter
    select b.code, b.name, b.Wh, b.Bal, b.Val,
    isnull(case when b.days <30 then b.bal end,0)'0-30 Days' ,
    isnull(case when b.days between 30 and 60 then b.bal end,0) '30-60 Days',
    isnull(case when b.days between 60 and 90 then b.bal end,0) '60-90 Days',
    isnull(case when b.days between 90 and 120 then b.bal end,0) '90-120 Days',
    isnull(case when b.days between 120 and 150 then b.bal end,0) '120-150 Days',
    isnull(case when b.days between 150 and 180 then b.bal end,0) '150-180 Days',
    isnull(case when b.days >180 then b.bal end,0) 'Above 180 Days'
    from (
    select a.code,a.name,a.wh,a.bal,a.val,datediff(dd,dt,getdate())'days'
    from (
    select max(t0.itemcode)'Code',max(t0.Dscription)'Name',
    max(t0.Warehouse)'Wh',
    sum(t0.inqty-t0.outqty)'Bal',sum(t0.transvalue)'Val',max(t0.docdate)'dt'
    from oinm t0 inner join oitm t1 on t0.itemcode=t1.itemcode
    where t0.warehouse='[%1]'
    group by t0.itemcode
    )a
    )b order by code

  • PO (Line Items wise) Payment Status Report

    Hi Friends,
    Is it possible to get a PO (Line Items wise) Payment Status Report.
    My client wants PO Line wise payment status as a MM report development.
    We have Down Payment, Residual & Retention money as a business practise with our vendors
    Following is the MM-FI flow in our company code..
    Create & Release PR u2013 MM - Creating PR
    Create & Release PO (ME21N) u2013 MM u2013 Creating PO
    F-47 Down Payment Request u2013 MM u2013 Creating DPR
    F-48 Post Vendor Down Payment u2013 FI - Posting DPR
    FBZ5 Print Check for Payment Document u2013 FI - For printing cheques for DP only
    MIGO/ML81N, GR u2013 MM u2013 SES/GR for PO
    MIR7/MIR6 IR - MM/FI u2013 Parking & IR
    F-44 Clear Vendor u2013 Linking advance with IR (as residual clearing)
    F-53/F-58 u2013 Posting Payments after deducting Retention
    F-04 Post with Clearing u2013 Clearing Outgoing account entries with Main account
    Thanks in advance.
    Regards,
    Vikrant Sood

    as per my knowledge you can configue a new Z table or prepare a Query using EKPO table you will your desired result.
    regards,
    Ninad Kshirsagar

  • Details of Reports scheduled on SSRS (Report name, userdetails, frequency, etc)

    Hi all,
    Is there a way to find all SSRS scheduled reports details such as (Report Name, schedule time, mail IDs configured, etc.)?
    Please help as we have many SCCM reports on SRS, and manual work will take very long time..
    scorpITs | http://scorpITs.blogspot.com

    Hey ucrajee,
    Here is simple SQL query which will give you details on report subscription along with Subscription type, render format, next run date, time, email ID configured with subscription etc. 
    You need to run this SQL Query on your report server database.
    SELECT
    c.Name AS ReportName,
    'Next Run Date' = CASE next_run_date
    WHEN 0 THEN null
    ELSE
    substring(convert(varchar(15),next_run_date),1,4) + '/' +
    substring(convert(varchar(15),next_run_date),5,2) + '/' +
    substring(convert(varchar(15),next_run_date),7,2)
    END,
    'Next Run Time' = isnull(CASE len(next_run_time)
    WHEN 3 THEN cast('00:0'
    + Left(right(next_run_time,3),1)
    +':' + right(next_run_time,2) as char (8))
    WHEN 4 THEN cast('00:'
    + Left(right(next_run_time,4),2)
    +':' + right(next_run_time,2) as char (8))
    WHEN 5 THEN cast('0' + Left(right(next_run_time,5),1)
    +':' + Left(right(next_run_time,4),2)
    +':' + right(next_run_time,2) as char (8))
    WHEN 6 THEN cast(Left(right(next_run_time,6),2)
    +':' + Left(right(next_run_time,4),2)
    +':' + right(next_run_time,2) as char (8))
    END,'NA'),
    Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="TO"])[1]','nvarchar(50)') as [To]
    ,Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="CC"])[1]','nvarchar(50)') as [CC]
    ,Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="RenderFormat"])[1]','nvarchar(50)') as [Render Format]
    ,Convert(XML,[ExtensionSettings]).value('(//ParameterValue/Value[../Name="Subject"])[1]','nvarchar(50)') as [Subject]
    ---Example report parameters: StartDateMacro, EndDateMacro &amp; Currency.
    ,Convert(XML,[Parameters]).value('(//ParameterValue/Value[../Name="StartDateMacro"])[1]','nvarchar(50)') as [Start Date]
    ,Convert(XML,[Parameters]).value('(//ParameterValue/Value[../Name="EndDateMacro"])[1]','nvarchar(50)') as [End Date]
    ,Convert(XML,[Parameters]).value('(//ParameterValue/Value[../Name="Currency"])[1]','nvarchar(50)') as [Currency]
    ,[LastStatus]
    ,[EventType]
    ,[LastRunTime]
    ,[DeliveryExtension]
    ,[Version]
    FROM
    dbo.[Catalog] c
    INNER JOIN dbo.[Subscriptions] S ON c.ItemID = S.Report_OID
    INNER JOIN dbo.ReportSchedule R ON S.SubscriptionID = R.SubscriptionID
    INNER JOIN msdb.dbo.sysjobs J ON Convert(nvarchar(128),R.ScheduleID) = J.name
    INNER JOIN msdb.dbo.sysjobschedules JS ON J.job_id = JS.job_id
    Let me know if you have any queries.
    Thanks,
    Sandip Shinde(Blog:bi-bigdata.com|Twitter:@CloudBI_Sandip)

  • Transaction code for SAP query reports

    Hi All,
    I am trying to create transaction code for sap query report but couldn't go further.
    1) Created User group in SQ03
    2) Created infoset in SQ03 and assigned that to the user group
    3) Created query in SQ01 using the infoset.
    I executed the report in SQ01 and it is working fine.
    Now I try to create a transaction code in SE93 using the steps mentioned in the following link:
    Assign transaction code to SAP Query (created via SQ01)
    But when try to execute the report using the transaction code, it is giving error message 'User group xxxxxx is not yet created'
    Could any one advice me if I miss something? Or please help me to create this transaction code and transport to production?
    Thanks in advance

    HI,
    based on the thread you've already mentioned:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-EXTDREPORT = Name of the Query
    D_SREPOVARI-REPORT = User Group
    So check if the user group is typed correct in SE93 and check also if the user group exits in the system where you are trying to run the transaction.
    best regards, Christian

  • Automating ADHOC query reports to generate Emails

    Hi Experts
    Hope you guys are doing fine.
    I have a requirement where we need to automate the ADHOC query reports to trigger emails with the Excel attachment of the report to a set of users.
    To explain in detail,we have some adhoc queries which are run manually on monthly basis(by our functional guys).Once the output report is generated,they used to download them into Excel document and send that to a set of users as an email attachment.
    Now we are planning to automate the entire process,so that these query reports once set to run on monthly basis should trigger emails to set of users with the excel attachment.
    Now,i am looking for solution on how to proceed on this.Since the program behind the query(which starts with AQ*) is not be a modifiable program,i can write any custom code here.Alternately,i planned to set a background job which runs the query and then use a  custom pgm which reads the spool no for the pgm and then to read the data from the spool into an internal table and then use a FM to send the internal table data as an email attachment.But wasn't sure of what FM's to use to read the spool no. and data from the spool.
    Is there any alternate way to work on this or any suggestions on my assumed process would be really appreciated.
    Thanks

    Ok, here's what you do:
    - Go to T/C: SQ01 and find your query
    - From the menu at the top select Query>More functions>Display Report Name (copy the report name)
    - Go to Transaction SO23 and create a new shared distribution list - give it a name and title, click the dropdown on folder and click the create folder button, give the folder a name and save/green tick.
    - Click on the Dist. list content tab and enter all the external email addresses that the report should go to ( the recipient type should be internet address or via internet or something like that)
    - Go to Transaction SM36 and click on the Job wizard button, go through the wizard entering the program name we copied earlier. In the print parameters section make sure it is set to print immediately, then on the spool list recipients button select the dropdown box, select distributions lists and find the one you created earlier. Define the variants, periods, time etc etc
    - When the job runs it will process the output via SAPConnect (transaction SCOT) you will be able to see the status of the emails by going to transaction SCOT and selecting the menu option Utilities>Overview send requests.
    Job Done, Chillax
    PS: remember the output type of the query in SQ01 needs to be set to excel or whatever you require otherwise a PDF/html attachment will be created in the email.
    PPS: If SAPConnect is not set up in your system speak to your basis guy to set it up - If you don't have any basis resource, it is really easy to set up, plenty of guides around.

  • Customer master Query report doesnt pick all the customer account groups

    Hello experts
    We have a custom Query report created using customer master tables KNA1,KNVV,KNB1 etc. We have customers maintained under 5 customer account groups. One of the selection fields in the query is account group. But it displays customers only in 4 of the 5 account groups for some reason, even though we have customers maintained in that group(prospective customers).
    Any reason why this could occur? How do i ensure that customers from all account groups are visible?
    Thanks in advance

    Hai Ravi
    In SAP query if you join
    KNA1 - KNB1- KNVV
    General - Sasles data - company data
    May be your 5th Account type is created without company code data.
    The query will display only if the data is linked in all tables.
    In case if you don't have company code data but you want the details of the account group customer
    In the query join screen.
    Right click on the joining line between KNB1 and KNVV  and select Left outer join.
    Now run the report , it will show all the account group data.
    Regards,
    Mani

Maybe you are looking for

  • Strange error in sql*plus in a line with "&"

    Hi friends, this error is very strange: Open your SQL*PLUS. write this: DECLARE V_1 VARCHAR2(10); V_2 VARCHAR2(10); BEGIN V_1:=&var1; --V_2:=&var2; END; Why it ask me for a value to var2 ??????????? Does it ignore the -- at the begining of the line (

  • How can I make the wireframe identical for various video clips?

    Hello, For the end credits on a small movie, I would like the video clips to be much smaller, and the background to be black. I know how to make the clips smaller on the screen, and this is done by adjusting the wireframe. I am trying to have the wir

  • Connect to a backend system with the BI connector via Visual Composer

    Hi all, I set up a system landscape on my notebook with the NW2004s ABAP as NSP and with the NW2004s JAVA SP7 as J2E. Both systems are integrated in the SLD, this is set up. Furthermore I installed a BI system alias as NSP_XMLA in the portal with the

  • File directory on a JSP

    Hi, I need to put a file directory on a jsp page. Does anyone know how to do that or have an example? thanks, Marc

  • A question with Oracle

    Hi,all When I want to get columns of each table in Oracle,I just success in those tables with upper-case table-name. The driver I use is JdbcOdbcDrive. My question is how can I get columns of others.