Load System Matrix with Data

Hi,
I like to fill system Matrix with data; please find the code below.
Thank you very much for your good work and support.
Thank you,
Rune
CODE
#region SalesOrderItemLine_GetDataFromDataSource
public void SalesOrderItemLine_GetDataFromDataSource( SAPbouiCOM.Form oForm, bool Matrix77_AddRefresh )
     try
          if ( Matrix77_AddRefresh )
oForm.DataSources.DataTables.Add("SYS_77");
          oForm.DataSources.DataTables.Item("SYS_77").ExecuteQuery("SELECT [Code],[Name],[U_Weight],[U_PoNo],[U_CoopName],[U_Consignee],[U_PalGroup],[U_Container],[U_ItemCode],[U_CheckBoxSelect] FROM [dbo].[@MyTable] WHERE [U_MatrixAorB] = 'A' AND [U_WRKsalesOrderYN] = 'N'");
          ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Columns.Item("1").DataBind.Bind("SYS_77", "U_ItemCode");
          ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Clear();
          ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).LoadFromDataSource();
          ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).AutoResizeColumns();
     catch ( Exception Error )
          oApplication.MessageBox("Add-On Error-3232: = " + Error.Message, 1, "Ok", "", ""); // My Error Code
#endregion

Hi David!
This is a Product Development Collaboration suggestion!
I like to load data into system matixes...that could be really nice!
(No my problem is still out there...
Thank you,
Rune

Similar Messages

  • SYSTEM Copy with Data ( SAP Export/Import way)

    Hello ,
    There is requirement at my client site to build SAP system copy from Production System  without copying Data but
    should have Programs/ Structures / Repository/ Tables & views etc.
    Though We have thought of building SAP system with Export/ Import way and then deleting the Client from copied system
    after that running Remote client copy from Source to Target system with SAP_CUST profile
    But I have heard with SAP Export/Import way , We can have SAP data copy skipped and only structure to copy. If there is any way
    of such kind then Please help me in letting know the same
    Thanks
    Deepak Gosain    

    Hi Deepak
    Kindly refer the SCN link difference between the Client copy Export / import & Remote copy method
    Difference between remote client copy and client Import/Export- Remote client copy steps
    BR
    SS

  • How to load my tree with data from SQL database????

    Hello friends
    May i know how i can load my tree with my database??
    i have 3 different tables and i need them to be the 3 main nodes of my tree
    They are
    1.fiche
    2.amis and
    3.famille
    and in each of these nodes need to load the 3 databases
    thank u in advance

    Heres my program so i loaded my vector ,
    Now how can i integrate the coding u gave me, and where ??
    Is it where i put the quetion mark?
    if so
    can you tell me how?? because i didnt understood well the codings you gave me as im nt at all familiar with this
    Thank you in advance
    public class carnetf extends javax.swing.JFrame  {
       DefaultMutableTreeNode root =null;
        public carnetf() {
           root= new DefaultMutableTreeNode("Carnet");
            DefaultMutableTreeNode tnFiche=new DefaultMutableTreeNode("Fiche");
           root.add( tnFiche);
            DefaultMutableTreeNode tnAmis=new DefaultMutableTreeNode("Amis");
            root.add( tnAmis);
            DefaultMutableTreeNode tnFamille=new DefaultMutableTreeNode("Famille");
            root.add( tnFamille);
           initComponents();
        public Vector vecfiche() {
            Vector v = new Vector();    
            Connection connection = null;
            try
                Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());;
            catch (Exception E)
                System.out.println("Unable to load driver.");
                System.out.println(E.getMessage());
                E.printStackTrace();
                return null;
            try
                connection = DriverManager.getConnection( "jdbc:microsoft:sqlserver://localhost:1433;user=sa;password=sa;DatabaseName=carnet");
            catch (Exception E)
                System.out.println("Unable to connect.");
                System.out.println(E.getMessage());
                return null;
            try
                Statement Stmt = connection.createStatement();
                if(jRadioButton1.isSelected()==true)  
                    String Query = "SELECT * FROM fiche";
                ResultSet RS= Stmt.executeQuery( Query );
                while ( RS.next())
                 v.add( new vecfiche( RS.getString("Nom"), RS.getString("Prenom")));
                if( RS!= null) RS.close();}
                if(jRadioButton2.isSelected()==true)  
                    String Query = "SELECT * FROM amis";
                ResultSet RS= Stmt.executeQuery( Query );
                while ( RS.next())
                 v.add( new vecfiche( RS.getString("Anom"), RS.getString("Aprenom")));
                if( RS!= null) RS.close();}
                if(jRadioButton3.isSelected()==true)  
                    String Query = "SELECT * FROM famille";
                ResultSet RS= Stmt.executeQuery( Query );
                while ( RS.next())
                 v.add( new vecfiche( RS.getString("Fnom"), RS.getString("Fprenom")));
                if( RS!= null) RS.close();}
                if( Stmt!= null) Stmt.close();
            catch (Exception E)
                System.out.println("Unable to query.");
                System.out.println(E.getMessage());
                return null;
            try
                connection.close();
            } catch (Exception E)
                System.out.println("Unable to close.");
                System.out.println(E.getMessage());
                return null;
            return v;
        }

  • Loading a combobox with data from a different domain

    I have filled in a combobox with values from an .asp page and
    have used it
    successfully. The problem is that if the flash file is ran
    from a different
    domain from the load location, the combobox doesn't get
    filled in (as
    apposed to the error if I ran it off of my drive).
    datafeed.asp spits out the appropriate stuff for the AddItems
    function to
    read correctly. (as I has said, it does work). The combobox
    gets filled in
    the development environment (Macromedia Flash MX Professional
    2004) as well
    as flash player.
    But when I upload it to one of my other websites, the data is
    never
    retrieved. Even though that the webserver containing the data
    feed, the
    webserver hosting the flash file and my machine can all read
    datafeed.asp.
    Am I missing a setting that allows a flash file to read data
    from another
    domain?
    The following code has been changed for security reasons. But
    believe me it
    works in its original format.
    myData = new LoadVars();
    myData.onLoad = AddItems;
    myData.load("
    http://www.mydomain.com/datafeed.asp")
    function AddItems() {
    for (i=0; i<numItems; i++) {
    var ProductID = eval("myData.ProductID"+i);
    var ProductName = eval("myData.ProductName"+i);
    var ProductSale = eval("myData.ProductSale"+i);
    var DataProvider = { productid
    roductID, productsale
    roductSale };
    _root.application.chooseproducts.prodlist_cb.addItem(ProductName,
    DataProvider);
    Thank You,
    Julian

    not sure, but this might be what you need...
    //allow loading of files from domain
    System.security.allowDomain("
    http://www.mydomain.com");

  • Load interactive pdf with data from database

    I am trying to understand our options for loading database data into an interactive pdf..?   Some of the data is not stored in the database and needs to be manually entered by the user in the interactive pdf.
    Here is the interactive pdf I'm working with:
    http://www.dcma.mil/dcman/NPP/files/dd1149.pdf
    As I understand it, there are 2 options:
    1.  Create an xml file from the database data.   Users can manually import this xml file into this existing interactive pdf and then manually add the additional data, and save the interactive pdf.
    Would users need to use Adobe acrobat Standard or Pro edition to import the xml data?
    2.  Create a XFA PDF form that's made with LiveCycle Designer.   Can this method create an interactive pdf so that users can enter additional data later and save the pdf?  
       What adobe products are required to use this method?
    thanks for any assistance..
    -D

    Yes,using LiveCycle you could accomplish this easily.Once you have your invoice form ready based on predefined XSD, you can easily update the form data by fetching the values from database using JDBC operation.Also you could email this updated form using Email service.
    Thanks,
    Wasil

  • Matrix with dates of months as column heading

    Hi you all, I'm trying to generate a query with the books name, dates of months as column headings and show the count of books sold on that particular date.
    the expected format is
    01-Jun-2006 02-Jun-2006 .................... 30-Jun-2006
    Book1 2 4 0
    Book2 2 0 6
    can anyone help me..... please.........

    You didn't give us the table structure.
    Considering the table having two columns BOOK_NAME and PURCHASE_DATE, find the query below for MAY. Change the Query accordingly if you want for a different month.
    SELECT BOOK_NAME,
           SUM(DECODE(PURCHASE_DATE,TO_DATE('01-MAY-2006','DD-MON-YYYY'),1,0)) "01-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('02-MAY-2006','DD-MON-YYYY'),1,0)) "02-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('03-MAY-2006','DD-MON-YYYY'),1,0)) "03-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('04-MAY-2006','DD-MON-YYYY'),1,0)) "04-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('05-MAY-2006','DD-MON-YYYY'),1,0)) "05-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('06-MAY-2006','DD-MON-YYYY'),1,0)) "06-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('07-MAY-2006','DD-MON-YYYY'),1,0)) "07-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('08-MAY-2006','DD-MON-YYYY'),1,0)) "08-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('09-MAY-2006','DD-MON-YYYY'),1,0)) "09-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('10-MAY-2006','DD-MON-YYYY'),1,0)) "10-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('11-MAY-2006','DD-MON-YYYY'),1,0)) "11-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('12-MAY-2006','DD-MON-YYYY'),1,0)) "12-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('13-MAY-2006','DD-MON-YYYY'),1,0)) "13-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('14-MAY-2006','DD-MON-YYYY'),1,0)) "14-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('15-MAY-2006','DD-MON-YYYY'),1,0)) "15-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('16-MAY-2006','DD-MON-YYYY'),1,0)) "16-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('17-MAY-2006','DD-MON-YYYY'),1,0)) "17-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('18-MAY-2006','DD-MON-YYYY'),1,0)) "18-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('19-MAY-2006','DD-MON-YYYY'),1,0)) "19-MAY-2006",      
           SUM(DECODE(PURCHASE_DATE,TO_DATE('20-MAY-2006','DD-MON-YYYY'),1,0)) "20-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('21-MAY-2006','DD-MON-YYYY'),1,0)) "21-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('22-MAY-2006','DD-MON-YYYY'),1,0)) "22-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('23-MAY-2006','DD-MON-YYYY'),1,0)) "23-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('24-MAY-2006','DD-MON-YYYY'),1,0)) "24-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('25-MAY-2006','DD-MON-YYYY'),1,0)) "25-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('26-MAY-2006','DD-MON-YYYY'),1,0)) "26-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('27-MAY-2006','DD-MON-YYYY'),1,0)) "27-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('28-MAY-2006','DD-MON-YYYY'),1,0)) "28-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('29-MAY-2006','DD-MON-YYYY'),1,0)) "29-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('30-MAY-2006','DD-MON-YYYY'),1,0)) "30-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('31-MAY-2006','DD-MON-YYYY'),1,0)) "31-MAY-2006"
    FROM BOOKS 
    GROUP BY BOOK_NAME     
    Regards,
    Mohana

  • Record count is different for Full load and Init with data transfer

    Hi all,
    We have a data source for which delta is enabled on Calendar Day.
    If I run the full load record count is 2670.But If I run the delta record count is 2665.5 records are missing.
    Would you please help on this.Why those records are missing.

    Hi,
    Actually for Full Load say you have 50 records. When you run it will upload 50 records.
    Now if you run delta if there is no records changes it wouldnt update because there is no update in the existing records.
    only delta is done when there is changes in the records.

  • Variation on a theme: recordable DVD media wont load (blank or with data)

    I've read through the forums about problems people are having with the CD/DVD drives, but this one seems unique.
    My MacBook will read:
    commercial DVDs and CDs
    Blank recordable CDs
    Recorded data CDs
    But wont read:
    Blank or recorded DVDs.
    I've tried a number of different brands, and none of them will be recognized. (The same DVDs I've tried in a friend's identical MacBook and his reads them fine).
    I've reset the PRAM and bought a cleaning disc, none of which hand an effect.
    I'm assuming the drive is bad. Just thought I'd check here once before taking my much-beloved MacBook in for service.

    It's beyond obviously bad, my friend It ***** to hear it, but it's true. Don't waste any more time and money, just get it to Apple so that they can replace it. The more they see people coming back with bad drives, the more likely they'll get their act together and fess up and start taking a more consumer-friendly approach (accepting, not denying, helping, not ignoring), which WILL make them RICHER in the end. Guaranteed. A customer who is shown appreciation, stays a customer, even in tough times. So simple a concept.

  • Load Grid with data from System.Data.DataTable

    Hi all.
    A have a System.Data.DataTable e need load a grid with data from this DataTable.
    How Load a Grid with data from System.Data.DataTable?

    Hi Francisco,
    actually i don't think that you can use a .NET datatable to fill a business one grid.
    the business one has it's own datatable.
    in c# it would look like this:
    oForm.DataSources.DataTables.Add("MyDataTable");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).DataTable = oForm.DataSources.DataTables.Item("MyDataTable");
    oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT Field FROM [dbname].dbo.TABLE");
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).CollapseLevel = 1;
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).AutoResizeColumns();
    ((SAPbouiCOM.Grid)(oForm.Items.Item("grid").Specific)).SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single;
    good night
    lg David

  • SAP BI System Copy with only Config changes, Not Data

    Hi BASIS,
    I have a requirement from a client to build a system landscape stratagy for their SAP BI system.
    We have DEV - QA - PRD systems for SAP BI (7.0 SP 16)
    Both DEV and QA are completely out of sync with PRD. We are doing development tasks directly on PRD. Now we have decided to re-sync the DEV & QA systems with PRD.
    'System copy with Data' will be easier to implement. But our PRD DB size is nearly 3TB. The client is not ready to pay for the extra/temp. disk space for DEV and QA sync. ( We are on DB2).
    Now, we have only one option left. Capture all Config changes from PRD and transport them back to DEV & QA. This is a tedious task and cause many inconsistencies.
    Would anyone have any other ideas to bring the systems in sync with less time involved and less resources.
    I am a SAP BI person. So dont know much about BASIS tasks. Please help me with any links of best practises or SAP notes.
    Cheers

    HI Reddy,
    We came to know from our basis team that we do not have the Java Stack installed in our BI 7.x system yet.
    As it is integrated with EP which has Java, our web reports are working.
    1) But my question is still do we ned to install the Java Stack in our BI system as i do not find any Export to PDF option in EP for the reports (eventhough AS Java supports this).
    2) Or can we use the existing configuration without Java STack integrated to EP for the new tools like Report Designer and Integrated Planning?
    Regards
    Kumar

  • Focus when setting value in system matrix

    Hi All,
    Starting from SAP Business One 8.8 SAP changed the behaviour of the matrix focus.
    Previously, after you set a value in a system matrix with the UI API, the focus was automatically restored to the item that previously had the focus. In 8.8, the focus remains on the matrix cell.
    We're currently facing different issues with addons which were working in the past as this is a change of behaviour.
    I would like to know from other forum users what they think about this change of behaviour, is it good, not good?, ...
    Thank You,
    paolo

    Hi Paolo,
    I ran in to this issue on a number of my addons which caused me a lot of extra work. Personally I thought it was a weird change to make as I would rarely (if ever) want to automatically set focus to a cell in a matrix when the value is changed through code. Typically my addon might be setting 3 or more values in a row (based on data that the user selects) and, after the change to the UI API, the screen flickers badly and the focus ends up on the final cell that was updated which can make data entry awkward (especially as Form Settings allows any user to change the order of the columns). In the end I had to freeze the form during my updates and then call the Click method on the cell where I wanted focus to remain.
    I did raise this with SAP support and they said it was a deliberate design change. Hopefully they will change it again so that the developer can pass in a parameter or something to control where the focus is placed after the update.
    Kind Regards,
    Owen

  • How to fill matrix with the output of recordset query?

    Hi all,
    I want a user matrix to load data when I hit a button and the data to be filled is the output of an sql query. binding the matrix columns with table columns and then load the matrix with DBDatasource attached to that table will not do in this case as the columns in the sql query are from several different tables or views. 
    writing following line to do this takes several minutes to load the data:
    For j = 0 To Reordset.RecordCount - 1
    Matrix.AddRow()
    Matrix.Columns.Item("col1").Cells.Item(i).Specific.value =  Recordset.Fields.Item("cardcode").Value
    Recordset.movenext()
    next
    Is there any other way to fill the matrix in this case, which loads the data faster?
    Regards,

    Hello Binita,
    I've tested the CFL for DataTable-Matrixes in my test-AddOn. But there's still one problem left. Maybe you find it out (I will need this in the future too...).
    The ChooseFromList must be added behind the DataTable-Bind, which is done on every MTX-Load (it's not from the sample above, so the UIDs are new ones):
                oDt = oDts.Item("dt_test")
                query = "SELECT  * FROM [@T_CONVTOOLS01]"
                oDt.ExecuteQuery(query)
                oMtx.Columns.Item("0").DataBind.Bind("dt_test", "Code")
                oMtx.Columns.Item("1").DataBind.Bind("dt_test", "U_Alpha01")
                oMtx.Columns.Item("2").DataBind.Bind("dt_test", "U_Price01")
                oMtx.Columns.Item("3").DataBind.Bind("dt_test", "U_Quant01")
                oMtx.Columns.Item("4").DataBind.Bind("dt_test", "U_Date01")
                AddChooseFromLists()
                oMtx.LoadFromDataSource()
    ...where AddChooseFromLists() is...
      Private Shared Sub AddChooseFromLists()
            Try
                Dim oCfls As SAPbouiCOM.ChooseFromListCollection
                Dim oCons As SAPbouiCOM.Conditions
                Dim oCon As SAPbouiCOM.Condition
                Dim oCfl As SAPbouiCOM.ChooseFromList
                Dim oCflCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                Dim oBtn As SAPbouiCOM.Button
                Dim oMtx As SAPbouiCOM.Matrix
                Dim oCol As SAPbouiCOM.Column
                Dim oEtx As SAPbouiCOM.EditText
                oMtx = oForm.Items.Item("MTX_TEST02").Specific
                oCfls = oForm.ChooseFromLists
                oCflCreationParams = SboCon.SboUI.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                oCflCreationParams.MultiSelection = False
                oCflCreationParams.ObjectType = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner
                oCflCreationParams.UniqueID = "CFL_C1"
                oCfl = oCfls.Add(oCflCreationParams)
                '### OPTION:
                '# Shown ChooseFromList restricted by Conditions
                oCons = oCfl.GetConditions()
                oCon = oCons.Add()
                oCon.Alias = "CardType"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "C"
                oCfl.SetConditions(oCons)
                oCol = oMtx.Columns.Item("1")
                oCol.ChooseFromListUID = "CFL_C1"
                oCol.ChooseFromListAlias = "CardCode"
            Catch e As Exception
                Microsoft.VisualBasic.MsgBox(className & ".AddChooseFromLists()" & vbCrLf & "Exception:" & vbCrLf & e.Message.ToString)
            End Try
        End Sub
    But I'm running into problems when trying to set the MTX-Cell via DataTable at the CFL-Event (see comment):
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
                    Dim oMtx As SAPbouiCOM.Matrix
                    Dim oCFLEvent As SAPbouiCOM.IChooseFromListEvent
                    Dim oCFL As SAPbouiCOM.ChooseFromList
                    Dim oDataTable As SAPbouiCOM.DataTable
                    Dim cflID As String
                    Dim oDt As SAPbouiCOM.DataTable = oForm.DataSources.DataTables.Item("dt_test")
                    oCFLEvent = pVal
                    cflID = oCFLEvent.ChooseFromListUID
                    'Dim oForm As SAPbouiCOM.Form
                    'oForm = SboConnection.SboUI.Forms.Item(FormUID)
                    oCFL = oForm.ChooseFromLists.Item(cflID)
                    If Not oCFLEvent.BeforeAction Then
                        oDataTable = oCFLEvent.SelectedObjects
                        If oDataTable Is Nothing Then Exit Sub
                        '############## Matrix Test #######################################################################
                        If (oCFLEvent.ItemUID = "MTX_TEST02") Then
                            oMtx = oForm.Items.Item("MTX_TEST02").Specific
                            '### CFL Results to UserForm
                            oDt.Rows.Offset = oCFLEvent.Row - 1
                            MsgBox(oDt.GetValue("U_Alpha01", oCFLEvent.Row - 1))
                            MsgBox(oDataTable.GetValue("CardCode", 0))
                            ' PROBLEM - can't get this working - don't know at the moment:
                            ' on other forms SetValue works....
                            oDt.SetValue("U_Alpha01", oCFLEvent.Row - 1, oDataTable.GetValue("CardCode", 0))
                            ' this also gives me problems...:
                            'oMtx.Columns.Item("1").Cells.Item(oCFLEvent.Row).Specific.value = oDataTable.GetValue("CardCode", 0)
                            oForm.Update()
                        End If
                    End If
                End If
    The CFL-Form opens and returns the choosen value(s) at the CFL-event. But writing to MTX still not works with this code...
    Maybe you find the last piece. If so: please write here.
    Cheers,
    Roland
    p.s.:
    David Nussböck wrote
    LOL - ROLAND WAS FASTER ))
    ...just one minute...

  • Rebinding datasource to system matrix

    Hi,
    is it possible in SBO to rebind in system form system matrix with another datasource? For example order items are shown in system matrix and I would like to bind this system item to my recordset.
    The only solution I found is to hide all columns in matrix and add new columns bounded to my datasource, but this is not the best way. Any idea?
    thx
    Petr

    As I found now, the way to add new columns isn`t working, because error "this item is not user defined item". Is any possibility to set the matrix as user matrix?
    What I need is to keep the design and references from matrix, but change datasource to my datasource (I need to change some part of sql query).

  • Matrix with DataTable - GetLineData and SetLineData B1 8.8 Bug

    Hi experts,
    I have a matrix bounded to a DataTable and I succefully load the matrix with:
    DataTable dt = form.DataSources.DataTables.Item("matDT");
    dt.ExecuteQuery(sql);
    Matrix mat = form.Items.Item("mat").Specific as Matrix;
    mat.LoadFromDataSource();
    mat.AutoResizeColumns();
    Now in Event et_VALIDATE(after), i would like to change some not editable column of the matrix
    [B1Listener(BoEventTypes.et_VALIDATE, false)]
    public virtual void OnAfterValidate(ItemEvent pVal) {
              if(pVal.ItemUID!="mat")
                    return;
              Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
              Matrix mat = form.Items.Item("mat").Specific as Matrix;
              DataTable dt = form.DataSources.DataTables.Item("matDT");
              //Pont 1)
              mat.GetLineData(pVal.Row)     
              //Point 2
              //Change Values
              int minutes = dt.GetValue("U_Minutes", pVal.Row-1);
              dt.SetValue("U_Hours",pVal.Row-1, (double) minutes / 60);
              //Point 3
              mat.SetLineData(pVal.Row);
    Now I will expain the problem:
    For simplicity assume the matrix has 2 rows after load. After the user edit a column, validate event fires and:
    -) After the call of GetLineData  in Point 1) I verified that all DataTable Rows are identical (derived from the first row in the matrix)
    -) If I substitute GetLineData   in point 1) with FlushToDataSource, DataTable became corret but after the call of SetLineData in point 3) all the matrix rows are identical (derived from the first DataTable row).
    -) If I also substitute SetLineData   in point 3) with LoadFromDataSource, all works fine but i loose focus and performances
    Is it a B1 8.8 Bug?

    Yes, but sap said that my  customer is not officially approved.
    the following is the original text.
    Please note that SAP Business One Release 8.8 has only been released for
    Ramp-Up. Because of this, only approved projects for productive usage a
    re fully supported by SAP Business One Support. However feedback on prod
    uct quality or bugs reporting from all partners - even from partners who
    are not part of the Ramp-Up - is welcome and highly appreciated.
    According to the information we have, your customer is not officially ap
    proved for Ramp-Up yet. Due to the difficulty to estimate the number of
    messages that will be submitted, SAP cannot commit itself to solving all
    issues reported about projects not officially approved for Ramp-Up, nor
    guarantee any response times.
    Kind regards,
    SAP Business One Support

  • System copy with Export/Import Distribyted system UNIX database, Windows CI

    HI
    we have a distributed system witch I want to make a copy of
    Oracle Database on HP-UX
    CI + SCS on Windows
    Dual stack system  ABAP/Java
    1)  I have made an system copy with data base copy tools, and that works fine.
    2)  I have made a system copy export/import of a "central system"
    If I try to make an export/import system copy on a distributed system it wont work.
    ( this work fine in a central system) I dont get anny error messages all gren checks marks ! 
    It seems like the problem are in not finding the profiles from CI ?
    It find the profiles for the sapgateway.
    I someone are more interested I have more documentation with screen shots in a word document.
    I Have used Installation Master SR3 and tryed with some older versions as well.
    I have read SAP Note 970518 - Hom./Het.System Copy SAP NetWeaver 7.0 (2004s) SR2
    SAPINST   
    Using virtual hosts for central and/or DB instances
    SYMPTOM:
    You are using virtual host names for your central instance and/or the database instance (e.g. in a HA environment). Although SAPinst finishes successfully, some export steps are not being performed.
    SOLUTION:
    Start the export with the property SAPINST_USE_HOSTNAME=<virtual host>.
    If the central instance and the database instance run on different hosts, run the database export with SAPINST_USE_HOSTNAME=<virtual host name of the DB server> and - if you run a Java or ABAP+Java system - run the central instance export with SAPINST_USE_HOSTNAME=<virtual host nameof the central instance host>.
    If you run a central system with different host names in the profiles, handle the export as a distributed export, calling SAPinst with parameter SAPINST_USE_HOSTNAME. Perform the export of the database instance on the DB server, calling SAPinst with SAPINST_USE_HOSTNAME=<virtual host of the DB server>.

    Hi I have received folloving answer from SAP:
    You're doing everything correct - besides one thing.
    When you specify the profiles during the database export it cannot be
    correct to specify the profiles of the gateway instance located on
    the same host.
    As a consequence - it picks up the wrong instance G01 and sets the
    property 'hasABAP' and 'hasJava' to 'false'...  - thus the export
    is empty. You can see this within the corresponding 'sapinst.log' file.
    The correct procedure would be to specify the profiles of the central
    instance on the Windows Machine. If you cannot access them, you should
    make them available by Samba or by any type of software which makes
    it's possible to export filesystems or directories from windows to
    unix.
    Best regards
    Bent

Maybe you are looking for

  • Logfile Generation utilizing "Excel" (Creating and Appending Report)

    All, As always, thanks for the help you have given me in the past....especially the Vets. I have tried to figure out a solution to my issue from the message board, but no solution seems to fit what I am doing. Here is my situation...... I am using La

  • Can I host an address book & calendar ?

    I have been using Now-Up-To Data/Contact for over 10 years. I have been hosting a contact & events server on the same box as XServe I am ready to throw in the towel on NUD/C. They are simply going backwards. I have about 10 people who share contacts

  • I can't use some Arabic fonts in Firefox.. How to use them?

    I am trying to use special Arabic fonts in my html page that I run locally. So I created an html page that contains an Arabic font. The font was displayed as it should be in IE and Chrome, but the same font wasn't displayed in Firefox. Can the same f

  • MRBR - Price Variance

    Hi All, I have created one purchase order and did invoice also and is already paid. But in MRBR tcode , this document is blocked under price variance. Please let me know why it is blocked due to price variance as invoice is already paid. Do the needf

  • Withholding tax calculated including transactional tax.

    Hi can any one send me the documentation for Withholding tax calculated including transactional tax. thanks [email protected] Edited by: Prashant on Apr 28, 2008 8:04 PM