Open Items List Query.

Hi all,
Could you please advise if itu2019s possible to run a query in SAP based on the Open Items List in the reporting area that can detail the following;
Both AR Invoices and Credit Notes and show additional fields, taken from the AR invoice u2013 Account Manager, Item Group and Project Code?
The  Project Code and Item Group can be taken from the Item Line however the Account Manager field is located below the item line area on the contents tab.
Would someone have a query which might enable us to do this or at least give us a directing to go in ?
Thank you,
MB

Hi Matthew,
You can try this one.
It will check if the document is open on document level. The query is written so that it will give a result for every line in the document so you might have a problem if there are many line per document. For the account manager I used Sales person, I am not sure if that is what you mean.
select
'AR Invoice'+' '+(convert(varchar (10), t0.docnum)) as 'Document',
(select t7.slpname from oslp t7 where t7.slpcode = t0.slpcode) as 'Account Manager',
(select itmsgrpnam from oitm t5 inner join oitb t6 on t5.itmsgrpcod = t6.itmsgrpcod
where t5.itemcode = t1.itemcode) as 'Item Group',
t1.project
from
oinv t0 inner join inv1 t1 on t0.docentry = t1.docentry
where t0.docstatus = 'o'
union
select
'AR Credit'+' '+(convert(varchar (10), t0.docnum)) as 'Document',
(select t7.slpname from oslp t7 where t7.slpcode = t0.slpcode) as 'Account Manager',
(select itmsgrpnam from oitm t5 inner join oitb t6 on t5.itmsgrpcod = t6.itmsgrpcod
where t5.itemcode = t1.itemcode) as 'Item Group',
t1.project
from
orin t0 inner join rin1 t1 on t0.docentry = t1.docentry
where t0.docstatus = 'o'
Let us know if it works out.
Jesper

