Inventory inward pending query report problem

Dear Sir,
                  we are using sap b1 2005 version     7.40.253
             i am opening query manager icon and choose theinventory inward pending report then click ok button the error will be display
1) [Microsoft][sql native client][sql server]conversion failed when converting the nvarchar value '31/05/2014' to data type int. 'Queries'(OUQR) 
and i use the query like this:
select distinct t0.docnum as 'Inventory Transfer Number', t0.filler as 'From Warehouse', t0.u_towhcode as 'To Warehouse',T0.DocDate from owtr t0 inner join wtr1 t1 on t0.docentry = t1.docentry inner join owhs t2 on t1.whscode = t2.whscode where t2.u_whty = 'IT' and t0.docnum not in(select distinct z0.u_bd from owtr z0 inner join owhs z1 on z0.filler = z1.whscode where z1.u_whty = 'IT' and isnull(z0.u_bd,0) != 0)

Thanks for ur valuble support.....
Thats query also working fine sir.....
but the user told the drawback is lot of times repeated the doc number for every item.so pls combine  single document no and display total quantity  need not display item description ......
i want display these colums only:
1.inventory transfer no
2.from where house
3.To where house
4.Posting date
so can you please tell  another query sir .........................

Similar Messages

  • The problem about  integrate  Portal and R/3 : vendor query report problem

    Hi everyone :
       We want to achieve that our vendor can query R/3 report via our Portal. I had done SSO configuration.
       But we had about 500 vendors, it is impossible that we create 500 R/3 users for our vendors,  because the cost is too much .
       And there is another problem, vendor who had the authorization to query report can query the other vendor's data at same time. But we expect that certain vendor can query his data only.
       I think this is a general problem when integrate Portal and R/3, BW .
       Is there somebody had solved this problem or give any advice?
       Any discuss is welcome.
    Best Regards,
    Jianguo Chen

    Hi,
    I would say: get in contact with your SAP account manager anc check which options SAP can offer you...
    Normally every user using a R/3 system has to have a valid user license in that system. Expecially when you want to access control to data on user (vendor) level you nedd to identifiy the user clearly and uniquely which by standard means you need a user for every vendor.
    Hth,
    Michael

  • Query report problem

    I copied all query reports from one old database to another new database using a copy express.
    But while executing the query report in the current new database.
    It is showing an error" FORM NOT FOUND [66000-9]"

    Sometimes the errors provide little information as feedback to correct the problem.  I would suggest that you review the query iin both databases and see if have been copied correctly.  Secondly make sure all field and table references in the query actually exists in the copied database.
    Suda

  • Matrix multiple query report problem

    dear members i have serious problem regarding report as i m usin oracle 10g with developer 6i release2 and i m getting following error while executing teh report out:
    rep-1761: internal error <rgcaag-2> while processing group <g_item_code>
    plz any one hv idea regarding this error so share with me .
    thnx in advance
    Edited by: user581618 on Jul 14, 2012 1:48 AM

    Internal errors usually indicate a bug somewhere.
    What are your exact Reports version, database version and operating system? Developer 6i release2 and 10g are not the exact version numbers.

  • Dynamic query report problem

    I have followed the tutorial in on dynamic query and created a region where the type is SQL Query (PL/SQL function body returning SQL Query)
    The source is
    declare
    q varchar2(4000);
    teatid NUMBER := :P305_TARGET_ID;
    begin
    wwv_flow.debug('teatid = ' || teatid);
    q:=' select f.id, ';
    q:=q||' f.eat_id ';
    q:=q||' from xmlTransactions f ';
    q:=q||' where f.eat_id = ' || teatid; -- I've also tried putting :P305_TARGET_ID here
    wwv_flow.debug('sql = ' || q);
    return q;
    end;
    I have chosen "Use Generic Column Names...".
    When I run the page, I get NO ROWS FOUND. However, when I cut and paste the SQL statement printed out by the debug statement and run it, it returns rows. Both debug statements print correct values.
    I'm not sure what the problem is here, but basically, I want to do a query where I substitute a value passed into the page from another page.
    In this case the value in P305_TARGET_ID is passed in via a button spawning a popup as in var url = 'f?p=&APP_ID.:305:&APP_SESSION.::::P305_TARGET_ID:' + targetID;
    APEX version is 3.0.1.00.08
    Thank you.
    - JohnW

    Hi, JohnW
    I don't understand why you use a dynamic query for that.
    A "direct" SQL query like this :
    select f.id,f.eat_id from xmlTransactions f where f.eat_id=:P305_TARGET_ID;
    should work.
    Mike

  • Inventory inward problem

    Dear Sir,
                      i am opening query manager icon and choose the inventory inward pending report then click ok button the error will be display
    1) [Microsoft][sql native client][sql server]conversion failed when converting the nvarchar value '31/05/2014' to data type int. 'Queries'(OUQR) 

    Thanks for ur valuble support.....
    Thats query also working fine sir.....
    but the user told the drawback is lot of times repeated the doc number for every item.so pls combine  single document no and display total quantity  need not display item description ......
    i want display these colums only:
    1.inventory transfer no
    2.from where house
    3.To where house
    4.Posting date
    so can you please tell  another query sir .........................

  • How to created a Report to calculate On-Hand inventory for pending sales

    hi,
        how to  created a Report to calculate On-Hand inventory for pending sales orders.for this report what are the tables and fields we have to use give me sample report.
    thank you
    radhakrishna.

    Hi!
    Tables:
    VBAK - sales order header data
    VBAP - sales order position data
    VBUK - sales order status header data
    VBUP - sales order status position data
    VBELN field is the key between the tables.
    Statuses in tables VBUK, VBUP: A-uncompleted, B-partially completed, C-fully completed
    Regards
    Tamá

  • Fail to create SQL query report because of ORA-00923

    Hi expert,
    I would like to SQL query report using the following query:
    select min(identified_date) first_identified,
    max(actual_COMPLETE) last_closed,
    count(id) total_issues,
    sum(decode(status,'Open',1,0)) open_issues,
    sum(decode(status,'Pending',1,0)) pending_issues,
    sum(decode(status,'Resolved',1,0)) closed_issues,
    sum(decode(status,'Will Not Resolve',1,0)) not_resolve_issues,
    sum(decode(status,
    'Open',decode(priority,null,1,0),
    0)) open_no_prior,
    sum(decode(status,
    'Open',decode(priority,1,1,0),
    0)) open_prior_1,
    sum(decode(status,
    'Open',decode(priority,'2',1,0),
    0)) open_prior_2
    sum(decode(status,
    'Open',decode(priority,3,1,0),
    0)) open_prior_3,
    sum(decode(status,
    'Open',decode(priority,'4',1,0),
    0)) open_prior_4,
    sum(decode(status,
    'Open',decode(priority,5,1,0),
    0)) open_prior_5
    from SOFTPROJ_issues
    where project_id = :P83_PROJECT
    However, I got the following error during the steps of creation:
    1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-00923: FROM¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿)
    I wonder why if it is getting the error because I could create the report with the following query without problems:
    select min(identified_date) first_identified,
    max(actual_COMPLETE) last_closed,
    count(id) total_issues,
    sum(decode(status,'Open',1,0)) open_issues,
    sum(decode(status,'Pending',1,0)) pending_issues,
    sum(decode(status,'Resolved',1,0)) closed_issues,
    sum(decode(status,'Will Not Resolve',1,0)) not_resolve_issues,
    sum(decode(status,
    'Open',decode(priority,null,1,0),
    0)) open_no_prior,
    sum(decode(status,
    'Open',decode(priority,1,1,0),
    0)) open_prior_1,
    sum(decode(status,
    'Open',decode(priority,3,1,0),
    0)) open_prior_3,
    sum(decode(status,
    'Open',decode(priority,5,1,0),
    0)) open_prior_5
    from SOFTPROJ_issues
    where project_id = :P83_PROJECT
    1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-00923: FROM¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿)
    The difference is to add the followings only:
    sum(decode(status,
    'Open',decode(priority,'2',1,0),
    0)) open_prior_2
    sum(decode(status,
    'Open',decode(priority,'4',1,0),
    0)) open_prior_4,
    Does anyone have any idea to resolve the issue?
    Thanks in advance,
    Rui

    By putting a comma after open_prior_2:
    sum(decode(status,
    'Open',decode(priority,'2',1,0),
    0)) open_prior_2,Sima

  • Pending quantity report for a manufacuting firm

    Hi Guys,
    I need a report to know the daily pending quantity report for a manufacturing company..
    I have tried a query and to some extent its working fine.. i need some more changes in the query.
    The report should be look lie below,
    ITEMCODE,ITEMNAME,ORDERED QUANTITY,ORDERED VALUE,SALES QTY(DELIVERED QTY),SALES VALUE,PENDING QTY,PENDING VALUE ,SHORTFALL(IF THE INSTOCK QTY IS LESS THAN PENDING QTY).
    Here there are using 5 different price lists.
    and the above report has to be classifed seperately for each price list seperately and also in the given period if there is a item which has not been ordered then it also be needs to list in the report with eventhoug it dont have any values .
    Could anybody pls modify the below query.
    SELECT T1.ItemCode, Max(T1.[Dscription]) As 'Item Description' ,t3.price as 'Unit Price/PC',Sum(T1.[OrderedQty]) as 'Ordered Qty' ,(Sum(T1.[OrderedQty]) * t3.price ) as 'Ordered Value' , Sum(T1.[Quantity]) as 'Del Qty',(Sum(T1.[Quantity]) * t3.price) as 'Sales Value',(Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) as 'Pending Qty',((Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) * t3.price) as 'Pending Value',T2.OnHand, (T2.OnHand - (Sum(T1.[Quantity]) - Sum(T1.[OrderedQty]))) as 'SHORT'
    FROM ODLN T0 
    INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
    inner join itm1 t3 on t1.itemcode = t3.itemcode
    inner join opln t4 on t3.pricelist = t4.listnum
    WHERE T0.[DocDate] >=[%0] AND  T0.[DocDate] <=[%1] and t4.listname = '[%2]'
    Group By T1.ItemCode,T2.OnHand,t4.listname,t3.price

    Try this query
    SELECT T1.ItemCode, Max(T1.[Dscription]) As 'Item Description' ,t3.price as 'Unit Price/PC',Sum(T1.[OrderedQty]) as 'Ordered Qty' ,(Sum(T1.[OrderedQty]) * t3.price ) as 'Ordered Value' , Sum(T1.[Quantity]) as 'Del Qty',(Sum(T1.[Quantity]) * t3.price) as 'Sales Value',(Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) as 'Pending Qty',((Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) * t3.price) as 'Pending Value',T2.OnHand, (T2.OnHand - (Sum(T1.[Quantity]) - Sum(T1.[OrderedQty]))) as 'SHORT'
    FROM ODLN T0 
    INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
    left join itm1 t3 on t1.itemcode = t3.itemcode
    left join opln t4 on t3.pricelist = t4.listnum
    WHERE T0.[DocDate] >='[%0]' AND  T0.[DocDate] <='[%1]' and t4.listname = '[%2]'
    Group By T1.ItemCode,T2.OnHand,t4.listname,t3.price
    union all
    select B.ItemCode, B.ItemName,D.Price,SUM(C.OnOrder), 0,0,0,0,0,SUM(C.OnHand),SUM(C.OnHand)-SUM(C.OnOrder)
    from OITM B
    INNER JOIN OITW C ON B.ItemCode = C.ItemCode
    INNER JOIN ITM1 D ON C.ItemCode=D.ItemCode
    WHERE B.ItemCode NOT IN (SELECT T1.ItemCode FROM ODLN T0 
    INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
    left join itm1 t3 on t1.itemcode = t3.itemcode
    left join opln t4 on t3.pricelist = t4.listnum
    WHERE T0.[DocDate] >='[%0]' AND  T0.[DocDate] <='[%1]' and t4.listname = '[%2]' )
    GROUP BY B.ItemCode, B.ItemName, D.Price
    Regards,
    Bala
    Edited by: Balakumar Viswanathan on Nov 15, 2010 4:23 PM

  • Query Report:To Retrieve Data from A/R Invoice and A/P Invoice

    Hii Experts,
          I am a new Sap B1 Trainee.I am facing a problem when retrieving data from A/R Invoice and A/P Invoice in order to track
    Expenditure and Revenue according to a Bussiness partner,
    I am using union to retrieve the information,but it is saying a error that  Error Converting Varchar to Numeric and also
    i would like to know how can i show the total final payment by reflecting Downpayments in A/R Invoice and A/P Invoice
    With Regards
    Cherry.

    Hii.
    My Sap B1 version is 8.8.1 and patch level is 20. Actully i need a scenario where i can able to show both Expenditure and Revenue of a particular bussiness partner and profit/loss in a single query report.
    I need some tips regarding this,When i am doing union i am getting conversion error converting varchar to numeric when i take
    Sum(Line Total) from OINV and Sum(line total) OPCH group by docdate and docentry and BP .
    and another scenario is how to deduct A/P downpayment or A/R downpayment from A/P invoices and A/R invoice to get the final Revenue and Expenditure ..
    Thanks & Regards
    Cherry

  • UDF Value is not coming in the query report

    Hi all,
    i have designed query report based on AR Invoice which has some UDF .
    all udf have FMS applied and all these udf has values.
    when i run report some times udf values are coming in the report and somtimes not even if udf contains values.
    if i open perticular invoice and again update that udf and again run report now udf value will come in the report.
    every time i need to manualy update the udf even if that udf contain value.
    how to avoide this problem.
    Pls suggest solution.
    Regards,
    Chetan

    Hi Chetan,
    Try this,
    -> Open the require document(module).
    Assign this procedure and then ADD the document
    and Run the Query Report.
    1. Goto the UDF and Click (ShiftAltF2).
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query in UDF.
    4. Select the AUTO REFRESH WHEN FIELD CHENGES.
    5. Select the Auto Refresh Field (for example CardCode (or) Remarks).
    6. Check the Display Saved Values.
    OR
    -> Open the require document(module).
    1. Goto the UDF and Click (ShiftAltF2).
    2. When will you add the document at that time
    you can Click the SHIFT + F2 and than ADD the document.
    and than Run the Query Report.
    Regards,
    Madhan.

  • Pending Delivery Report

    Hi Friends,
    How to get pending Delivery report ? Plz help me friends...If have u any query which is useful for me...pl send.....
    Waiting for your quick response.
    Regards,
    Swapnika

    Moderator message - Please do not post your requirements and ask the forum to do your work for you. Also, do not use all caps  - post locked
    Rob

  • Error running a query and creating a query report.

    Hi all
    I have a problem with a query when I'm running it or trying to create a report for it.
    23/09/2009  11:47:31: 1). [Microsoft][SQL Native Client][SQL Server]Arithmetic overflow error converting expression to data type datetime.
    'Document' (RDOC) -- Run query
    23/09/2009  11:01:58: 1). [Microsoft][SQL Native Client][SQL Server]Invalid object name 'CSHS.T0'.
    2). [Microsoft][SQL Native Client][SQL Server]Statement 'Received Alerts' (OAIB) (s) could not be prepared. - create a query report
    This happened on a Windows Server 2003 OS , when I ran the same query on local pc on xp it ran fine on both scenarios.
    Please help
    Bongani Dlamini

    select SlpName, ItmsGrpNam, sum(LineTotal) as 'Total Sales Minus Returns'
    from
    SELECT T4.SlpName, T3.ItmsGrpNam, T0.LineTotal FROM dbo.INV1 T0 INNER JOIN dbo.OINV T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode WHERE T1.DocDate >=[%0] and T1.DoCdate<=[%1]
    UNION
    SELECT T4.SlpName, T3.ItmsGrpNam, (T0.LineTotal * -1) AS 'LineTotal'
    FROM dbo.RIN1 T0 INNER JOIN dbo.ORIN T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode WHERE T1.DocDate >=[%0] and T1.DoCdate<=[%1 ]
    ) InvoicesMinusReturnsDerivedTable
    group by slpname, ItmsGrpNam

  • Issue in transaction code creation for sap query report .

    Hi  Gurus,
    I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
    1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
    2) By using parameter transaction options in start object of se93
    What are the difference between creation of these two ways. Please specify  the advantages and disadvantages of both methods.
    Regards,
    Suneel Kumar Uggina.

    Hi Jogeswara Rao,
    But I am getting problem while transporting form development system to  the production system. After transporting to Production system  I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And  I would like to know  on what conditions should I have to  use the First one  and as well as a second one in sap query reports.
    Thank You,
    Suneel Kumar Uggina.

  • Multi-query reports in Reports 3.0

    When I run multi-query report in Reports 3.0 the report runs
    correctly when I first load the report. However, when the report
    is run for a second time the sub-queries do not appear to execute
    and the report does not give a complete output, if any.
    null

    Hello Mike,
    Whenever you work on multi-query reports you have to set all
    the relationship within the tables. If you have not specified
    then specify within the where clause.
    Try this. I hop your problems get solved.
    From Subash.
    Mike Donnerstag (guest) wrote:
    : When I run multi-query report in Reports 3.0 the report runs
    : correctly when I first load the report. However, when the
    report
    : is run for a second time the sub-queries do not appear to
    execute
    : and the report does not give a complete output, if any.
    null

Maybe you are looking for

  • Column not available after personalization to be included in user views

    My client is trying to add a new column in the Cost Details table in the Task Summary page (Under Project Performance Reporting in PJT) through personalization. They are on 11i.PA.RUP3 They have an extended VO which basically is based on the standard

  • Using speakerphone with flip closed

    Unlike any other flip phone I have used I am unable to activate the speakerphone and then close the flip while on a call. I activate the flip by pressing the (.OP) key and the try to close the flip and it disconnects the call.... Is there a way aroun

  • PrintJob() not displaying dynamically loaded images

    Hi all, I have an image-loading function given to me by a coworker that I'm using to load and smooth external images. It works great. However, when I go to print the slideshow I've created, I cannot figure out how to get these images to display. I'll

  • Which stage the Prompt will be performanced?

    When I set a Prompt with a default value, is the Prompt will be performanced at database side? Or it will be performaced at BIEE Server side after the SQL results have been loaded here? Due to the tuning of BIEE is a big issue now, and I can't find a

  • SHD0 - Developer or Analyst Role?

    Experts:  We all have worked in various companies throughout our careers.  We know that certain companies allow developers more access to certain SAP transactions while other companies limit what we can do.  The same holds true for functional analyst