SAPB1-2005

Hi,
i created the UDO object and Table as "document"
i want to see all the data in Grid. and i want to update data in that grid itself.
atlast i want to press "update" button it will update in the database.
for this, i took SDK Sample example. ""Matrix and Datasources"
but data is not getting updated in that database. why? Data is not getting save.
but after pressing UPDATE , " operation completed successfully" message is comming. but data is not stored in database.  plz help me.
plz help me asap.
regards
Ravikumar

Hi Ravikumar,
<b>Please be more specific in the subjects of your posts!!!!</b>
Datasources ARE only "Sources" - not "Sinks" in general.
You have to specify the (UDO or B1) object type for the form.
...and the Grid (as discussed I think a couple of times in this Forum) does not work with UDOs (so far...); you will have to use DI API to save the data...
Please(!) check out the E-learning here and the information available in SDK Helpcenter (Tutorial, HowTos etc).
...and don't be confused by the " operation completed successfully" message...
HTH,
Frank

Similar Messages

  • SAPB1 2005 B in windows 2008 server

    Hi Friends,
                  SAPB1 2005 B & 2007B Is it working on Windows 2008 server, i have seen in sizing guide given by SAP, but in that they are not given abour 2008 server family...
    anybody help me .....
    Venkat

    Sorry, I haven't tried it. Maybe someone in forum can give you the result who may try it. And SAP hasn't officially anounced the support of Windows 2008 yet.
    It is MS's responsibility to keep the compatibility of OS. Mostly it should work fine for B1 in window 2008, but no garantee...
    Regards, 
    -yatsea

  • Customisation SAPB1-2005

    hi all,
    iam new in SAP B1-2005 ,here we started Customisation of SAPB1 my modules are like thisie
    1.)Purchasing A/P ->
    1.1)Goods Receipt P.O -->Step1)In this i had to modify the Menu Item to be changed as "Material Inward Receipt"(Requirement).
    Where iam confusing that like when i press the in sapb1 present main menu ie Menu item-"2036"-Goods Receipt P.O its event message is comming but,that Menu item name is not Changing i return my code like this
    SBO_Application.Menus.Item("").String = "&Material Inward Receipt" is this correct way or n't?? plz respond this Requirement asap with Clear information??
    Regards
    ANAND

    hi anand,
    Do one thing, go to "Goods Receipt P.O "
    perss control and double click...
    u can change the label. this is easiest way..
    if satisfied reward points...
    nirdesh

  • XL Reporter for Patch level 42 SAPB1 2005 b

    Hi all,
    from where to get XL Reporter  and Copy Express Add On for patch lvel 42.
    Thanks,
    Neetu

    I Think there are some problems with your SUserID.
    Iam able to see the Updates in following path
    Updates for SAP Business One->SAP Business One 2005->SAP BUSINESS ONE 2005 B
    I get the following links
    SAP BUSINESS ONE 2005 B
    B1 ADD-ON - BC SETS 2005 SP01
    Win32
    B1 ADD-ON - BRANCH CONS.BR 2.0
    Win32
    B1 ADD-ON - COPY EXPRESS 05SP1
    Win32
    B1 ADD-ON - FIXED ASSETS 05SP1
    Win32
    B1 ADD-ON - OUTLOOK INT. 05SP1
    Win32
    B1 ADD-ON - PAYMT ENGINE 05SP1
    Win32
    B1 ADD-ON - XL REPORTER 05SP1
    Win32
    SAP BUSINESS ONE 2005 B
    Win32
    SAP BUSINESS ONE ADD-ON 05SP1
    Win32

  • Delete Last Row in Matrix on SBO 2005

    Hi,
    Im using SAPB1 2005 SP1 with B1DE.
    I've seen a post that indicates that the following code should delete a row from a matrix (even the last row) when using SBO 2005
    I still find that all rows except last row of matrix are removed from the database.
    <b>How do I delete the last row from the Del button event handler????</b>
    I'm using
    <i>        [B1Listener(BoEventTypes.et_CLICK, false)]
            public virtual void OnAfterClick(ItemEvent pVal)
                bool ActionSuccess = pVal.ActionSuccess;
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                Item item = form.Items.Item("del");
                Button button = ((Button)(item.Specific));
                // ADD YOUR ACTION CODE HERE ...
                int row;
                Matrix oMtx = (Matrix)form.Items.Item("mtx_0").Specific;
                DBDataSource oDBDS = (DBDataSource)form.DataSources.DBDataSources.Item("@SD_POOLCONTRCT_LINE");
                row = oMtx.GetNextSelectedRow(0, BoOrderType.ot_SelectionOrder);
                oMtx.DeleteRow(row);
                if (oMtx.RowCount == 0)
                    oDBDS.RemoveRecord(0);
                if ((form.Mode != BoFormMode.fm_ADD_MODE) | (form.Mode != BoFormMode.fm_UPDATE_MODE))
                    form.Mode = BoFormMode.fm_UPDATE_MODE;
                }</i>

    Hi Ben,
    [B1Listener(BoEventTypes.et_CLICK, false)]
    public virtual void OnAfterClick(ItemEvent pVal)
    bool ActionSuccess = pVal.ActionSuccess;
    Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
    Item item = form.Items.Item("del");
    Button button = ((Button)(item.Specific));
    // ADD YOUR ACTION CODE HERE ...
    int row;
    Matrix oMtx = (Matrix)form.Items.Item("mtx_0").Specific;
    DBDataSource oDBDS = (DBDataSource)form.DataSources.DBDataSources.Item("@SD_POOLCONTRCT_LINE");
    Rest of your code will remain same.
    I am making the modification here. I am using the RowCount property that gives me the address of the last row of the matrix.
    <b>row = oMtx.RowCount;</b>
    Every time this will return you the last row and that row will be deleted.
    <b>row = oMtx.RowCount;</b>
    oMtx.DeleteRow(row);
    if (oMtx.RowCount == 0)
    oDBDS.RemoveRecord(0);
    if ((form.Mode != BoFormMode.fm_ADD_MODE) | (form.Mode != BoFormMode.fm_UPDATE_MODE))
    form.Mode = BoFormMode.fm_UPDATE_MODE;
    Regards,
    Prashant

  • Updating and Loading a  Matrix Row with Mix of DB and Non DB fields

    Hi
    I'm using SAPB1 2005 SP1 PL14 with B1DE 1.3
    I have a matrix on a form that was generated by the UDO Form Generator. The Matrix contains data associated from a Document Lines table.
    The underlying table and (therefor the matrix as well) only had 1 user field (column)
    I've added a set of additional (read only) columns to the matrix together with supporting non db user datasources for each column. I've bound the new columns to the user datasources.
    The new columns are only informational and should display data associated with the actual db field (column) in the matrix.
    I require assistance / advice with 2 requirements:
    <i>Requirement 1.
    When loading the matrix, I'd like the non DB columns to be populated with data associated with the actual DB field.</i>
    <i>Requirement 2.
    When Adding / Updating the actual DB field in the matrix, I'd like the Non DB columns to be populated with the assocaited data.</i>
    I've managed to get requirement 2 working by using a matrix onValidate Event. (not sure if this is the best approach?)
    Any idea how I can achieve requirement 1 ?
    Cheers,
    Ben

    Hi Trinidad,
    Putting the additaional columns in the table will result in me storing redundant info in the specific table.
    The values are already stored in other related tables and I'd just like to display them as additional info fields.
    .Ben

  • Problem in document number auto generation

    Dear All,
           I have created a screen in this screen,i want to generate a auto generate number
          for that i have write a code but when am executing the program in VS2005,the form was loaded in SAPB1 2005,But am not getting the auto generate number in the particular coloumn.
    It shows an error like pbject reference not set to an instance of an object
    the code is,
        Private Sub DCNumber()
            Try
                oForm = SBO_Application.Forms.Item("FormEditor")
                Dim oRs As SAPbobsCOM.Recordset
                oRs = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                oRs.DoQuery("Select DocNum IS NULL THEN '1' ELSE DocNum+1 from @SCDC")
                Dim Auto As String = oRs.Fields.Item(0).Value
                oForm.Freeze(True)
                oForm.Items.Item("25").Specific.Value = Auto
                oForm.Freeze(False)
            Catch ex As Exception
                SBO_Application.StatusBar.SetText(ex.Message)
            End Try
        End Sub
    I call this function in,
    Public Sub New()
            MyBase.New()
            SetApplication()
            ' Load the Tab Order form
            LoadFromXML("SCDC.srf")
            oForm = SBO_Application.Forms.Item("FormEditor")
            oForm.Visible = True
    DCNumber()
        End Sub

    You could use Aslam's answer but then in one row and use it in a formatted search..
    select ISNULL(MAX(DocNum),0) +1 from @SCDC
    I think the error is in this line:
    Dim oRs As SAPbobsCOM.Recordset
    oRs = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
    Should be:
    Dim oRs As SAPbobsCOM.Recordset
    oRs = (SAPbobsCOM.Recordset) ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
    Or in:
    Dim Auto As String = oRs.Fields.Item(0).Value
    Dim Auto As String = oRs.Fields.Item(0).Value.ToString()
    But you can set a breakpoint and debug your code, then it's possible to see where is trown the error..
    HTH
    Regards Teun
    Edited by: Teun Aben on Apr 15, 2009 10:42 PM

  • Upgrading from sap pl35 to sap pl49

    hello sap experts
    I want to upgrade  from  sapb1 2005  pl35 to sapb1 2005  pl49 can any  explain briefly how to upgrade in step by step
    regards
    Jenny

    Jenny,
    If I understand you correctly, you are talking about 2005A upgrade.  However, 2005A support has been stopped back to July.  Why do you not upgrade to 2007A instead?
    By the way, this question should belong to System Administration forum.
    Thanks,
    Gordon

  • SBO-Common

    Hi, I had to re-install MS SQL 2005 and SAPB1 2005 A and server tools from the beginning. I have now just attached my company database and at first glance it seems to work ok. I am wondering, do I need to restore the old SBO-Common database, overwriting the new one created in the re-install? Is that important/necessary? Thanks, Tom

    Hi Tom..........
    If you re installed SAP and newly generated SBO Common tehn you no need to replace old SBO common.
    But if you have been working with any of the addons then i guess you shoud replace it with Old SBO Common DB else you have to configure your addon in newly generated SBO Common DB.........
    Regards,
    Rahul

  • How to block inventory at sales order level

    Hi to all,
                i am using sapb1 2005 pl36 i want to block invetory at sales order level means what i want, if any user create sales order of item1 if instock qty of that item1 is 10 and commited is 10 then availabale inventory is 0 nos .means sales order  should not posted it should be block at sales order level.so how it can possible .if it possible through addon pls send code of perticular.i will await for positive reply .
    Regards,
    Vishal

    Vishal,
    You can use Application_FormDataEvent to block the add.
      Private Sub Application_FormDataEvent(ByRef args As SAPbouiCOM.BusinessObjectInfo, ByRef bubbleEvent As Boolean) Handles MyApplication.FormDataEvent
        If args.BeforeAction Then
          Select Case args.EventType
            Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD
              ' get document form
              Dim form = MyApplication.Forms.Item(args.FormUID)
              ' get docucment matrix
              Dim matrix = DirectCast(form.Items.Item("38"), SAPbouiCOM.Matrix)
              For row = 1 To matrix.RowCount
                ' get ItemCode
                Dim ItemCode = DirectCast(matrix.Columns.Item("1").Cells.Item(row).Specific, SAPbouiCOM.EditText).String
                ' Do a query on inventory or use Company object
                ' If a line is not allowed block adding the order:
                bubbleEvent = False ' order is now blocked!!
              Next row
          End Select
        End If
      End Sub

  • Last Prices is not working in SAPB1 2007

    Hi all,
    I just upgrade my sapb1 from version 2005 patch 36 to version 2007 patch 37. I found that the last prices feature, is not function in SAPB1 version 2007. Anyone have face it before?
    Regards
    Wong

    Hi Wong,
    I'm using pl 38  & it works fine. You can call the report up from 2 different locations:
    1.) From the SAP Business One Main Menu, choose  Inventory->  Inventory Reports -> Last Prices Report .
    2.) In a sales or purchasing document, place the cursor in the Unit Price field and press Ctrl + Tab. The values are copied automatically from the document.
    To generate the report, enter the necessary information and choose Refresh.
    Please be careful about your selection criteria, e.g. if you have selected a specific BP & you have not traded with this BP before with this item, there will be no data displayed.
    All the best,
    Kerstin

  • Guide Upgrade SAPB1 from 2005A PL50 to 2007A PL46

    Hi Experts,
    What is the steps for me to upgrade SAPB1 from 2005A PL50 to 2007A PL46?
    Is it my below steps?
    1. Backup common database
    2. Backup production database
    3. Removal of B1 2005A completely including the addon, server tools
    4. Install B1 2007A including license import 
    5. Open B1 2007A client and the B1 will ask you to backup before upgrade.
    6. Install B1 client
    Thanks.
    Regards,
    Danny

    Dear Danny,
    Yes, almost right. Follow the below steps:
    1. Backup COMMON database
    2. Backup Company database
    3. Uninstall SAP Business One 2005 Server Tools, DIAPI, Server
    Application, Client Application (If any)
    4. Install SAP Business One 2007 Server Tools(approx 5 mins), DIAPI(approx 5 mins),
    Server Application(approx 30 mins), Client Application (approx 10 mins)
    5. Backup your databases on SQL Server 2005, in order to perform
    upgrade
    6. Run your SAP Business One 2007 Client Application, to upgrade
    database
    7. After which, you may continue to patch to your desired Patch Level again and run Client Application to upgrade database again.
    Additional information to note down from SBO 2005 before beginning Upgrade
    1. Note down User licenses allocation as sometimes user licenses may be unassigned from my experience. Also, check your number of licenses are correct. If not correct, reimport License File again.
    2. User Authorization allocation. In SBO, for new functions or functions moved around in main menu, the default access for all user is "No Authorization", we have to allocate access.
    3. User Addon allocation
    a. Note down the Addons currently used by the company
    4. Database login at Client Application, so that you set the same username
    and password on new SQL Server Installation.
    Hope it helps!
    Warmest Regards,
    Chinho

  • Report RFKLBU10: Missing Parameter for Logical filename in Release ERP 2005

    Hello Experts,
    Report RFKLBU10 in Sap Release 4.6c hat a parameter "Old dataset logical name".
    The new version of this report in SAP Release ERP 2005 there is no such parameter.
    Is this a SAP-Bug ?
    Best regards,
    Mike

    There are no Export or Print events accessible for the viewer
    Since it sounds like you are creating the reportdocument object in your click event, the settings on this object become out of scope on successive postbacks executed by other events.
    to get around this without major changes, you can place your "report" object in session in this event and retrieve it from session on successive postbacks.  This should solve your problems around navigation, printing and exporting.  What you will need to do is check if the session object exists (usually in page_load or page_initialze) and if so, retrieve it from session and bind it to the viewer's reportsource.  If the session object does not exist, then do nothing (ie you have not clicked your button yet that retrieves the parameter values from session and loads the report).  Also, in your click event you can check if the report session object exists and if so, remove it so that it can be re-created with your new parameter values (ie i'm assuming the only time you want to set parameter values is in this event).
    Dan

  • IPod Touch will not turn on (error message 2005)

    I tried to update my ist generation iPod touch to OS 3.0. At some point during the update, the screen turned off and now it won't come back on. I'm running Windows 7. When I plug the Ipod in, I get the USB noise and itunes gives me the following error: "An iPod has been detected, but it could not be identified properly. Please disconnect and reconnect the iPod, then try again. An unknown error occurred (2005)."
    Needless to say, I tried unplugging it, replugging it, restarting the computer, holding down both the sleep and home buttons by themselves and together for various amounts of time up to 30 seconds, plugging the iPod into a different computer that is running Vista and doesn't have itunes installed, and doing all of the above in every combination I could imagine.
    All help appreciated!

    Well, thanks to Google, I'm on my way to recovery. Turns out the iPod was in DFU (Download Firmware Update) mode. Here are the instructions I followed to get in back into restore/update mode:
    1. Run itunes and plug in iPod.
    2.Hold power and home buttons down until "ding dong" indicates device disconnected
    3.Release the power button (but keep holding the home button down until "ding dong" sounds againand release the home button.
    4.iTunes should see it as a DFU’ed iPod and should ask you to automatically restore its firmware.
    I had to repeat steps 1-3 a couple of times before iTunes would take over and run the restore.
    Itunes is downloading the software, which takes awhile, and the screen is white, but hopefull this will be fixed soon.

  • Browse Data & Parameter flds no longer fully populated after upgd  SQL 2005

    I upgrade our SQL 2000 Server last weekend to SQL 2005 (sp2).
    Now our Crystal reports that access SQL data are not working correctly. Parameter Fields are showing little to no data, where before the upgrade we were seeing many more rows in the list.
    Digging further, I looked at the fields used for the dynamic LOV. If I use Browse Data on those fields I am seeing the same lack of data. One "Browse Data" that would typically return 80 items now returns 3 items. In that report the data field is DateTime. In another report, the field is string.
    I am also seeing an extra check for User Name and password before getting to the Enter values screen for the parameter.
    I am using Crystal Developer 11.0.0.1994. It is happening on multiple PCs. I tried with both the original SQL ODBC Driver and the newer SQL Native Client ODBC driver, with the same result.
    I've looked at this for 3 days with no luck. Any ideas?

    Full SysAdmin rights.
    I use a dedicated ODBC connection and have tried both "SQL Server" odbc driver and "SQL NativeClient" (2005) odbc driver.
    If I go to Crystal, to the Field Explorer, to the one of the fields, right-click and "Browse Data..." I get two results (I expect 82 results and have seen that in the past.) If I paste the query from Crystal, Database, "Show SQL Query.."  to SQL Server Management Studio, I see the full, correct results.
    In one example the field browsed is called "PeriodEndDate" (DateTime). A dynamic Parameter Field was created accessing this field. Here is the security curiosity...refreshing now asks for the user login each time "Prompt for new parameter values" is selected. It used to ask only the first time. The Crystal: Data Explorer" shows the current connection logged in ok.
    The two issues may or may not be related. Certainly if #1 were fixed, dynamic parameters would return the correct results. Even if it asked for the password each time.
    1.) "Browse Data" returning a smaller result than normal.
    2.) "Parameter Prompt" asks for Server Name, Database Name, User Name, and Password on
         each refresh selecting "Prompt for new parameter values".

Maybe you are looking for