Screen painter, matrix and DataBound problem...

Hi
Using SAP BO 6.7 I have made a form with a matrix.
I have a usertable named @t_fingrp with a field named U_Nr.
In the matrix-->Columns properties I set Databound to "true", set tablename to "@t_fingrp" and set the alias to "U_Nr".
I then save the form as xml.
Then I load it in code using something like this:
XmlDocument XMLDoc1 = new XmlDocument();
XMLDoc1.Load(sXMLFile);
xml = XMLDoc1.InnerXml;
SBO_Application.LoadBatchActions(ref xmlString);
This will make the form appear in SAP BO with the matrix and the columns but NO data.
What am I doing wrong??
TIA
Jan

The data doesn't appear automatically when you bind a matrix to a data source.  You have to populate the data source from the database, and then add each row to the matrix manually.
Below is a sample, hope it helps.
    'Populate the datasource
    Set sboDS = sboForm.DataSources.DBDataSources("OUSR")
    sboDS.Query
    'Add data to the matrix
    For lngCount = 0 To sboDS.Size - 1
        sboDS.Offset = lngCount
        sboMatrix.AddRow
    Next lngCount
John.

Similar Messages

  • Screen painter or table control problem

    Hi All,
    I have created two maintenance views for two custom tables , and two views has been created .
    in one view when i excuting sm54 and display i could able to see all the fields in the table control ,
    but in the other view i could see only one field very in the table control.
    Is this the problem of screen painter with table control , shall i need to intall screen painter again
    i am using  4,7 version  os sap ,
    Regards
    subba

    Hi  Chandra,
    Thanks for yorr prompt reply  and i tried so many times , can i go that particular screen and change
    the screen and include all the fields , actually the system proposes the screen when we are creating
    the table maintenance generator.
    i selected one step and screen proposed by sap in the overview screen as  1 and i have created table maintenance.
    Regards
    subba

  • Screen Painter - Matrix CellHeight & TitleHeight

    Hi,
    In Screen Painter the Matrix CellHeight & TitleHeight change all the time when I open the Form in Screen Painter. It works when I run the Form, but when I change the Form I always have to change the CellHeight & TitleHeight before I close the fom...puh
    Any suggestion?
    Thank you,
    Rune

    Hai Rune,
              U r change the .srf file to .xml na. So i can able to modify the xml file. I also have the same issue. But i change in xml so its working fine.
    Here is the code
    <item uid="m_Dbond" type="127" left="15" tab_order="0" width="526" top="78" height="228" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="0" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                  <AutoManagedAttribute />
                   <specific SelectionMode="0" layout="0" titleHeight="21" cellHeight="17">
                     <columns>
                       <action type="add">
                         <column uid="v" type="16" title="#" description="" visible="1" AffectsFormMode="1" width="20" disp_desc="0" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
                          <databind databound="1" table="@DBOND_DETAIL" alias="LineId" />
                          <ExtendedObject />
                        </column>
    Regards,
    Anitha

  • Screen painter, ChooseFromList and et_EDIT

    Hi,
    I'm in Screen Painter and I did set a it_EDIT with a ChooseFromList Business Partner.
    When I hit PREVIEW, it works fine,  the list of Business Partners appear and I choose one but the choosen one do not go in the et_EDIT textbox.
    I don't understand the Aliases because the help do not let me understand what it is and there's no way to see by a demo or anything else so I can understand clearly. 
    First is this all possible just by the Screen Painter or I do need to code something else ?  Any video tutorials ? Anything could help understand how to make it work.
    I beg anyone to give me a working solution.
    Thank you
    Edited by: Marc Roussel on Dec 20, 2010 3:16 PM

    Just a mall thing.  Everything seems to work except that when I did choose the BP, a message pop saying :
    "Item - Can't set value on item because the item can't get focus. [66000-153]"
    However once I clicked OK of that message, I see my choosen BP in my EditText and everything is fine so I don't understand why I receive this message.  Here's the code I use
    if (pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE && pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_LOAD)
        if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST)
            SAPbouiCOM.IChooseFromListEvent oCFLEvento = null;
            oCFLEvento = ((SAPbouiCOM.IChooseFromListEvent)(pVal));
            string sCFL_ID = null;
            sCFL_ID = oCFLEvento.ChooseFromListUID;
            SAPbouiCOM.Form oForm = null;
            oForm = SBO_Application.Forms.Item(FormUID);
            SAPbouiCOM.ChooseFromList oCFL = null;
            oCFL = oForm.ChooseFromLists.Item(sCFL_ID);
            if (oCFLEvento.BeforeAction == false)
                SAPbouiCOM.DataTable oDataTable = null;
                oDataTable = oCFLEvento.SelectedObjects;
                string val = System.Convert.ToString(oDataTable.GetValue(0, 0));
                if ((pVal.ItemUID == "it_BPCode") && pVal.ActionSuccess)
                    ((SAPbouiCOM.EditText)oForm.Items.Item("it_BPCode").Specific).Value = val;

  • I got ipod touch not working, screen totally blank and the problem is i don't have nearly a year what should i do

    i have ipod nano wont works after i changing its and the problem is i cant remember when i got its or if its out of warranty, what should i do??

    If the card has been redeemed onto your account then you shouldn't need to re-enter it - I've never had to re-enter any of mine, and once a card has been redeemed it effectively becomes zero, it's value should be added to your balance. What is happening when you try to buy the song ?

  • Having Problems with my Screen Painter

    Hi,
    I'm new to SAP and I'm still learning. I'm on this part of tutorial wherein I am trying to create a Screen using the Screen Painter. But the problem is, the interface of SAP in the book looks something like this:
    http://www.kodyaz.com/articles/sap-abap-tutorial-alv-grid-cl_gui_alv_grid-screen-painter.aspx
    But my interface looks different. I'm sorry I can't post the picture here but It can be well described. It looks like a "notepad" with horizontal lines.
    Has anyone encountered this kind of screen painter? Hope someone could help me.
    Thanks.

    Hi,
    Do you receive some error like 'Graphical Layout Editor not available 37527'. Does the problem occurs only for some users or for all the users?
    If the issue is for all users, I suggest to check notes 101971 and 204910.                                                                               
    If its for a particular user, please make sure "graphical layout editor" is checked under SE51->munu Utilities/settings->tab ScreenPainter.           
    Hope this info helps,
    Br,
    Javier

  • Regarding the flow logic in screen painter

    Hi Experts
    I am a BW guy and i am new to ABAP and i need your help to solve my problem.
    I have created a table for master data(zemp_data) in R/3 se11..which has fields like zempid,zempname,zmgrid,zdeptid,zdeptname and i have created the respective fields in screen painter too but my problem is i dont know how to link this fields  in the screen painter to the  fields in table .to be more clear i want the flow logic or module pool code to link this table when i give an entry in the screen painter for the respective  fields..i will really appreciate your answers and award the maximum points for the usefull answer ..as i dont know ABAP much if it is a step by step approach ..that would be helpfull
    Regards,
    RK.

    Hi Karthik,
    Please consider the following
    In the screen...the fields must be from the database table in Se11..(in screen painter -> use.."get from Dictionary" -> enter the table name -> select the fields -> drag and drop on the screen) or must have the same name in the database table..This will be a link but unless you code to fetch values from database or update values to database there will be no action taking place
    Usually in the PBO(process befor output) we write the code to display values before we accept data from the user ie,set default values on the screen if required and prepare the screen for user input
    in the PAI of the screen painter we can do data processing ie, data validations,checks and saving based on what the user wants
    So imagine you have buttons placed on the screen and there are buttons from standard application bar like BACK,SAVE, set using PFstatus..all the user actions will be linked to a function cod..ie whenever user presses a button we can uniquely idntify what was pressed by assigning a function code to each button in the menu painter or PF status and do the action accordingly
    Assume that you have created a push button on the screen painter and assigned it a function code "PUSH"
    so whenever you press the button in the variable sy-ucomm "PUSH" will be captured..this you can check in PAI for the screen like
    Case sy-ucomm.
    when 'PUSH'.
    do the needful coding
    when 'SAVE'
    Modify database table
    endcase.
    you can check the standard demo programs in SE38 -> program name-> display for basic ABAP coding you have asked for
    (1)demo_dynpro_input_output .
    (2)demo_dynpro_dictionary
    (3)demo_dynpro_push_button
    Pls let us know if you need more help on the same
    Reward if helpful
    Regards
    Byju

  • How to work with Alphanumeric Editor in Screen Painter?

    Hello Guys,
    I am trying to work on Screen Painter Layout and it's showing me that Graphical Screen Editor is not
    available and continue working with Alphanumeric Editor.I don't know how to work on this.Guys,
    Please let me know why is the message and what can we do about it.
    Thanks in advance,
    Sri

    Somtimes you will get this message if something got screwy with your SAPgui, for me simply closing out of SAPgui and going back in has fixed this issue.  If you do not know for sure that your SAPgui had been installed including the screen painter, then you should start there.  You will need the SAPgui installation executable, either from CDs or a downloaded file.  Run the SAPgui installation, and make sure to select the screen painter as part of the install, i believe it is under "development tools" in previous versions.  In newer versions I believe it is installed by default, but I do no for a fact that it is not this way in earlier releases, such as the 46D gui.
    So for make sure that Screen Painter has been installed with your SAPgui, if you are sure that it had been installed, perhaps it was working fine yesterday, then I would suggest first closing out SAPgui, and going back in, and trying the screen painter, If the problem persists, it may be worth it to reinstall the gui.
    Regards,
    Rich Heilman

  • Screen Painter don't work

    Screen Painter don't work when I click menu "Tools/Screen Painter", and show a System Message :Add-on Screen Painter is disconnected.Please contact:www.sap.com
    Restart Add-on
    Log off the current company
    Continue working without this Add-on.
    What should I do?

    Hi
    First uninstall Screen Painter then open the file C:\Program Files\SAP\SAP Business One\AddOnsLocalRegistration.sbo
    in notepad remove the lines related to screen painter (If there is any)
    <AddOn Exe="BK_ScreenPainter.exe" Installer="ScreenPainterInstaller.exe" InstallerMD5="384B6B18CA81A26CD8CC2A160BBBFC0A" Name="Screen Painter" Path="C:\Program Files\SAP\SAP Business One\AddOns\BK\Screen Painter" SelfUpgrd="false" Space="BK" UID="BK_Screen Painter" UnInstEstTime="180" UnInstParams="/zu201Duninstallu201D /x" UnInstaler="ScreenPainterInstaller.exe" UnInstallerMD5="384B6B18CA81A26CD8CC2A160BBBFC0A" Ver="880229"><Common ID="1" Name="B1DEVSRV"/></AddOn>
    save it and try again to install the screen painter.
    If that doesn't work  go to this C:\Program Files\InstallShield Installation Information directory and find find the screen painter installer and remove it.
    Hope this will help you
    Regards
    Arun TB

  • Screen painter attributes

    can u give me the function of screen painter attributes and tools which r used in layout editor??????

    Hi Srinivas
    ·        Screen number
    A four-digit number, unique within the ABAP program, that identifies the screen within the program. If your program contains selection screens, remember that the screen numbers of selection screens and Screen Painter screens both use the same namespace. For example, if you have a program with a standard selection screen, you may not create any further screens with the number 1000. Lists, on the other hand, have their own namespace.
    ·        Screen type
    - A normal screen occupies a whole GUI window.
    - Modal dialog boxes only cover a part of a GUI window. Their interface elements are also arranged differently. - Selection screens are generated automatically from the definition in the ABAP program. They cannot be generated using the Screen Painter.
    - A subscreen is a screen that you can display in a subscreen area on a different screen in the same program.
    ·        Next screen
    Statically-defined screen number, specifying the next screen in the sequence. By entering zero or leaving the field blank, you define the current screen as the last in the chain. If the next screen is the same as the current screen, the screen will keep on calling itself. You can override the statically-defined next screen in the ABAP program.
    ·        Cursor position
    Static definition of the screen element on which the cursor is positioned when the screen is displayed. By default, the cursor appears on the first input field. You can overwrite the static cursor position dynamically in your ABAP program.
    ·        Screen group
    Four-character ID, placed in the system field sy-dyngr while the screen is being processed. This allows you to assign several screens to a common screen group. You can use this, for example, to modify all of the screens in the group in a uniform way. Screen groups are stored in table TFAWT.
    ·        Holding data
    If the user calls the screen more than once during a terminal session, he or she can retain changed data as default values by choosing System
    Layout Editor
    We use layout editor to place screen element in screen layout. There are two modes in editing layout: Graphical and alphanumeric. Both modes offer the same functions but use different interfaces. In graphical mode, you use a drag and drop interface similar to a drawing tool. In alphanumeric mode, you use your keyboard and menus. It is easier to work in graphical mode, to toggle beetween this mode, in SE51 go to: Utilities->Settings: in screen painter tabs check graphical layout editor.
    Layout editor contains these tools:
    i. Element pallete
    On left screen you will find list of element (textbox, label, checkbox) you can use. Drag and drog element to put it on screen.
    ii. Name & Text
    Aftef put element on screen, write its name and text (in textbox, text will set default value).
    iii. Attributes Window
    Double click the element to display its attributes, or select it then click :Goto->Secondary window->attributes. For example, in textbox element, we can set its length, read only mode, in this window.
    iv. Dictionary/program field.
    If we want to create a field refer to field in data dictionay or field already declared in program, use this menu to create text field with the same type compared to its referral.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 11, 2008 6:04 PM

  • Installing Screen Painter

    I have been trying to install the screen painter addon and have been following ScreenPainter_SetupGuide. However after registering the addon and further on restarting Sap Business One, the installation does not start.
    I am on version 2004A, PL:5

    Hi Pankaj,
    It is weird indeed.
    Could you please check the following information?
    1. Open SQL Enterprise Manager.
    2. Select SBO_COMMON DB.
    3. Open SARI table as "Return all rows".
    4. Check if Screen Painter is register correctly.
    Let me know the result.
    Thanks,
    Nick

  • Big problems with Matrix and Screen Painter

    Hi all !!!
    I have a terrible time with my matrix in screen painter. I looked over all the samples in SDK and tried different things. The closest i got to make it work is when my form loads, i can click in each on my cells on the first row of the matrix but when i enter data if i click on another cell i lose the data. My form is fairly simple. I got 4 fields as regular data and a matrix with 8 columns. Can someone help me with this !!!  Maybe one of you have an complete example for entering manually data in cells and then save it. I'm using a UDT (not UDO) table and using .net ...
    Thanks in advance

    Hi Alain
    It's not necaserry to delete the matrix. Leave it there. Then access your matrix with the following code
    Dim oMatrix As SAPbouiCOM.Matrix
    Dim oColumn As SAPbouiCOM.Column
    Dim oColumns As SAPbouiCOM.Columns
    oMatrix = SBO_Application.Forms.Item("FormID").Items.Item("MatrixID").Specific
    oColumns = oMatrix.Columns
    oMatrix.Clear()
    then create datasource and bind
    oForm.DataSources.UserDataSources.Add("DataID", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
    oColumn = oColumns.Item("ColID")
    oColumn.DataBind.SetBound(True, "", "DataID")
    Hope this helps

  • Matrix column position problem in screen painter.

    hi.
    i am facing one problem.
    ie.
    i am developing one screen.
    it is having 3 matrix
    each matrix is having some columns
    one matrix ok two matrix ok thrid  matrix ok.
    but
    under third matrix i put some columnes
    1, 2 ,3, 4,
    in screen painter design mode every thing is ok
    it is appearing like 1,2,3,4
    but at preview mode or through the code if i open
    it is  appearing like 1, 4,3,2
    in preview mode screen painter if i click on the form settings it is showing only..
    matrix one columns only  it is not showing either 2 or 3
    and if i open the form through the code..
    i am able to see the columns of matrix 1 n matrix 2 and matrix 3
    i am using some code.
    If (pVal.FormUID = "WIP2PROCESS" And pVal.ItemUID = "1000007") Then
                                oForm = SBO_Application.Forms.Item("WIP2PROCESS")
                                oForm.PaneLevel = 2
                                oForm.Settings.Enabled = False
                                oForm.Settings.MatrixUID = "59"
                            End If
    now through the source code i am able to see the each column under matrix.
    but if  i change the matrix position at form setting it is changing but
    if i click other folder and come back to previous  folder..
    again the column position is   1, 4,3,2
    previously i changed to  1,2,3,4
    how can i do it..
    screen painter can i change it..
    Any information plz update me..

    Hi Srinivas,
    Can you do one thing for me ? Open your form in screen painter, set the columns as you want to display. Now change the unique id for the matrix. Then try to open it through code or see in preview mode.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Screen Painter and Matrix

    In screen painter I am unable to attach the folder with the respective matrix. Please give the complete method to attach the above mentioned.

    Hi Manish,
    I am not too sure what you want to know, but if you want a matrix to be displayed only on a specific folder you should do the following. I am going to show you the code, but you can do parts of it in screenpainter as well. In screen painter you cannot display it like you would at runtime.
    On your matrix you would set the PaneFrom and PaneTo properties. To only set it visible on the first folder:
            Dim oItem As SAPbouiCOM.Item
            Dim oForm As SAPbouiCOM.Form
            oForm = oApplication.Forms.ActiveForm
            oItem = oForm.Items.Item("My_Matrix")
            oItem.FromPane = 1
            oItem.ToPane = 1
    To add the folder you'll have to remember to set the ValOn and ValOff properties:
            Dim oFolder As SAPbouiCOM.Folder
            oFolder = oForm.Items.Item("My_Folder").Specific
            oFolder.Caption = "MyFolder"
            oFolder.DataBind.SetBound(True, "", "UDS_1")
            oFolder.ValOff = 0
            oFolder.ValOn = 1
    To invoke the folder's click event you have to code it manually:
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApplication.ItemEvent
            If pVal.FormTypeEx = "My_Form" Then
                If pVal.BeforeAction = True Then
                    If pVal.ItemUID = "My_Folder" Then
                        If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
                            Dim oForm As SAPbouiCOM.Form
                            oForm = oApplication.Forms.ActiveForm
                            oForm.PaneLevel = 1
                        End If
                    End If
                End If
            End If
        End Sub
    Hope it helps,
    Adele

  • SAP GUI 7.20 for Windows and problem with Screen Painter

    Hello,
    I just installed the SAP GUI 7.20 for Windows and it looks good.
    But when when I start the Screen Painter for a dynpro I get the following message:
    Graphical Layout Editor not available. Continue with alphanumeric editor.
    And: EU_SCRP_WN32 Connection broken  '..' / CPIC
    The SCreen Painter is installed correctly (I can start ist manually from file system) and the RFC destination works.
    Any idea?
    Regards,
    Ole.

    Hello,
    I've uninstalled all SAP installations, cleaned the registry of Windows XP and deleted all folders with SAP content. Then I've installed the SAP Gui 7.20 again and it works.
    And now I will update the Screen Painter with the information from the OSS-Note!
    Thank's for your help!
    Regards,
    Ole.

Maybe you are looking for

  • Using chart colors with shapes

    Does anyone know if it is possible to use chart colors(etched metal, wood, etc.) with "shapes" created in Pages '08? Thank you,

  • Help using AT NEW, AT END OF

    Hi experts,        I am not able to get desired result by using at new and at end of in my report. This is what i have in my internal table ifinal. fields f2 and f3 are don't care. f1      f2       f3       f4     f5 a       x        x        10    5

  • How to start JSPM on linux

    Hi I want to upgrade Netweave 2004s sp9 to sp11, it is on linux plateform, I loged the server user <SID>adm, when i run the go script, it hanged at " Waiting for SDTServer to connect to hostname xxxxxxxx socket 6240" , anyone met the problems and how

  • HP 7520 removing print aps

    I cannot for the life of me remove the annoying print ap icons.  Does anyone know how to do this.  I would like to get rid of all of them.  This is for HP Photosmart 7520 printer, windows 8.1 OS. Thanks, FrustratedUsr13

  • How to control the print spool.

    hi, there, Can i control the spool' name and generation unit. for example. set the name of spool & unit of spool , then call smartforms. then output