Creating Custom Control on screen dynamically

Hi All,
Is it possible to create custom controls dynamically through ABAP code.
If not, can we change the size of custom control at run time through ABAP code.
Thanks
Satya Priya

Hi,
Please ellaborate your Query...
if ur taking abt Custom Control in Reporting , Module Pool than it is possible using Events.
Affable
Arbind

Similar Messages

  • Customer Control in screen painter in Module pool - work like container?

    Customer Control option in screen painter in Module pool - work like container?
    is it true? How?
    Is like any work area or what?
    what is the excat use of that option?
    regards.

    Hello,
    In screen painter ,custom control is used to define the control area on the screen.Just click on that and make your own container area.When you create an ALV grid or TEXT EDITOR or any other control,it will get attached to the screen in that area through the custom container.
    Name the container area as say '<b>CONTAINER</b>'.(in capitals.)
    When you actually create the custom conatiner programatically,you should give the container area name.ie.
    Data : cont type ref to cl_gui_custom_container.
    Create object cont
    exporting
    parent = '<b>CONTAINER</b>'.
    Now,this container that you created-cont is attached to the screen in the area defined by CONTAINER.
    Regards,
    Beejal
    **Reward if this helps

  • How to create custom BOL object for dynamic query in CRM 7.0

    Hi,
    Could anyone please explain me with steps that how to create the custom BOL object for dynamic query in CRM 7.0, I did it in previous version but its throwing exception when i try to create the object of my dynamic query class. I just defined the entry of my in crmv_obj_btil to create the dynamic query BOL object. do i need to do any other thing also to make it work?
    Regards,
    Kamesh Bathla
    Edited by: Kamesh Bathla on Jul 6, 2009 5:12 PM

    Hi Justin,
    First of thanks for your reply, and coming to my requirement, I need to report the list of items which are there in the dynamic select statement what am getting from the DB. The select statement number of columns may vary in my example for different countries the select item columns count is different. For US its '15', for UK it may be 10 ...like so, and some of the column value might be a combination or calculation part of other table columns (The select query contains more than one table in the from clause).
    In order to execute the dynamic select statement and return the result i choose to write a function which will parse the cursor for dynamic query and then iterate the values and construct a Type Object and append it to the pipe row.
    Am relatively very new for these sort of things, welcome in case of any suggestions to make it simple (Instead of the function what i thought to work with) also a sample narrating the new procedure will be appreciated.
    Thanks in Advance,
    mallikj2.

  • How to create custom control  in SE51

    Hi,
    Can any1 help me out to create a custom control in se51.
    Thanks in advance.

    *****Class variables*********
    DATA:
    GO_GRID type ref to cl_gui_alv_grid,
    go_custom_container type ref to cl_gui_custom_container.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZMENU'.
      PERFORM CREATE_OBJECTS.
      PERFORM DISP_DATA.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  CREATE_OBJECTS
          text
    -->  p1        text
    <--  p2        text
    FORM CREATE_OBJECTS .
      CREATE OBJECT GO_CUSTOM_CONTAINER
        EXPORTING
          CONTAINER_NAME              = 'CUST_CONTROL'.
      CREATE OBJECT GO_GRID
        EXPORTING
          I_PARENT          = GO_CUSTOM_CONTAINER.
    *&      Form  DISP_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM DISP_DATA .
    CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IS_LAYOUT            = LS_LVCLAYOUT
          IS_PRINT             = LS_PRINT
          IT_TOOLBAR_EXCLUDING = IT_EXCLUDE
        CHANGING
          IT_OUTTAB            = <TEMP_TAB>
          IT_FIELDCATALOG      = LT_LVCFIELDCAT[]
          IT_SORT              = LVC_TSORT[].

  • Creating data entry form/screen dynamically

    How does one create web application data entry form/screen dynamically? One part of screen will have the option to bring up forms so that users can create forms. DO i need any sort of markup language?
    Examples please.

    use javascript. use the buttons on one panel and forms on another panel.
    for buttons onclick events change the form "action" and send the hidden parameters you want.

  • Cannot create custom controls

    I have the following .ctl file and I am having problems creating a custom control out of it. It is a push button and LED tied together with a frame around it. How can I create this as one control that I can use in my other .vi's?
    Thanks

    Okay, I went ahead and did it.
    I did as I described below and here is the result:
    Attachments:
    indicator_button.ctl ‏6 KB

  • How to create custom controls?

    I created some 3D automation symbols using AutoCad 2000, saved them in BMP, then open in Photoshop and imported into Labview using Ring but i didn't get what i wanted. I can't change colors and can't eliminate frame around the picture (ring). I read help but i didn't find so much help.
    Does anyone wont to explain in step by step how to do that.Which picture format is the best for that. I found at the discusion forum poor explanation with just one example. I know how to create control (simply import couple images into same Ring, but i need to do cosmetics.
    Any help i appreciate.
    Attached is .VI (labview 6.1)with valve i vanted to make as control, so please show me on that example how to do that.
    Attachments:
    Valve.vi ‏12 KB

    Just some tips here:
    1)First of all, if you want to create a custom control, it's better to work with LabView control files ("ctl" extension) rather than VI's. (Select a control you want to customize on the front panel, and choose "Customize control" from the "Edit" menu - you will be presented with a new special window where you have much more possibilities to change the appearance of your control. Two modes are available there - "edit" to set the data type of your control and "customize" (or personalise) - to change its appearance).
    2)I think that the problem you mention about - can't change colors and can't eliminate frame around the picture (ring)- is that near by all LV controls use two colors - foreground and background (toggled by F and B keys on the
    color selection panel) and by default you change only one of them for 3D borders. To elimate the frame you must make then both transparent.
    And here is your control - ctl file - a bit changed by me.
    Attachments:
    valve.ctl ‏11 KB

  • Screen Personas: Create or control button visibility dynamically

    Hi,
    In Screen Personas, would it be possible to do the following with use of scripting functionality,
    1. Dynamically create controls e.g. buttons and assign actions to them
    2. Control Field Visibility( for GUI fields or Persona fields) at runtime
    Regards,
    Jeron

    Hi Tobias,
    Thanks for clarifying. We are currently evaluating Screen Personas for use in SAP DMS.
    Scenario we are trying to simplify is the workflow process in DMS. A DIR(Document) in DMS, has a status field with various values such as
    1. Initial Draft
    2. Submit for Approval
    3. Approved
    4. Rejected
    5. Archive
    6. Retire etc...
    Users, have to pick right status values from an F4 pop-up to pass document along the business process. This is not very intuitive and we would like to provide buttons on screen corresponding to each valid status that can be selected at that point in time. When a button is selected say, "Approve" or "Reject" the corresponding status value should be filled up in the standard status(hidden) field.
    We have numerous doc types and too many status values. Hence, the static approach of defining buttons in Personas does not scale up and is not support friendly.
    I hope i have been able to explain the scenario correctly. If required, i am open to having a call and can elaborate this in detail.
    Regards,
    Jeron

  • Is it possible to create Table Controls(in Dynpro) dynamically

    HI All
    I am not sure if we can create screen elements dynamically especially Table Controls. I need to create a Table control in a custom screen but the fields/columns in the table control are known at run time. Is it possible?? Appreciate any light on this subject.
    Thanks
    Van

    hi
    ccheck for the link
    Check following link for the same.
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D52%26threadID%3D45079%26messageID%3D459011%23459011
    also take a look at the FM
    take a look at FM:
    FREE_SELECTIONS_INIT
    FREE_SELECTIONS_DIALOG
    hope will be helpfull to you.
    regards
    vijay
    <u><b>plz reward pts if helpful</b></u>

  • Creating custom pause/stop screens in DVD SP 4?

    My boss asked me to create a dvd- in which- when the viewer paused or stopped the video,
    the screen would go to our company's logo instead of the dvd player's default logo screen.
    I vaguely remember seeing something like this on a DVD I rented once. Is it possible to do
    this with DVD SP 4? And does anyone know how to do this?
    Help appreciated,
    phil

    yes its same as previous versions for a stop image. needs to be 4:3 ratio. i normally import png file at 720x576 which has been resized from 768x576 square pixel in photoshop. go to main disc settings and you have advanced tab. you can select a jacket image from your assets list and apply the pic you have imported.
    dvd sp gives preview of this in the simulator.
    i dont think it works for pause though, only stop. built in dvd player on mac shows you this, but a lot of dvd players have an option for showing thier own 'screensaver' when paused or stopped rather then showing your custom image, so you may not get a lot of value out of it. its easy enough to do though so we use it on all our dvds.

  • How to create Custom LabVIEW Node with Dynamic Pins?

    I am trying to create a new set of LabVIEW nodes that will communicate with a new protocol.
    If it's at all possible, I'd like to make the new nodes similar to other connnectivity nodes (i.e. ActiveX, .NET, etc...). There would be an Open Reference node that pops up a custom dialog when created, a Close Reference node, a Property node that dynamically changes when the reference pin changes, and an Invoke node that dynamically changes when the reference pin changes.
    Is it possible to create such nodes as sub-VI's? If so, then how? If not, then what is the prefered method of doing this?
    Thanks in advance for any help
    VRMan

    The technique to do exactly this is called XNode. It's very difficult, not
    supported or documented, and although they work in >7.1, you have to use
    scripting a lot, and that is not supported in 8.x. The technique used in 7.1
    is also preceded. I would really not recommend it. Search LAVA if you need
    to know more.
    You could do this with XControls. These technique might not do 100% what you
    want, but at least they are supported. Haven't used LabVOOP (search class or
    classes in the LV help, there are instruction tutorials and videos), but I
    think you can't make property nodes and methods. I'm sure XControls can do
    that. Both are advanced stuff...
    A third option is to make an express VI, that is configurable by double
    clicking on it. Don't like to use them myself, and therefore haven't make
    any. I think you need a toolkit to make them.
    Regards,
    Wiebe.

  • How to create customized controls in LabWindows CVI

    Hello,
    I would like to create more "user friendly" controls  in LabWindows. For example I would like to use a "Round command button" and add a picture on it.
    Do you know if there is a way to do it?

    It should be possible: In the classic-style controls, there is a round command button; you can set the button color to transparent and place it on top of a suitable picture...

  • HowTo - request  "Creating Custom Controls" ...

    This is a request to add to the "howto" category. ( http://javafx.com/learn/howto.jsp )
    I found Jonathan Giles's blog on this topic to be well-written.
    http://jonathangiles.net/blog/?p=478
    1) A simple hyperlink would be nice. Currently this reference is deeply embedded another topic.
    2) It could be re-written to fit an overall style of "how to's" series. I have found a lot of consistency in the Java Tutorial's series.
    3) Will the site javafx.com accept user requests ?. I could send a page for this topic with a slightly expanded example.
    Cheers ...
    /rk

    Did you modify system controls when creating these buttons? Radio buttons are essentially grouped booleans If so, system control booleans have 6 states I believe, not the standard 4 states which LabVIEW buttons have. In these 6 there is a mouse-over state (mouse over true and mouse over false). You will want to import the same image for the mouse over true state as the true state when you customize the control. Same for the false and mouse over false states. That way when there is a mouse over, and it puts the control into that state, it will show the same image rather than a different one.
    CLA, LabVIEW Versions 2010-2013

  • Dynamic screen and custom control

    Hi,
    I have to create a screen and custom control dynamically within a method and display alv grid. Is this possible?
    regards,
    Madhu

    hi,
    this is a smple program just try in this way.plz do reward points if it is of some use
    data:obj type ref to zcl_test_alv.
    parameter:p_mblnr type zbshd-mblnr.
    start-of-selection.
    set screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    if obj is initial.
    create object obj
    exporting p_con = 'MATERIAL_DOC'.
    endif.
    CALL METHOD obj->get_data
        exporting p_mat = p_mblnr.
    endmodule.                 " STATUS_0100  OUTPUT
    The above is an executable program.
    zcl_test_alv is a class which u need to create in se24 according to ur requirement
    u need to define methods and attributes.
    for example there are 3 methods
    constructor
    get_data
    put_data
    method GET_DATA.
    SELECT mblnr
             mblpo
             matnr
             maktx
             meins
             menge
             waers
             dmbtr
             INTO corresponding fields of TABLE it_mm
             FROM  zbsit
             WHERE mblnr = p_mat.
    if sy-subrc = 0.
    call method put_data.
    endif.
    endmethod.
    method PUT_DATA.
    DATA : it_fldcat TYPE lvc_t_fcat.
      DATA : wa_fldcat LIKE LINE OF it_fldcat.
      DATA : it_sort TYPE lvc_t_sort,
             wa_sort LIKE LINE OF it_sort.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      I_BUFFER_ACTIVE              =
       I_STRUCTURE_NAME             = 'ZBMDC'
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           =
      I_INTERNAL_TABNAME           = 'ZBSIT'
      CHANGING
        ct_fieldcat                  = it_fldcat[]
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      EXIT.
      ELSE.
        LOOP AT it_fldcat INTO wa_fldcat.
          CASE wa_fldcat-fieldname.
            WHEN 'MBLNR'.
              wa_fldcat-reptext   = 'Material Doc no'.
            WHEN 'MBLPO'.
              wa_fldcat-reptext   = 'Item Material Doc'.
              wa_fldcat-ref_table = 'X'.
            WHEN 'MATNR'.
              wa_fldcat-reptext   = 'Material No'.
              wa_fldcat-ref_table = 'X'.
            WHEN 'MAKTX'.
              wa_fldcat-reptext   = 'Description'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'MEINS'.
              wa_fldcat-reptext   = 'UOM'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'MENGE'.
              wa_fldcat-reptext   = 'QUAN'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'WAERS'.
              wa_fldcat-reptext   = 'CurrKey'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'DMBTR'.
              wa_fldcat-reptext   = 'curr'.
              wa_fldcat-do_sum    = 'X'.
          ENDCASE.
          MODIFY it_fldcat FROM wa_fldcat INDEX sy-tabix.
        ENDLOOP.
        wa_sort-fieldname = 'MBLNR'.
        wa_sort-up        = 'X'.
        wa_sort-subtot    = 'X'.
        APPEND wa_sort TO it_sort.
    ENDIF.
    CALL METHOD o_grid->set_table_for_first_display
    EXPORTING
       i_buffer_active               =
       i_bypassing_buffer            =
       i_consistency_check           =
       i_structure_name              =
       is_variant                    =
       i_save                        =
       i_default                     = 'x'
       is_layout                     =
       is_print                      =
       it_special_groups             =
       it_toolbar_excluding          =
       it_hyperlink                  =
       it_alv_graphics               =
       it_except_qinfo               =
       ir_salv_adapter               =
      CHANGING
        it_outtab                     = it_mm[]
        it_fieldcatalog               = it_fldcat[]
        it_sort                       = it_sort
       it_filter                     =
    EXCEPTIONS
       invalid_parameter_combination = 1
       program_error                 = 2
       too_many_lines                = 3
       others                        = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endmethod.
    method CONSTRUCTOR.
    CREATE OBJECT o_con
        EXPORTING
           container_name      = p_con .
      IF sy-subrc = 0.
        CREATE OBJECT o_grid
          EXPORTING
             i_parent          = o_con .
      ENDIF.
    endmethod.
    Attributes are
    o_con type ref to CL_GUI_CUSTOM_CONTAINER
    o_grid type ref to CL_GUI_ALV_GRID
    it_mm type zmdoc
    to get alv grid ,in layout editor u need to create custom control
    for constructor method u should have a parameter p_con with default value as 'MATERIAL_DOC'
    Im just explaining the above program use this as reference and try.

  • How to create table control and link in screen exit

    Hi Friends,
                     I want to create table control in enhancement CONFPP07.  The values entered in table control should be stored in ztable along with some other information.
    But I want to know how to create table control in screen-exit and how and where to write code and how to link all.
                   Kindly send me step-by-step documentation or real time examble prg.
                   Kindly give ur answers for this problem only.
    Thanks in Advance,
    S.Senthil kumar

    If u have a  screen exit..then u will have a option to create a sub screen..in that sub screen u activate the pai and pbo events..it will show u where to write the code..

Maybe you are looking for