Custom button icons in application header

Hi All,
I have a requirement, where I want to provide ability to end user to supply custom icons in application header.
For this I have created a class and extended from sap.m.Button.
and override setIcon method in my child class?
but could not get this to work? can someone help me out?
regards

Any pointers please help.
I am now able to display the icons.But how do I prevent expand/collapse on icon click?

Similar Messages

  • Custom button  on ALV report for Tcode FL10G ?

    Hi All,
    I want to add custom button in the AVL report for FL10G transaction.  And then need to implement logic for that button (calling BAPI to create shipment for the selected records).
    For VL10G alv program GUI Status - STANDARD001  I think I can add button in this gui by using access key.
    But how to implement logic for this custom button?  Where I can put the code for this button logic?
    Please let me know if any one has any ideas on this issue.
    I appreciate your help and time on this.
    Thanks.
    M

    Hi Murali,
    The standard program it will not allow to copy the GUI Status. Because source and target program should not same.
    It will definitely debug will work. Yo can create the GUI Status through SE41. In SE41 Just give Program name :SAPLV50R_VIEW click the button status. here you should not give any gui status. just blindy say create the then it will popup screen appears in the screen. Here you can mention your Z GUI Status. It is not required to create all the menus manually instead of the there is button which is located in the screen next to blue i button. here you can click and select the standard interface. You can get all the menus as similar to standard. Like that you should create Menu Bar, Application Toolbar and Function Keys  Menus. Then you can add your custom button in the Application tool bar button.
    When you execute the Transaction VL10G and check your cusom menu button will appears. Once you click custom button only exit will trigger. Find the below code for your reference.
    CODE
            loop at ct_postab assigning <fs>
                    where selkz = 'X'.
    *To Fill the BAPI  Header Parameters
                  str_ordhdr-ship_cond = w_sval-value.
    *To Fill the BAPI  HeaderX Parameters
                  str_ordhdrx-updateflag = 'U'.
                  str_ordhdrx-ship_cond = 'X'.
                  call function 'BAPI_SALESORDER_CHANGE'
                    exporting
                      salesdocument    = <fs>-vbelv
                      order_header_in  = str_ordhdr
                      order_header_inx = str_ordhdrx
                    tables
                      return           = str_return.
                endloop.
                read table str_return into w_return index 1.
                if sy-subrc eq 0.
                  if not w_return-type = 'S'.
                    message w_return-message type 'E'.
                    leave to current transaction.
                  endif.
                endif.
    *Do the BAPI Commit
                call function 'BAPI_TRANSACTION_COMMIT'
                  exporting
                    wait = 'X'.
              endif.
            endif.
          endif.
    Let me know if you have anything to discuss on the same.

  • Using social media share codes with custom buttons

    Is there a way to use custom buttons/icons for social media share, like, etc..? I have tried inserting the html with no luck. The canned social widgets don't really match the look of the site I am designing.

    Facebook doesn't allow changing that. Refer to their Guidelines with Do's and Don'ts here - https://www.facebookbrand.com/guidelines?asset=5&media=1,2,3&platform=
    Thanks,
    Vinayak

  • Custom Button Rendering/Disabling with Velocity Templates [SOLVED]

    I have a custom button in my application that I only want to show up on specific pages and I can't seem to figure out a EL expression that will let me disable or not render the button on the following criteria,
    - The velocity template will be installed on tableForm configured groups.
    - I only want the button to be activated/visable when in the 'Details' view for a specific row
    - When the group has insertions permitted.
    I have tried to steal some code from the *.vm files for other buttons and items used by JHeadstart, but none of the expressions seem to be solving my problem. I have always found the Data Binding through EL Expressions with the ADF very confusing to work with so any guidance would be greatly appreciated. (Is there a way to 'debug' EL expressions to see the actual data that is available to me at any given time?)
    Thanks.
    Message was edited by:
    M.Ruston
    Message was edited by:
    M.Ruston

    My Case is :
    The code of my button in Custom Template :
    <af:commandButton text="Zone Charge Group Details"
    rendered="true" disabled="false" immediate="true" >
    <f:actionListener type="oracle.jheadstart.controller.jsf.listener.DoRollbackActionListener"/>
    <af:resetActionListener/>
    </af:commandButton>
    my Custom Template is running successfully and button appear in runtime
    But I want re-write this code so that this button is binded with a method in Managed Bean
    Scenario is :
    when click the button in a page, it calls a method in that Bean and pass a parameter to it.
    And the ouptut of this method is displayed in another page.
    There is no Error message....
    Please, If you don't understand anything, Ask me .
    My Question is :
    How to bind Button to a Method in a custom Template?
    Please,Reply me ASAP.
    Thank you very much.
    Rabab Youssef,
    J2EE Developer

  • Custom Button on Rfx Header Screen

    Hi Friends,
    I want to place one button on Rfx Header,  This is done using Component configurator, now when i click on this Button,  it should run on webdynpro component , can any one give me idea, how to do this
    thnx
    Kumar Srini

    Hi Naresh,
    Please describe me exactly what you are looking for.
    Want to add a custom button on any RF/Custom RF screen? or want to call a url on any associated button to allow change passowrd?
    I think both have different impact on application.
    Sinec RF is totally based on ECC system(Module Pool Screen) so you can easily add a custom button to wherever you want by calling subscreen/add new screen/User Exit etc.
    But for calling a URL would be visible to your RF gun or not ...it is depend on the device not an application.Again you have to configure Service Request for ITS for the URL being generated in Backend as well as RF devices.And then after you can call that URL under the code for that custom button.
    Regards
    Rick

  • Add customer button on header level for BUS2201(PO) - SRM 7.0

    Hi,
    I want to define a customer button (with action) within PO on header level.
    Web Dynpro           FPM_OIF_COMPONENT
    Configuration          /SAPSRM/WDCC_FPM_OIF_PO_PURCH
    Task:
    Add a customer button besides standard Export button.
    I assume-afterwards I have to enhance the method onactionbutton_pressed to create my event when customer button is pressed, right?
    Could anyone please guide me how to solve this issue?
    Thanks and best reagrds
    Andreas

    Hi,
    Here are the steps to add the button, I wrote it in other thread. In my case for PO is not displayed, try to follow the steps and if you are able to show the button tell me how please.
    Add custom button in PO
    And yes ,you need to create an enhancement point in the view CNR_VIEW of the component FPM_OIF_COMPONENT, you need to create a post-exit in the method BUTTON_PRESSED, here you have a sample code:
    DATA: lv_id TYPE string,
            lv_event_id TYPE fpm_event_id.
      DATA: lo_nd_oif_application TYPE REF TO if_wd_context_node,
            lo_nd_variant TYPE REF TO if_wd_context_node,
            lo_nd_toolbar TYPE REF TO if_wd_context_node,
            lo_nd_button TYPE REF TO if_wd_context_node,
            lo_el_button TYPE REF TO if_wd_context_element,
            lo_nd_other_functions TYPE REF TO if_wd_context_node.
      DATA: lv_substring TYPE string,
            lv_substring_i TYPE i,
            lv_node_name TYPE string,
            lv_position TYPE string,
            lv_length TYPE i,
            lv_seq TYPE i.
      DATA:lt_keys TYPE STANDARD TABLE OF string,
           lv_key LIKE LINE OF lt_keys.
      TYPES:BEGIN OF y_parameters,
        name TYPE string,
        value TYPE string,
      END OF y_parameters.
      DATA: lt_parameters TYPE STANDARD TABLE OF y_parameters,
            ls_parameter LIKE LINE OF lt_parameters.
      DATA: lv_boid      TYPE bbp_guid,
            lv_botype    TYPE string,
            lv_objkey TYPE  swo_typeid,
            lv_objtype  TYPE  swo_objtyp,
            lv_object_id TYPE crmt_object_id_db,
            lv_process_type TYPE crmt_process_type_db,
            lv_object_type TYPE crmt_subobject_category_db,
            lv_rfc TYPE zgrs_co_logsys-rfc,
      DATA: lo_fpm TYPE REF TO if_fpm.
      lo_fpm = cl_fpm_factory=>get_instance( ).
      lo_fpm->raise_event_by_id( lv_event_id ).
      lt_keys = lo_fpm->mo_app_parameter->get_keys( ).
      LOOP AT lt_keys INTO lv_key.
        ls_parameter-name = lv_key.
        lo_fpm->mo_app_parameter->get_value(
          EXPORTING  iv_key = lv_key
          IMPORTING  ev_value = ls_parameter-value  ).
        INSERT ls_parameter INTO TABLE lt_parameters.
      ENDLOOP.
      lv_id = wdevent->get_string( 'ID' ).
      lo_nd_oif_application = wd_context->get_child_node( name = wd_this->wdctx_oif_application ).
      lo_nd_variant = lo_nd_oif_application->get_child_node( name = wd_this->wdctx_variant ).
      lo_nd_toolbar = lo_nd_variant->get_child_node( name = wd_this->wdctx_toolbar ).
      lo_nd_other_functions = lo_nd_toolbar->get_child_node( name = wd_this->wdctx_other_functions ).
      lv_substring = lv_id.
      lv_length = STRLEN( lv_id ).
      lv_seq = lv_length - 3.
      IF lv_id+lv_seq = '_CP'.
        lv_substring = lv_substring(lv_seq).
        lv_id = lv_substring.
      ENDIF.
      WHILE lv_substring CS '_'.
        lv_position = sy-fdpos + 1.
        lv_substring = lv_substring+lv_position.
      ENDWHILE.
      IF lv_substring CO '1234567890'.
        lv_substring_i = lv_substring.
      ENDIF.
    * Item level action;
      IF lv_id CS '_item'.
    * Or header level action;
      ELSE.
        IF lv_id CA '0123456789'.
          lv_position = sy-fdpos - 1.
          lv_node_name = lv_id(lv_position).
          IF lv_id CS 'OTHER_FUNCTIONS'.
            lo_nd_button = lo_nd_other_functions->get_child_node( name = wd_this->wdctx_button ).
            lo_nd_button->set_lead_selection_index( index = lv_substring_i ).
            lo_el_button = lo_nd_button->get_element(  ).
            TRY.
                lo_el_button->get_attribute(
                EXPORTING
                  name =  `EVENT_ID`
                IMPORTING
                  value = lv_event_id ).
              CATCH cx_wd_context.
            ENDTRY.
            READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOTYPE'.
            lv_botype = ls_parameter-value.
            READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOID'.
            lv_boid = ls_parameter-value.
    *         Obtain the object_id;
            SELECT SINGLE object_id INTO lv_object_id
             FROM crmd_orderadm_h
             WHERE guid EQ lv_boid.
    *         If not Z button, exits;
            IF lv_event_id(1) NE 'Z'. EXIT. ENDIF.
    *      Actions;
            CASE lv_event_id.
              WHEN 'ZBUTTON'.
              WHEN 'ZBUTTON2'.
            ENDCASE.
          ENDIF.
        ENDIF.
      ENDIF.

  • How to add a custom button on Application Toolbar for ME21N, ME22N & ME23N

    Hi Experts,
    I am new to this forum. I hope someone will help me.
    My Requirement is as :
    I want to add a new custom button on Application Toolbar for ME21N, ME22N & ME23N.
    There are already standard buttons in this toolbar which is Document Overview On, Hold, Personal Settings etc.
    So after the 'personal settings' button i want add a new button and want to write a code which will open one custom screen.
    I am not able to find any exit for this....
    Please help...
    Thanks....

    Hey Buddies
    Try below BADI : ME_PROCESS_PO_CUST
    and check with required methods.
    1)PROCESS_ITEM
    2)CHECK
    3)POST
    Regards,
    Pranav

  • Custom icon in application builder

    I am trying to create an executable with custom icon using Application Builder in LabVIEW.
    I converted a .png image to .ico for the icon, but when I select that .ico file as a custom icon, I get the following message:
    "The selected file doesn't contain all of the needed icons. Without them, your application will show an incorrect icon in some views. 
    Missing icons:
    32X32, 16 color
    16X16, 16 color."
    Any comments\suggestions on how to get custom icon would be appreciated.
    Thanks.

    It's possible that you don't have both 16x16 and 32x32 icons in 16 bit color. When you convert the .png to an .ico, see if there is an option to convert into necessary ico images that you need.
    As a way to double check this without using application builder, load the VI : <vi.lib>\Platform\icon.llb\Read Icons for Application.vi
    It will show you the different icons that are read from the .ico file.

  • [Solved]Remove button icons in KDE applications when running under dwm

    I run dwm but also use KDE applications.
    KDE applications do show icons on dialog buttons:
    I gather that these buttons can be disabled in the system settings dialog when running a full KDE desktop. My question is: How do I achieve this - remove the icons on buttons - while not running a full KDE session?
    kcmshell4 doesn't seem to expose an option to do so in any available module, including 'kcmshell4 icons'.
    The systemsettings5 option repertoire is incomplete and only has the modules "Workspace>Desktop behaviour", "Workspace>Shortcuts", "Network>Settings" and "Network>Connectivity".
    In my .xsession, I am currently exporting
    export QT_STYLE_OVERRIDE=gtk # Make Qt5 use the GTK+ theme
    export DESKTOP_SESSION=gnome # For something I can't quite remember
    I've also seen XDG_CURRENT_DESKTOP=gnome vs XDG_CURRENT_DESKTOP=kde floating around, but neither achieves anything in this regard.
    Does anybody know which setting in which config file I could set to emulate what the KDE configuration GUI does in a KDE session, or what KDE packages I would have to install in order to add the correct settings component to my KDE configuration utilities (KDE4 and/or Plasma 5), or what environment variable to set? A last resort would be installing a full KDE workspace or Plasma 5 and toggling the setting there, but I'd rather avoid doing that.
    Last edited by 2ion (2015-05-07 13:39:25)

    Xabre wrote:
    Would running "kcmshell5 style", or "kcmshell4 style" be an option? Am not sure what you have installed, but under fine tuning tab there, there's exactly what you need.
    Edit: if that doesn't work, .config/kdeglobals
    ShowIconsInMenuItems=true
    ShowIconsOnPushButtons=true
    ToolButtonStyle=TextBesideIcon
    ToolButtonStyleOtherToolbars=TextBesideIcon
    Change to false and TextOnly, respectively
    Might have to look for another kdeglobals file for kde4 apps, which should be either in .kde4 or in home dir, since there's a bit of a mess currently during transition
    Please excuse my belated reply; thank you for the solution:
    The line
    ShowIconsOnPushButtons=false
    in kdeglobals removed the icons for KDE 4 applications. For some reason, applications using KDE Frameworks 5.x did never show the button icons to begin with.

  • Custom Button on Application Toolbar of VA01

    Hi,
    I have a requirement where i need to put in a button on the application Toolbar of VA01. This should be placed next to Orders button. I tried to find Exits, Badi's and Enhancement Spots but was not able to.
    There is one buton added and i have found the code for that but not able to understand how was it done.
    I checked in SDN too and found a couple of threads which explains that it could be done with GUIXT.
    Is this the only possible way or is there any other way in which this could be acheived.
    If GuiXT is the only solution, then let me know how can this be done or started since i'm New to GUIXT i don't have any idea about it.
    Thanks,
    Prashanth

    Hi,
    Check Enhancement spot ES_SAPMV45A. Check implementations in program MV45AF0C_CUA_SETZEN_BUTTONS.
    But be aware of the usage as you will need to replace a standard implementation.
    regards
    Nitesh

  • Custom button in alv and disabling all buttons in application tool bar

    Experts,
    Could you please  help me for the below requirements.
    1). How to disable all the buttons (like sorting, print, find, set filter...etc.) in tool bar using oops?
    2). Where can I add my custom download button in alv report using oops?
    Thanks in advance...
    Sridhar..

    Step1:
    Create on local class
    Class <LCL_EVENT_RECEIVER> Definition
    Define the below public methods.
    Method Name     HANDLE_TOOLBAR
    Event Name     TOOLBAR
    Event Class     CL_GUI_ALV_GRID
    Importing     E_OBJECT, E_INTERACTIVE
    Method Name     HANDLE_USER_COMMAND
    Event Name     USER_COMMAND
    Event Class     CL_GUI_ALV_GRID
    Importing     E_UCOMM
    Class <LCL_EVENT_RECEIVER> Implementation 
    .     Method HANDLE_TOOLBAR
         Declare the structure <LS_TOOLBAR> of structure type STB_BUTTON
         Append the button information as given below into table E_OBJECT->MT_TOOLBAR to         display the custom button on ALV grid.
                               LS_TOOLBAR-FUNCTION = u2018DOWNu2019
                         LS_TOOLBAR-QUICKINFO = u2018downloadu2019
                         LS_TOOLBAR-TEXT = u2018downloadu2019
         Method HANDLE_USER_COMMAND
    In this method if E_UCOMM = u2018DOWNu2019 write your logic.
    Step2:
    1.     To excluding the ALV grid buttons, fill the <LT_EXC> with function code CL_GUI_ALV_GRID=>MC_FC_EXCL_ALL
    2.     To generate the ALV Grid, call the method SET_TABLE_FOR_FIRST_DISPLAY
    Class     CL_GUI_ALV_GRID
    Method Name     SET_TABLE_FOR_FIRST_DISPLAY
    Exporting     
    I_STRUCTURE_NAME      ZDS_CM_EXT_SEL
    LS_LAYOUT                    <LS_LAYOUT>
    IT_TOOLBAR_EXCLUDING     <LT_EXC>
    Changing     
    IT_OUTTAB                    <GT_EXT_SEL>
    Create the Instance for class <LCL_EVENT_RECEIVER>
    Class     <LCL_EVENT_RECEIVER>
    Instance Name     <LO_EVENT_FNAME>
    Now set handler  <HANDLE_USER_COMMAND> and <HANDLE_TOOLBAR_FNAME> events using instance <LO_EVENT_FNAME>
    Call method 'SET_TOOLBAR_INTERACTIVE' to raise event TOOLBAR
    Class     CL_GUI_ALV_GRID
    Instance Name     <GO_GRID>
    Method Name     SET_TOOLBAR_INTERACTIVE

  • Displaying Help Button \ Icon in Fiori Launchpad

    Hello experts,
    I have read that it is possible to display contextual help for different Fiori applications in the Fiori Launchpad header.
    Question: Where do you define the Help URL that enables the Help button\Icon in Fiori Launchpad Header area?
    thank you.
    Rob.

    Hello Masa,
    I have a quick question.
    As mentioned in the Adding and Removing Custom Items to the Options Menu - User Interface Add-On for SAP NetWeaver - SAP Library, 
    the following lines of codes needs to be added to create custom Buttons in the Fiorilaunchpad menu.
    <SCRIPT language ="JavaScript">
    var button1 = new sap.m.Button();
    var rendererExt = sap.ushell.renderers.fiori2.RendererExtensions;
    rendererExt.addOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);
    rendererExt.removeOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);
    <SCRIPT>
    Can you please tell, where these lines of code need to be added ?
    should one directly modify FioriLaunchpad.html ?
    Regards,
    Anil

  • How to create a custom Button in a SNP planning book

    Hi Experts,
    I created my own Planning Book and Dataview in SNP with 3 Key Figures: KF1, KF2, KF3. Now I want to create one my own button with Macro so that when I press that button, the Macro will run to calculate: KF3 = KF1 + KF2.
    I know that I can drag this Macro to one of default events like: Default, Level Change, Start. But actually, I want to create my own button so that I can handle the event as I want.
    My question are:
    1. How to create a custom button on the toolbar of SNP Planning book and writing macro for the button?
    2. Please give me any document, material teaching about writing macro and relating to my above scenario.
    Thanks very much!
    Duyennx
    Edited by: xuanduyen on Sep 6, 2011 9:20 AM

    Hi,
    Access the transaction "/n/sapapo/advm". In the list select your planning book/ data view and click 'Start Macro Builder' button.
    In the Macro builder screen, drag and drop your macro from Macro depot to the work area.
    Right click on your macro name and select 'properties'. In the pop up, next to the Assigned Push button field, there is a button 'Choose'. Click that. It will display all the available icons. In standard system, it displays more than 1000 icon. Choose any one icon which is suitable for your macro function. Close the pop up and save the macro. This will assign a push button to your macro.
    In the Planning book tool bar, you can see the selected icon in the header tool bar. Just by clicking that icon, you can execute the macro interactively.
    And I don't know whether we can include/design our own icon. But there are already 1000+ standard icons to choose.
    Regards,
    Manimaran M.

  • Custom button in FPM component

    Hello experts,
    In a requirement i want to add custom button in FPM_OIF_COMPONENT. For this i followed following steps -
    1. In SE80 transaction open FPM_OIF_COMPONENT
    2. Select the requisite component configuration.
    3. Start Configurator.
    4. In configuration, enter component name & configuration ID then select option 'Continue in Display mode'.
    5. In display mode, in 'Additional Functions', select 'Create customization' or if configuration already exists, then select 'Edit Configuration'.
    6. In toolbar schema, I added one toolbar element as 'Other Function' and set the properties as enabled checked and visibility as 'Is Visible'.
    7. Save.
    8. After this to control the action of the new button, i added the action 'ZACT' in 'CNR_VIEW' by enhancing the view.
    9. In SPRO->SRM->Cross application basic settings->Extensions & fieldcontrol->Assign actions, i assigned the action to set type and business object.
    10. Then in SPRO->SRM->Cross application basic settings->Extensions & fieldcontrol->Control Actions->Configure control on header level, I added PDO action type, BO type, PDO action enabled, dynamic class & method to control the button visibility.
    After doing all the steps above, when i open the required window in SRM portal, I am unable to view the custom button added.
    Please let me know where i am going wrong.

    Hi Yayayi,
    You need to refer FPM event id of the corresponding button but not action id. As you said you have given FPM_EVENT_ID as ZACT, write the code in process event of component controller of  your WDP component in which IF_FPM_UI_BUILDING_BLOCK interface has been re-implemented.
    But dont forget to follow the below steps shown in snapshot.
    Hope this helps you.
    Thanks
    KH

  • Custom Button in ALV Grid standard toolbar

    Hello Experts,
    I am working on the program in which i have to add custom button to standard toolbar in ALV. I have created the button using the method as below
         data: lr_functions type ref to cl_salv_functions_list.
         lr_functions = gr_table->get_functions( ).
         lr_functions->set_default( abap_true ).
         data: l_text       type string,
               l_icon       type string.
    *    l_text = text-b01.
         l_icon = icon_complete.
         try.
           lr_functions->add_function(
             name     = 'Update Equipment Cost'
             icon     = l_icon
             text     = l_text
             tooltip  = 'Update Equipment Cost'
             position = if_salv_c_function_position=>right_of_salv_functions ).
           catch cx_salv_existing cx_salv_wrong_call.
         endtry.
    I don't understand how to add functionality to this button. I want to design the functionality as when user press button then corresponding values on the screen will be automatically get updated in the table.
    Thanks,
    Avadhut

    Hi Avadhut,
    When you want to add a custom button on ALV - better copy the GUI Status of the standard ALV to your program.  So all the function codes are copied , now you can go to the GUI_STATUS which is copied and you can mention your own function code or you can let the standard function codes as it is. You can copy the GUI of standard ALV from SE80 transaction. Let me know if you need any assistance in doing it.
    Now, if you want to write the code for any of the button on ALV -  then you need to handle it is the class.
    I used CL_SALV_TABLE - if you are using same then the below code gives you an idea of it.
    1. Create a local class in your program
    *       CLASS lcl_alv_events DEFINITION
    CLASS lcl_alv_events DEFINITION FINAL.
       PUBLIC SECTION.
         METHODS: on_user_command FOR EVENT added_function OF cl_salv_events
                                  IMPORTING e_salv_function.
    ENDCLASS.                    "lcl_alv_events DEFINITION
    DATA: gv_event_handler TYPE REF TO lcl_alv_events.
    CREATE OBJECT gv_event_handler.
    * Header object
    CREATE OBJECT gr_header.
    2. Class Implementation
       CLASS lcl_alv_events IMPLEMENTATION.
          METHOD on_user_command.
         CASE e_salv_function.
         **When PROCESS Button is selected
           WHEN '&PROC'.    ***> In my program I added Process button and fcode for it - &PROC
          ***********Write your code here ******************
        ENDCASE.
       ENDMETHOD.
    ENDCLASS.                    "lcl_alv_events IMPLEMENTATION
    3. Calling events
       data: gr_events    TYPE REF TO cl_salv_events_table,
               gr_alv       TYPE REF TO cl_salv_table.
       TRY.
           CALL METHOD cl_salv_table=>factory
             IMPORTING
               r_salv_table = gr_alv
             CHANGING
               t_table      = p_in_tab[].    ***This is my internal table data.
          gr_events = gr_alv->get_event( ).
             SET HANDLER gv_event_handler->on_user_command FOR gr_events.
         CATCH cx_salv_msg INTO lv_msg.                      "#EC NO_HANDLER
         CATCH cx_salv_not_found INTO lv_excep.              "#EC NO_HANDLER
         CATCH cx_salv_data_error.                           "#EC NO_HANDLER
       ENDTRY.
    Regards,
    Rafi

Maybe you are looking for

  • How can 1 send a mail in which the content is an image file,  by JavaMail?

    I want to send a mail which has content of a gif file. I don't want an attachment. It seems that the content type "image/gif" is not supported. Many thanks

  • Pan to left

    hi I need to pan an image horizontally  to left instead of to right , is this possible ?

  • Capturing RFC call data.

    Hey All,       I am facing some issues when a RFC call is made from a Java application to SAP(Custom Function Module). The issue is that the calls fail randomly when called from the Java interface, but they run successfully when reprocessed. Also whe

  • In JDO, can a foreign key be part of a primary key?

    Hi, it's possible to have a foreing key a part of a primary key in JDO? The JDO checker is complaining about that. It says "Primary key field 'person' cannot declare relationship". For example, if I have an entity 'Person' (id, name) and and entity '

  • How to create process chains for Master Data?

    I need information on " how we can create process Chains for Master Data"