Similar Messages

  • Purchase Oder open item list query

    Hi experts,
    i will like to have a query for open item list for  purchase order which will show the following;
         1. the details of any particular order from a Vendor in terms of:
         a.     How much of it has been delivered
         b.     How much of it is left.
    Of any order at any particular time?
    Urgent Reply will be appreciated.
    Regards
    Justice

    hi
    try this query and update the status
    SELECT T0.[DocNum] as "PO No", T0.[NumAtCard] as "PO Ref", T0.[DocTotal] as "PO Value", T1.[ItemCode] as "Item Code", T1.[Dscription] as "Items", T1.[OpenCreQty] as "Still to be delivered" FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
    Thanks&Regards
    Andakondaramudu

  • Closed SO shown in Open Item List

    Hi experts,
        Unfortunately,  the below problem (mentioned in Note 948670) occurred in my client's database.   
        My question is --> In order to hide this kind of CLOSED sales orders in the Open Item List, can I just change RDR6.status from "O" to "C" ?
    Note 948670 :
    ****Closed documents shown in Open Item List - XXX6 table****
    Symptom
    There are cases where the document is closed, but the sixth table of the document is still open.
    As a result the document is shown in the Open Item List.
    Other terms
    Open document, open item list, 6 table, sixth table, SAP Business One
    Reason and Prerequisites
    Solution
    In order to track these documents the following query should be run on the database:
    USE *DEST*
    -- change DEST to the name of customer's DB.
    declare @doc varchar(3),@fld varchar(10)
    Put document----
    -- enter here the name of the table acording to the list below.
    Set @doc = 'rdr'
    Set @fld = CASE
    WHEN @doc = 'pdn' THEN 'opencreqty'
    ELSE 'openqty'
    END
    exec ('
    SELECT T0.DocNum, T0.DocEntry, T0.DocStatus as ''DocStatus'', T1.Status AS ''Doc6Status''
    FROM O' + @doc + ' T0 INNER JOIN ' + @doc + '6 T1 ON T0.DocEntry = T1.DocEntry
    Where T0.DocStatus = ''C'' AND T1.Status = ''O''
    AND NOT EXISTS
    (SELECT 1 FROM ' + @doc + '1 T2 WHERE T0.DocEntry = T2.DocEntry AND
    (T2.' + @fld + ' <> 0 OR T2.LineStatus <> ''C''))
    You should run the query above on the following tables (documents):
    Rdr - in order to track Sales Order that remained open,
    Dln - in order to track Deliveries that remained open,
    Rdn - in order to Returns that remained open,
    Por - in order to track Purchase Order that remained open,
    Pdn - in order to track Good Receipt PO that remained open,
    Rpd - in order to track Good Returns that remained open.
    If you get results after running the select query, please contact your Support Center

    hi,
    If u update status from open to close directly in db you will lose support,
    Raise support ticket as per note in service market place.
    Jeyakanthan

  • Permanent sorting the open items list by document number descending

    Hello,
    I want to store, that the "Sales -A/R - Sales Report - Open Items List"  is allways sorted by document number descending.
    I am able to sort the list, but the system doesn't store this configuration.
    Next time when I enter the list, I have to sort it again. We use B1 2007A SP01 Patch 7 Hotfix 1.
    Has any one an idea ?
    Regards.
    Michael

    Hi
    U can use Customised query Report to show ur report as per ur format and requirement. But in Normal Report u cant do this...always u have to sort there was no option in standard to save...
    Giri

  • In the open item lists for deliveries they go out though are closed

    En las listas de partidas pendientes para las entregas que salen cuando están cerradas
    Deliveries closed but still show on the Open Item Lists, something would be wrong. It is this what happens to me can you solve it like?

    Dear Mr Molina,
    As you correctly pointed out if a delivery is closed it should not appear in the Open Item List. Would it be possible for you to check the ODLN and DLN1 with a query?
    Please check what the status of the delivery is:
    select docstatus from odln where docnum = 'xxx'
    if the query shows that the document is Open, then you have to investigate how the delivery has been closed in order to be sure that it is indeed closed.
    Do you have a target document that can be reached through the Target Document option from the base document?
    Please, let us know the results of your testings.
    Thank you.
    Marcella Rivi
    SAP Business One Forums Team

  • Open Items List contains closed Document

    Hi guys,
    Hope you can assist?  I have a client with a issue on the Open Items List, whenever she opens the report for A/P Down Payments - Not Yet Fully Applied and A/R Down Payments - Not Yet Fully Applied it brings up a list of Documents but when you view the document the status is Closed.  Some of these transactions are dated back to 2005.
    Have any of you seen this before?
    Regards,
    Desiré Janse van Rensburg

    Hi,
    Please refer my last reply in this thread:
    A/R Down Payment Full Applied - Open Item
    Thanks & Regards,
    Nagarajan

  • Error when opening open item list report

    Hi Experts,
    I was trying to open inventory open item list but I'm getting error. The user is a "super user".
    Thanks,
    Janice

    Hi,
    It is an application error. Check SAP note:
    2008925 - You cannot run the Open Item List report for Purchase
    Requests
    Thanks & Regards,
    Nagarajan

  • [Sales A/R] [Sales Report] [Open Item List] [missing item]

    Dear Expoerts,
    Business One 2005A:
    How to restore or rectify the 'missing item' on the Open Item List?
    There is an item shows Commiited 10 however there is no corresponding Sales Orde.
    Since there is no stock therefore data shows Available -10.
    How can we purge this bug because we tried Goods Issue and Restore, neither methods can do anything about it.
    Your advice will be very much appreciated.
    Kunitomo
    Tokyo, Japan

    Dear Gordon,
    Yes, i'm sure. When i test it, i copy Sales Order (eg. got 5 items - 4 of 5 item is 0 amt)  to Delivery Order (got 5 items - 4 of 5 items is 0 amt). Then i delete the row of 4th & 5th item with 0 amt. 
    FROM Sales order:
    Example: 1) Item A      $1,000.00
                   2) Item B              $0.00
                   3) Item C              $0.00
                   4) Item D              $0.00
                   5) Item E              $0.00
    To Delivery Note:
    Example: 1) Item A      $1,000.00
                   2) Item B              $0.00
                   3) Item C              $0.00
                   4) Item D              $0.00 (Delete row in Delivery Order)
                   5) Item E              $0.00 (Delete row in Delivery Order)
    After i check the Open Item List - the amt, net & tax do not show the figure for this Sales Order. The Sales order just show $1,000.00 in "Original Amount" in Open Item List.
    Please check for me, the SAP B1 system std is like that?
    Thank you.
    Regards,
    Sheon

  • Open Item List Report Display Branch Wise

    Hi,
    I want to restrict user from viewing Open Item List Report For All the Branch.If the user logged from One Location named Kolkata then he will be able to see the Open Item List Report For Kolkata Branch Only
    not the data for all the Branch .How to do this authentication since it is required urgently on Open Item List Report .
    Waiting For Reply ???...
    Regards,
    Amit Sharma

    Hi,
    One Database contains all the branches which is initialised in the Location Master Form .
    I am using one database only
    Regards,
    Amit Sharma

  • Print Layout Designer / Open Items List Report

    When I open the Reports>Sales and Purchasing>Open Items List report - How can I associate a different Print Layout depending on which Document Type is then selected from the drop down list..
    Eg. When I print a list of Open Purchase Orders I want to us a different print template than when I print a list of Open Sales Orders ?
    Thanks for any pointers..
    Karen

    Hello ...
    You must enter the LDP clicking the pencil icon that appears in the toolbar when the window is open open items list.
    Once there, create 2 new text fields, one with the text "Orders" and another that says "Customer Orders". Both fields were identified as Field_XXX and Field_YYY (where XXX and YYY are numbers that appear in their fields)
    There is a field of variable rate system, which is what lets you see the description of the type of document. (Orders, Customer Orders, etc.).. This field corresponds to variable 100 (check it that way), we assume that this field is the field F_ZZZ within the layout.
    Create 2 fields of type formula, the formula to edit it (Field_XXX == Field_ZZZ) and (Field_YYY == Field_ZZZ) respectively.
    Create 2 text fields (these are only to test the application, then to understand the functionality can not delete them or leave them visible). Set in one of these areas, the letter "A" in the second field and set the letter "B". both camps can put one over the other in the layout.
    Now comes the application of the field ... "A" condicionelo one of the formula fields and country "B" condicionelo another formula field. The conditional mode is to set the formula field in the general tab LINK A. ..
    Try then see a preview of both reports and can see that depending on the type of document you will see "A" or "B" as appropriate.
    Apply the same logic as those fields that you will create and generate the difference between formats.
    I hope this will be helpful
    Best Regards,

  • Grouping customers and view customer open items list - Group wise

    Hi.
    I have some requirement from my client.
    He says that he want to view customer open items list group wise.
    In FBL5N we can give the selection of multiple customers. But he wants to group the specific customers and then view the open items for this group.
    For example: Client has 10 customers and out of these customers he wants to select and group 5 customers. And then he want to view open items list for this group.
    Can anyone help me how to group these specific customers in the total customers list. Also request you to provide me the option to view open items for this group of customers.
    Regards,
    Padmavathi

    Hi Padmavathi,
    It is possible. use Worklist for Customers.
    Go to OB55 and define a Worklist for Customers, and mention the list of Customers that you want to see under that Worklist.
    After this, when you to to FBL5N, you will get an option to select Worklist to run the list of open items.. and it would show open items of all customers that you have defined in your worklist.
    Also note that you will have to go to FB00, tab Line Items, and tick Worklists available. This is at User Level, so only that user will be able to see the worklist in his FBL5N transaction code.
    Regards,
    SAPFICO
    Edited by: SAPFICO on Feb 10, 2011 11:43 AM

  • Open Items List Production Orders

    I have been having issues with my inventory quantities.  After a little investigating I have  found that a majority if not all my production orders are within in the Open Items List.  I had the Idea that once you copy from a production order into Receipt from Production the order would then close.  Have I been missing a step in my process? What should I do to stream line and correct the issues?

    Receipt from Production will not close the Order.  You have to change those order status to Closed in order to close them.
    Thanks,
    Gordon

  • Open items list, authorization

    When I give authorization to a user under Authorizations>>Reports>>Sales Reports>>Open Items List - Full Authorization, the Open Items List does not show up in Reports (as it does for the super users). 
    We are using SAP B1, 2007 A, sp: 01 pl: 08.
    Thank you

    Hi Gordon,
    Yes, this user has a professional license.  Under Sales A/R, they can open the Docuemnts Draft Report, Sales Analysis, and Backorder report.
    Another professional license user is also unable to see the Open Items List, even with Full Authorization in the Reports authorization.  The only users that see the Open Items List report are the 2 we have set as superusers.
    Thanks

  • Open Items List- Missing Items

    Dear all,
    In the open items list there is an option in drop down for missing items. When we select the option some items and its details get listed. What is the information being communicated by this selection?
    Thanks in advance

    Hi!
    Select the option Missing Items to display a list of all items with available quantity lower than zero.

  • Open items list with

    HI Experts,
                        want to open items list with customer id,fiscal year,posdting date,document date,currency reference,amount and Gl accounts..
    where i can find and download this..
    i tried through fbl5n but not worked..
    please anyone give me idea from where i can download thgis data into Excel sheet..
    Regards
    PT

    Hi Rau,
                      I tried from se38 but it saying no such reports..
    thansk for your reply.
    as i am not a functional guy..one request came i have to do this.
    Regards
    PT

