Adding a button to the Open Items List

Hiya everyone,  I am trying to add a button to the Open List Items form (formType - 152) which is located in Reports -> Sales & Purchasing -> Open Items List.  When I attempt to add a button to that particular form it does not appear.  The only form I seem to be be able to add a button to is on the main menu.  I have added my code below:
Private Sub CreateMySimpleForm()
        Dim oItem As SAPbouiCOM.Item
        Dim oButton As SAPbouiCOM.Button
       oForm = SBO_Application.Forms.ActiveForm
        oItem = oForm.Items.Add("80", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
        oItem.Left = 6
        oItem.Width = 65
        oItem.Top = 51
        oItem.Height = 19
        oButton = oItem.Specific
        oButton.Caption = "View Document"
    End Sub
Has anyone got any ideas.....Thanks

I have discovered that the button appears if the Open List Items window is open when I run my code so the button can actually appear on that form.  However, how do I change this line :
oForm = SBO_Application.Forms.ActiveForm
so that it specifies that the button will appear only on the Open List Items form.  When I change that line to:
oForm = SBO_Application.Forms.GetForm("152",1 )    ....it keeps on complaining that it cannot find that form. 
I'm not sure what the Count is supposed to be in:
GetForm(Type As String, <b>Count</b> As Integer) 
If anyone could help me out I would be grateful.....Thanks

Similar Messages

  • Closed base Document appears in the open item list

    Hi all,
    While we are fully copying a base document to a target document, the base document header and rows will be closed, but it will appear in the open item list report.
    So the customer has created a Sales Order -> Delivery -> A/R Invoice.
    The Sales Order document status gives 'Closed', but still appears in the Open Item list (Sales - AR --> Sales Reports --> Open Items List).
    The customer using: SBO2005A PL22
    Further i also have looked in the SAP Notes (Note 1083366) but i can't solved it.
    Thanks in advance.

    Chief,
    In open items list of sales order,
    *select reqd. sales order,net amount,tax & total amount open in
    sales order,
    also open delivery document & compare with it,
    there must be difference in tax total/total/they
    must have changed quantity,unit price,date,changed payment terms/tax codes which causes delivery created without reference to sales order.
    That's why sales order is open.
    You can manaully close sales order by Data-->Close.
    Jeyakanthan

  • DELVERIES CLOSED GO OUT IN THE OPEN ITEM LISTS

    IN THE OPEN  ITEM LISTS  FOR DELIVERIES THEY GO OUT THOUGH ARE CLOSED

    Dear Victor,
    please note that this particular forum is meant for product development collaboration. This means if you require a functionality that at present is not available or incomplete, you post your specific request here.
    For questions regarding existing functionalities, please use the appropriate forum, in this particular case 'SAP Business One Core'.
    All the best,
    Kerstin

  • 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

  • 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

  • Attachment indicator in the open items list (TA: FBL5N)

    Hello,
    We need in the transaction FBL5N in the list open items a column with an indicator for attachments.
    Attachments are for example PDF documents, which we attach in a booking document.
    Ist there a possiblility to have in the list for open items an indicator for attachments?
    Thank you for response.
    Kind regards
    Ina Morgenstern

    Hi Ina,
    I think I saw something on the forum quite a while back about using BADI FI_ITEMS_MENU01 or something like that. There you might be able to create an icon that calls the object services with your attached documents. Have a search through the forums.
    Kris

  • 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

  • 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

  • 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

  • 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.

Maybe you are looking for