Connecting a Screen Painter From to a Menu

I have created a form using the screen painter.
I have created  a new menu entry for this form.
I have added the screen painter form into my solution.
I am catching the new menu item click.
what i do not have is the code to activate the form.

Try this code Dror
If (pVal.MenuUID = "U_xxx") And (pVal.BeforeAction = True) Then
Dim oXmlDoc As Xml.XmlDocument
        oXmlDoc = New Xml.XmlDocument
        Dim sPath As String
        sPath = IO.Directory.GetParent(System.Windows.Forms.Application.StartupPath).ToString
        Try ' If there's no file then the looding will fail
            oXmlDoc.Load(sPath & "\" & "FileName")
        Catch ' Loading  failed
            SBO_Application.MessageBox( " File not found")
            End
        End Try
        SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)
            oForm = SBO_Application.Forms.Item("FileUid")
        oForm.Visible = True
  End If
Selin

Similar Messages

  • Loading screen painter form via a menu event.

    Hi,
    In my application, I am trying to get my screen painter form (.srf) to display through a menu event. The thing is when I click on the menu the first time it loads okay but when I close it and try to open it by clicking it again nothing happens. I am doing it as below.
    Anyone have any ideas?
    private void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                try
                    if ((pVal.MenuUID == "vdetails") & (pVal.BeforeAction == false))
                        Form_1();
                catch (Exception ex)
                    SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    private void Form_1()
                string strTmp = "vclMgt.srf";
                LoadFromXML(ref strTmp);
                oForm = SBO_Application.Forms.Item("frmVMGT");
    private void LoadFromXML(ref string FileName)
                System.Xml.XmlDocument oXmlDoc = null;
                oXmlDoc = new System.Xml.XmlDocument();
                string sPath = null;
                sPath =  System.IO.Directory.GetParent(System.IO.Directory.GetParent(Application.StartupPath).ToString()).ToString();
                oXmlDoc.Load(sPath + @"\" + FileName);
                string strXML = oXmlDoc.InnerXml.ToString();
                SBO_Application.LoadBatchActions(ref strXML);

    Hi Binita,
    Thank you for your suggestion but it hasnt worked, the form doesnt display and no errors appear.
    This is how i've done it in C#
    private void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                try
                    if ((pVal.MenuUID == "vdetails") & (pVal.BeforeAction == false))
                        foreach (SAPbouiCOM.Form oForm in SBO_Application.Forms)
                            if (oForm.UniqueID == "frmVMGT")
                                found = true;
                                MessageBox.Show("Found");
                        if (found == true)
                            SBO_Application.Forms.Item("frmVMGT").Select();
                        else
                            LoadFromXML("vclMgt.xml");
                catch (Exception ex)
                    SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    Where 'found' is global.
    I saw a similar issue someone else had but it wasnt resolved.
    Any more ideas?

  • SP01: Screen Painter Unresponsive

    I just installed a new Windows 2003 system and then SAP B1 2005A SP1 P02 and the SDK, and then Screen Painter.  I can get the screen painter UI displayed (toolbar) but the screen is empty and unresponsive.  When I click the button to add a new form, nothing happens.  When I click the button to open a form from a file, nothing happens.  Is there some license or security setting that I'm missing?
    Message was edited by: Frank Moebius
    Hi Ben,
    Please add the "SP01:" prefix when reporting SP01 issues - as adviced in the available documentation.
    Thank you very much,
    Frank

    i think i found my problem.
    i used screen painter from SP00.
    when i uninstalled the screen painter and installed screen painter version from SP1 PL2. the screen painter works correctly
    hope it helps
    Moty

  • 6.7 Screen Painter error

    Hi all,
    I've just installed SBO version 6.7 and when I try to run the Screen Painter I get the following error message:
    Run-time error '-7000' (ffffe4a8)':
    Form - Invalid
    No forms have been opened, the error message displays when I click on the screen painter option in the menu. Does anyone have any suggestions of what's gone wrong? Perhaps I've installed 6.7 incorrectly?
    Lita

    I think the problem was fixed when I got SBO licensed? The 2004 version will not let you do things like upgrade to a patch unless you have a licensed version.

  • Screen painter initializing error.

    Hi all,
    This is an error that i am facing while starting screen painter.When starting screen painter from Add on manager it says
    User has no license for screen painter.Where as i have allocated addon license from addon manager to user.
    I am using SAP B1 2007b Pl 11,MSSQL 2005
    With regards ,
    Debabrata Kumar

    Hi Debabrata Kumar,
    Have you also assigned SDK license to the same user?  I believe Screen painter need SDK license too.
    Thanks,
    Gordon

  • Screen painter looks different

    Hello experts,
    I am currently confused as to why screen painter(se51) looks different. I want it to be just like the old way where it looks like VB. buttons, checkbox, etc are shown on the left side. All I can  see is blank page. Thanks a lot guys!

    Hi,
    goto utilities->setting->screen painter(from tab)
    check graphical layout editor.
    you ll find the same screen painter again.
    what you see is the alpha numeric screen painter currently.
    regards,
    Kinshuk Saxena
    Ps: reward points if you find the post helpful

  • No responce from Graphical Screen Painter - Exiting

    Hi,
    I am facing problem in a TCP/IP connection. While testing the connection EU_SCRP_WIN32, It shows the connection test OK. But after that it shows a screen saying "Starting layout editor program..."  After that it shows a error screen saying " No responce from Graphical Screen Painter - Exiting."
    I have installed SAPGUI patch 9. The file gnetx.exe is also there in Path C:\Program Files\SAP\FrontEnd\SAPgui.
    Please suggest.
    Thanks in advance,
    Suresh

    Hi
    Error "gnetx.exe: no response from graphical screen painter - exiting"
    basically occurs when we have RFC problem.
    Some causes for this erros are incorrect or missing RFC definitions of the RFC destination EU_SCRP_WN32.
    Thats why connection test is failing in that. Check all the RFC destinations and definitions properly through SM59 tcode.
    Also keep in mind that the graphical layout editor cannot be operated through a firewall (f.e: between the SAP and the customer system).
    Please, check SAP Note 101971 regarding all the possible causes for problems with the RFC link setup.
    Also check SAP Note 204910 which can help you to fix the error.
    Hope this helps.
    Kind Regards

  • How to show screen design in .srf (from Screen Painter) using SDK?

    How to show screen design in .srf (from Screen Painter) using SDK?

    You need to use the LoadBatchActions method of the Application object to load .SRF files.
    John.

  • How can I get to home screen from car dock menu when an app is running?

    Just upgraded to the RAZR MAXX from a Droid 2 Global.
    When the phone is mounted in the car dock and an app is running (Navi, Music, etc.), how can you get to the main home screen of the phone rather than the car dock menu?
    Follow me......
    * Phone is mounted in Car Dock.
    * If there are NO apps running, pressing the BACK key from within the Car Dock Menu takes you directly to the Home screen.
    However.....
    * Phone is mounted in Car Dock.
    * Navigation(or any app, for that matter) is running.
    * Pressing MENU key takes me to Car Dock Menu.
    * There's no exit option available to exit from car dock menu.
    * Pressing BACK key takes you back to the app that's running, not the home screen.
    * Long press of HOME key only takes you to an app list screen, not home screen.
    * Only way to get to home screen is to repeatedly press the BACK button exiting out of the Car Dock Menu and cancelling all apps that are currently running.
    On my Droid 2, I was able to quickly exit the Car Dock Menu simply by pressing the BACK or exit button, regardless of which or how many apps were running. They would still run in the background, showing on the status bar.
    Anyone know of a work around? I couldn't find any settings to change within the Car Dock menu to change this. Stopped by three Verizon stores and they all say we have to be missing something, as they couldn't figure it out either. One rep told me it was a new "nanny" feature so that you couldn't access your apps while driving, however when I pointed out that you could access the home screen if no apps were running, he wasn't sure what to say.
    Any help?

    I solved my problem eventually by getting all the devices - 2 iphones, the newish pc and the older Mac on icloud.
    All media, calenders and messages were lost from the iphones, except for purchased itunes that I paid another $30 to Apple to save for me and also paid Appple some more to use icloud but the good news is I did save my contacts
    I opened all of my contacts and pretty much had to edit and drag them over almost individually as they weren't all in some sort of configuration that Apple liked - i.e. if an email address ended in ch or es or de it might not be accepted as a properly configured vcard.
    It would be nice if Apple made it a litle easier when you have older devices and need to get them in sync with newer ones.

  • How to enter values in ztable from screen painter

    Hi guys,
    I have a scenario,where i have to enter values in ztable for the values entered in  screen painter.The screen painter is supposedly having 10 columns. i enter the value in the grid(table) and when i save, the records have to be inserted into ztable created by me. how to go through the problem. kindly help in  giving a flow for the problem .If anybody has gone through this scenario please help out.
    Thankx in advance
    Regards
    Navin

    if ur entering one record at a time from sreen to table then
    u have to use ,
    in pai module of the screen u have to code,
    case sy-ucomm.
    when 'SAVE'.
    ztable-roll = ztable-roll.
    ztable-name = ztable-name.
    insert ztable/modify ztable.
    ENDCASE.
    if ur screen is having a table control
    then u have to create a loop inside a module.
    like
    loop at tabcontrol_name
    module insert_data.
    endloop.
    and in the doubleclked module,
    move-corresponding ztable to ztable.
    insert ztable.
    Note : in both cases u have selected input fields as from
    table/dictionary in the screen.
    Regards

  • Trying to change my phone number. screen says to choose area code from drop down menu but it is blank and won't let me go further

    I am trying to change my phone number. Screen says to choose area code & prefix from drop down menu.  Drop down is blank.  Will not let me go further

        Hello llamamama9,
    Yikes! I'm sorry to learn you are having issues with changing your mobile number. I understand how important this options is. I'm dedicated to making sure this is completed once and for all. I know some time has passed since your original post, have you changed your mobile number? If not, please visit http://vz.to/V668o0 If you are still having issues after following this guide, please feel free to reach out to us, thanks!
    MatthewS_VZW
    VZW Support
    Follow us on Twitter @VZWSUPPORT

  • Call alv from screen painter

    hello all expert,
    i have requirement display alv report in screen painter. select options and report display on same screen.
    iam taking custom control for display alv report .but when i click on button alv not displayed in custom control.
    plz help me anyone /
    there is no hurry.
    Thanks in advance,
       sandeep.
    Edited by: Thomas Zloch on Jan 22, 2011 1:00 PM - urgency reduced

    Thanks for reply ,
    now i write my code in  pbo and pbi event but report not displayed yet.
    now this is the code.
    *& Report  ZTEST_SCREEN1                                               *
    REPORT  ZTEST_SCREEN1                           .
    DATA :
      gr_EBELN TYPE RANGE OF EKKO-EBELN,
      grs_EBELN LIKE LINE OF gr_EBELN.
    DATA:
      gs_fieldcatalog TYPE lvc_s_fcat OCCURS 0,
      gv_fcat LIKE LINE OF gs_fieldcatalog,
      gs_layout TYPE lvc_s_layo.
    TYPES :
      BEGIN OF gty_item,
        mandt LIKE EKKO-mandt,
        EBELN LIKE EKKO-EBELN,
        lifnr LIKE EKKO-lifnr,
        matnr LIKE EKPO-matnr,
       desc_text LIKE zEKPO-desc_text,
      END OF gty_item,
      BEGIN OF gty_EKKO,
        mandt LIKE EKKO-mandt,
        EBELN LIKE EKKO-EBELN,
        lifnr LIKE EKKO-lifnr,
      END OF gty_EKKO,
      BEGIN OF gty_EKPO,
        EBELN LIKE EKPO-EBELN,
        matnr LIKE EKPO-matnr,
      END OF gty_EKPO.
    DATA :
      gs_item TYPE gty_item,
      gt_item TYPE TABLE OF gty_item.
    DATA :
      gs_EKKO TYPE gty_EKKO,
      gt_EKKO TYPE TABLE OF gty_EKKO,
      gs_EKPO TYPE gty_EKPO,
      gt_EKPO TYPE TABLE OF gty_EKPO.
    DATA :
      g_Container TYPE scrfname VALUE 'CC_CONTAINER_GRID',
      g_Custom_Container TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
      g_Grid TYPE REF TO CL_GUI_ALV_GRID.
    DATA :
      OK_CODE LIKE sy-ucomm,
      SAVE_OK LIKE sy-ucomm.
    START-OF-SELECTION.
    call screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MAIN'.
      SET TITLEBAR 'TITLE'.
      IF g_Custom_Container IS INITIAL.
    "Create CONTAINER object with reference to container name in the screen
        CREATE OBJECT g_Custom_Container EXPORTING CONTAINER_NAME =
        g_Container.
        " Create GRID object with reference to parent name
        CREATE OBJECT g_Grid EXPORTING I_PARENT = g_Custom_Container.
        PERFORM u_prepare_fieldcatalog.
        gs_layout-ZEBRA = 'X'.
        "gs_layout-edit = 'X'. " Makes all Grid editable
        " SET_TABLE_FOR_FIRST_DISPLAY
        CALL METHOD g_Grid->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
            is_layout = gs_layout
          CHANGING
            it_fieldcatalog = gs_fieldcatalog
            IT_OUTTAB = gt_item. " Data
      ELSE.
        CALL METHOD g_Grid->REFRESH_TABLE_DISPLAY.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE OK_CODE.
        WHEN 'EXIT' OR 'BACK' OR 'CNCL'.
          LEAVE PROGRAM.
        WHEN 'LIST'.
          PERFORM u_filter_EKKO.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  u_filter_EKKO
          text
    -->  p1        text
    <--  p2        text
    FORM u_filter_EKKO .
         REFRESH gt_EKKO.
      Define Range Criteria
      grs_EBELN-SIGN   = 'I'.
      grs_EBELN-OPTION = 'EQ'.
    grs_EBELN-low    = '6000000004'.
    grs_EBELN-high   = ekko-ebeln.
      APPEND grs_EBELN to gr_EBELN.
    CHECK gr_EBELN[] IS NOT INITIAL.
      SELECT mandt EBELN kunnr
        FROM EKKO INTO TABLE gt_EKKO
        WHERE EBELN IN gr_EBELN.
      CHECK gt_EKKO[] IS NOT INITIAL.
      SELECT EBELN matnr
        FROM EKPO INTO TABLE gt_EKPO
        FOR ALL ENTRIES IN gt_EKKO
        WHERE EBELN EQ gt_EKKO-EBELN.
      IF gt_EKKO[] IS NOT INITIAL.
        LOOP AT gt_EKPO INTO gs_EKPO.
          READ TABLE gt_EKKO INTO gs_EKKO WITH KEY EBELN = gs_EKPO-EBELN.
          gs_item-mandt = gs_EKKO-mandt.
          gs_item-EBELN = gs_EKKO-EBELN.
          APPEND gs_item TO gt_item.
          CLEAR gs_item.
          CLEAR gs_EKKO.
          CLEAR gs_EKPO.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " u_filter_EKKO
    FORM U_PREPARE_FIELDCATALOG .
      CLEAR gv_fcat.
      gv_fcat-fieldname = 'MANDT'.
      gv_fcat-tabname = 'EKPO'.
      gv_fcat-col_pos = 0.
      gv_fcat-coltext = 'MANDT'.
      gv_fcat-no_out = 'X'. " Do not Display Column
      INSERT gv_fcat INTO TABLE gs_fieldcatalog.
      CLEAR gv_fcat.
      gv_fcat-fieldname = 'EBELN'.
      gv_fcat-tabname = 'EKPO'.
      gv_fcat-col_pos = 1.
      gv_fcat-coltext = 'EBELN'.
      INSERT gv_fcat INTO TABLE gs_fieldcatalog.
      CLEAR gv_fcat.
      gv_fcat-fieldname = 'ERDAT'.
      gv_fcat-tabname = 'EKPO'.
      gv_fcat-col_pos = 2.
      gv_fcat-coltext = 'ERDAT'.
      INSERT gv_fcat INTO TABLE gs_fieldcatalog.
      CLEAR gv_fcat.
      gv_fcat-fieldname = 'KUNNR'.
      gv_fcat-tabname = 'EKPO'.
      gv_fcat-col_pos = 3.
      gv_fcat-coltext = 'KUNNR'.
      INSERT gv_fcat INTO TABLE gs_fieldcatalog.
      CLEAR gv_fcat.
      gv_fcat-fieldname = 'MATNR'.
      gv_fcat-tabname = 'EKPO'.
      gv_fcat-col_pos = 5.
      gv_fcat-coltext = 'MATNR'.
      INSERT gv_fcat INTO TABLE gs_fieldcatalog.
    ENDFORM. " U_PREPARE_FIELDCATALOG

  • How to delete invisible fields from screen painter SE51?

    Dear all,
    How to delete/remove invisible fields from screen painter SE51?
    Thanks.

    HI,
    just go to screen painter-->layout in change mode.
    the invisible fields will be looking faded
    click on that and press the DEL button.
    that will be deleted.
    <b><REMOVED BY MODERATOR></b>
    vivekanand
    Message was edited by:
            Alvaro Tejada Galindo

  • Screen Painter and Menu Painter Translations

    Hello All,
    I want to translate the Screen painter and Menu Painter Objects .
    When I go to the SE41 and select the PF Status of my Program and press change Button I'm getting the following msg :
    Make repairs in foreign namespaces only if they are urgent .
    If I press Ok and select the Menu path : Goto --> Translation .
    The Translation options is in deactivated mode.
    How to do the Translation now ?
    Regards,
    Deepu.K

    Hi
    Run trx SE63, then go to: Translation->Short Texts->Screen Painter
    Choose:
    - Header to translate the title of attribute of the screen;
    - Texts   to translate the label of the input/ouput fields
    Translation->Short Texts->User interface to translate the menu
    Max

  • How to add a search help on a screen field from screen painter

    Hi,
    I would like to add an existing Search Help on a screen field in Screen painter.
    Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
    The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
    I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
    Do you have an idea on how to do so?
    Regards,
    Morgan

    Dropdown Box:
    In the screen painter for that field goto properties -> Dropdown ->select listbox.
    Option 1:
    Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
      CHAIN.
        FIELD addr1_data-country.
        MODULE modify_screenfields1.
      ENDCHAIN.
    MODULE modify_screenfields1 INPUT.
      CASE sy-ucomm.
        WHEN 'ENTER' OR 'EXECUTE'.
          IF NOT addr1_data-country IS INITIAL.
            SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
                                          land1 = addr1_data-country
                                      AND spras = 'EN'.
            IF sy-subrc <> 0.
              MESSAGE e000(zo_spa) WITH text-022.  " Invalid Country code
            ELSE.
              t005t-landx = lws_landx.
            ENDIF.
          ELSE.
            CLEAR: t005t-landx.
          ENDIF.
       ENDCASE.
    ENDMODULE.                 " modify_screenfields1  INPUT
    Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
    In the PROCESS ON VALUE-REQUEST.
      FIELD addr1_data-region MODULE region_pov.
    MODULE region_pov INPUT.
    Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
    also make that field input enabled.
    ENDMODULE.                 " region_pov  INPUT
    I think this will solve ur problem.
    Regards,
    Prakash.
    Message was edited by: Prakash Ramu

Maybe you are looking for

  • Wants to change value in Condition Tab ( ZOTL ) of PO

    Dear Expert, I was created subcontracting PO with item category L. In condition tab I put value 10,000 for other charges by mistake I want to change that value 1,000. PO quantity is 1000 and I did GR of 600 material quantity for that purchase order.

  • Oracle and MySql via ODBC - Field with special characters

    Hi, I recentely installed and configured DG4ODBC 11.2 in my environment, with Oracle 10g as Database. I have a working ODBC and I can successfully select from tables@mysql. I have a problem with some fields in the mysql table though: various fields a

  • How to add incoming payment lock field (EZASP or INC_PAY_LOCK) in CA of MDT

    I want to add the field of incoming payment lock  in the master data template contract_account. i tried the following configuration(Tcode =EPDTYPE) Type Name       EZASP_OLD_KK Table Name      FKKVKP1 Field Name      EZASP Counter         888 Table N

  • Download Binary Data File over Serial Port

    I need help setting up a .vi that I can use to download a binary data file from a dos-based system. I will send the system a command, say ascii "DOWNLOAD", and then the remote system will send me a binary data file that will be approx. 600MB. I won't

  • Photoshop CS3 Windows à installer sur MAC

    Bonjour, Je suis propriétaire d'une licence  Photoshop CS3 pour PC Windows et je viens de changer de PC. Je viens d'acheter un Mac Book et je voudrais installater ma version de photoshop sur mon MAC Book. Comment faire, SVP? Message was edited by: do