Maybe you are looking for

  • Unable to Update infotype 586 and 585 through BDC or LSMW

    Dear Sir/ Madam, I am in process of updating actual investment by employee in info type 0586 and 585. I have already inputed the projected investments in 586 & 585 and as per tax tax is computed. Also I have written a LSMW to update in the actual Tic

  • My iPhone 4S keeps turning on and off randomly

    I dropped my iPhone 4S in water two days ago, but I put it in rice almost immediately. It was working fine yesterday, but now it won't stop turning on and off randomly. Like it would stay on for maybe 1-5 minutes, but then the screen will turn weird

  • Please, tool for automatic java source conversion?

    Hi, Apart from Sun's jilkit, do you know a software a software that could take the first java source below as input and automatically produce:      1) a converted java source file similar to the second file below;      2) resource files (e.g. mess.pr

  • Getting java.lang.OutOfMemoryError when deploying

    Hi, I have an ear-file which is not very big, 12Mb, but when I run deploy from Enterprise Manager I get the following error: [2007-maj-09 10:09:50] Binding XXPA_PA140 web-module for application XXPA_PA140 to site default-web-site under context root X

  • Extend System Simple Volume to Non-Contiguous Unallocated Space

    Hi: I have a Windows Server 2008 R2 virtual machine for which I need to extend the system simple volume on a dynamic disk to non-contiguous unallocated space.  I realize 2008 Disk Manager and diskpart cannot accomplish this but that some 3rd party to