How to trigger event in ALV ?

hello,
In ALV, when user press 'Refresf' we will get data and display again . but in my case, I need to refresh automatically after some changes on data . The form user_command is used in ALV_GRID_DISPLAY. here could you please help me how to trigger this event ? ( no need to press on refesh button )?
Thanks

try like this
form user_command using ucomm type sy-ucomm
                     selfield type slis_selfield.
  data: gd_repid like sy-repid, "Exists
        ref_grid type ref to cl_gui_alv_grid.
  data: l_indx like sy-tabix.                           " index
Function for Grid control
  if ref_grid is initial.
    call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      importing
        e_grid = ref_grid.
  endif.
Method to hold the list output
  if not ref_grid is initial.
    call method ref_grid->check_changed_data .
  endif.
  selfield-refresh = 'X'.
endform.
regards
Prabhu

Similar Messages

  • Trigger event in alv without button in web dynpro

    Hi Friends,
    in alv list I can trigger an evant by declaring field i.g. "CONNID" as button.
    Is it possible without create a button.
    I mean, when I have several fields like matnr, bukrs etc. I want for each calling the details, but without
    to declare a button, because it looks not very smart when each field has a button.
    Thanks in advance
    Jimbob.

    hi ,
    using LINK TO ACTION , u can triger the events in ur ALV
    * Display link in column connid
    DATA: lr_link TYPE REF TO cl_salv_wd_uie_link_to_action.
    lr_column = l_value->if_salv_wd_column_settings~get_column( 'CONNID' ).
    CREATE OBJECT lr_link.
    lr_link->set_text_fieldname( 'CONNID' ).
    lr_column->set_cell_editor( lr_link ).
    refer this tutorial :
    Using Events with ALV Tables in Web Dynpro for ABAP
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8?overridelayout=true
    regards,
    amit

  • How to trigger event when changing user status?

    hi,
    I'm having problems in triggering my workflow.
    In CIC0, When a status of a service request is changed to 'solution provided' then after saving service request, it should send a notification mail. I'm using ZBUS200116 which is deligated to BUS2000116. I've created event 'change' in ZBUS200116 which is in the start events of my workflow.
    I've tried creating an action profile which uses my workflow. The action profile is attached to the transaction but still it doesn't trigger my workflow.
    i've checked other existing workflows which uses the same object type BUS2000116 or ZBUS200116. These workflows were triggered by 'created' and 'completed' events only. Other added events in ZBUS200116 like 'changed' is not triggered. How is this possible when ZBUS200116 is deligated to BUS2000116?
    Your response would be highly appreciated.
    Thanks in advance.

    hi juan
    so here we are,now i got complete understanding of what u r doing and why
    you know you need not have created that change event because it wont serve your purpose anyway
    the reason is that because the way process in your workflow is flowing ,it wont happen that way using change event
    you just follow these  steps:
    1, use created event in your workflow
    2. that way when your contract ios created in rpocess status the event will be triggered only because you are creating a transaction whatever may be the status,so in all such cases you should use event created.
    3. now coming to the point of change in status or documents in contract
    in this case using loop will put you in deadlock and you will only be haing the error in such case
    you use WAIT step instead ,inside it use wait using conditions out of every option
    there you give your condition as change in whatever status
    like if you are chaning the status from in process to some other status ,put that status inside the condition
    as soon as that conditioon is met ,the WAIT step will be executed,
    that way you will be able to trigger the change in status through thje workflow
    so thats the solution with the approach you are using
    there are many approaches you can follow in workflows ,so depending upon that you can follow the different worlkflow tools u have there.
    also remember when your wait step gets executed there is always the time lag of 20-25 minutes after which changes will be reflected
    hope it will solve ur probs
    best regards
    ashish

  • How to trigger event CREATED for Bus.Obj BUS2126003 (Vendor Settlement)

    Hi
    I want to start a workflow inside Agent Business, when Vendor Settlement (BUS2126003) is Created.
    The problem is that the event does not get triggered when Created. Not even the CHANGED event is tiggered during change.
    Currently I have workflow on the objects BUS2144001 (Customer Settlement - Agency Business )
    and BUS2100001 (Settlement request list - Agency Business). Both these objects gets triggered when created (EVENT = CREATED).
    I try to find out a way to trigger CREATED for Vendor Settlement. Do you have any suggestion for this?
    I've tried to find any exits, Badi's, ...from where I could trigger the event myself.... but with no good result...
    Best reg
    Henrik

    Hi HA,
    are you talking about ERS (Evaluated Receipt Settlement) in SRM?
    If yes, check with the settings in IMG, there is an ERS flag in Vendor master record that needs to be set for that vendor.
    Hope it helps.
    Aditya

  • How to trigger event when double click on a tree node

    I have this code which creates new tab in a remote Java Class.
    treeView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TreeItem<String>>()
       @Override
       public void changed(ObservableValue<? extends TreeItem<String>> observable, TreeItem<String> oldValue, TreeItem<String> newValue)
       System.out.println("Selected Text : " + newValue.getValue());
       // Create New Tab
       Tab tabdata = new Tab();
       Label tabALabel = new Label("Test");
      tabdata.setGraphic(tabALabel);
       DataStage.addNewTab(tabdata);
    Can you tell me how I can modify the code to open new tab when I double click on a tree node. In my code the tab is opened when I click once. What event handler do I need?

    import java.util.Arrays;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.control.TreeCell;
    import javafx.scene.control.TreeView;
    import javafx.scene.control.TreeItem;
    import javafx.scene.control.SelectionMode;
    import javafx.util.Callback;
    public class TreeTest extends Application {
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("TreeView Test");
        primaryStage.setScene(createScene());
        primaryStage.show();
      private Scene createScene() {
        final StackPane stackPane = new StackPane();
        final TreeView<String> treeView = new TreeView<String>();
        treeView.setRoot(createModel());
        treeView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
        treeView.setCellFactory(new Callback<TreeView<String>, TreeCell<String>>() {
          @Override
          public TreeCell<String> call(TreeView<String> treeView) {
            return new ClickableTreeCell();
        stackPane.getChildren().add(treeView);
        return new Scene(stackPane);
      private TreeItem<String> createModel() {
        TreeItem<String> root = new TreeItem<String>("RootNode");
        TreeItem<String> packageA = new TreeItem<String>("package A");
        packageA.getChildren().addAll(
            Arrays.asList(new TreeItem<String>("A1"), new TreeItem<String>("A2"), new TreeItem<String>("A3"))
        TreeItem<String> packageB = new TreeItem<String>("package B");
        packageB.getChildren().addAll(
            Arrays.asList(new TreeItem<String>("B1"), new TreeItem<String>("B2"), new TreeItem<String>("B3"))
        root.getChildren().addAll(Arrays.asList(packageA, packageB));
        return root;
      private class ClickableTreeCell extends TreeCell<String> {
        ClickableTreeCell() {
          setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent event) {
              // Handle double-clicks on non-empty cells:
              if (event.getClickCount()==2 && ! isEmpty()) {
                System.out.println("Mouse double-clicked on: " + getItem());
        @Override
        protected void updateItem(String item, boolean empty) {
          super.updateItem(item, empty);
          if (empty) {
            setText(null);
          } else {
            setText(item);

  • How to trigger event of diff. BOR object in WF started with diff BOR object

    Hi all,
      I am currently working in IS-U scenario. It deals with IDOCs mainly. I hav a requirement in which I have trigger an event of another Business Object inside a workflow which is started using a event of another business object.
    For  Eg:
    The WF is started using ZBOR1.created event. Inside the WF, at some point I hav to trigger ZBOR2.received event.
    Can anyone help me in this....
    Thanks,
    Sivagami.R

    Hi,
    I think you should have a second though in this design.
    One thing can be , if I am correct, you should have swithdocumnet object which is common for all the IDOCs in ISU flows, irrespective of which IDOC is sent out or which IDOC is posted.
    Accordingly , you can add a custom event XYZRreceived for the same switchdocumnet object when you receive  differnent IDOC, while your workflow is waiting. ( i.e in this case , as the switch documnet object is same for which workflow has been triggered, you wont have the problem of worrying about different object!)
    OR
    In your case , if you are using ZBOR1 , you should add another event as XYZReceived, which you can trigger when you receive another IDOC using FM SWE_EVENT CREATE , and hence you wont have to bother about instance of ZBOR2.
    Hope it serves the purpose.
    Regards,
    Akshay

  • How to trigger event from SM64

    Hi Experts
    I have an interrupt variant in my process chain, it is still not proceeding even if data load is complete for which it is waiting for.
    my friend suggested me to trigger that event in SM64.
    but i  know nothing about that. can you help.

    Hi
    Goto SM64 --> search for your event.
    select the event --> click on extent trigger
    check the below document
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/c079239d3756a2e10000000a1553f6/frameset.htm
    Regards,
    Venkatesh

  • How to trigger events from inside an event to another event-stru​cture

    Hello,
    i have two event-structures (struct1 and struct2) which are running at the same time parallel in a loop.
    Currently there is an keydown-event in struct1, so when i press an ok-button then the corresponding event executes in struct1.
    struct2 is used to execute menu-entries from a custom runtime-menue.
    What i want to do is to select a menue-entry (which executes an event in struct2) and the from inside this event i want to trigger an event in struct1 (means simulate keypress ? ).
    Is this possible?
    Thanks for the help
    Solved!
    Go to Solution.

    If I read this problem correctly, you are essentially trying to do the same thing from different events in different event structures.  This type of problem is very common in UI based programs, since you often want to have the same action triggered by multiple events (e.g. button press, menu selection, keyboard shortcut).  You may wish to consider a change in your basic architecture.  Instead of splitting your code into two event structure loops, try splitting it into an event structure loop and a task handling loop.  The event structure only processes events.  At each event, it generates one or more tasks, which are passed to the task loop via queue.  Traditionally, the task data would be an enum for the task name and a variant for the task data.  You can find a discussion of this type of design here.
    For new designs, I would recommend a task object (use LabVIEW classes).  The task data type is the parent task object.  The actual tasks will be child objects.  This simplifies your top-level code quite a bit and makes it easily extensible without changing the top-level code.
    If you need more information, let us know.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to trigger event 0733 from event 0020 using information retrieve.

    Hi Guru's
    I am trying to create link between two event:
    FKK_SAMPLE_0020
    and
    FKK_SAMPLE_0733
    FKK_SAMPLE_0020 u2013 This module will be triggered when a clearing document is posted into the system. It must be customized to identify documents cleared.
    FKK_SAMPLE_0733 u2013 This module will be used to check and update the correspondence tables
    With information retrieved from event 0020 can any one please help ASAP.

    Hi
      1st create ZFKK_SAMPLE_0020 and write the logic in it for your requirement. next in ZFKK_SAMPLE_0073 use the FM BAPI_CTRACDOCUMENT_GETDETAIL pass the document no you will get all the details of doc no then in your fm update or cleare the table using std FM.
    FUNCTION ZFKK_SAMPLE_0299.
    *"*"LOCAL INTERFACE:
    *"  IMPORTING
    *"     REFERENCE(I_KEYR1) TYPE  KEYR1_KK
    *"     REFERENCE(I_SUCCESS) TYPE  CHAR1
    *"  EXPORTING
    *"     REFERENCE(RETURN) TYPE  BAPIRET2
    INCLUDE <CNTAIN>.
      TYPES: BEGIN OF TY_DETAILS,
               OPBEL TYPE OPBEL_KK,
               CHCKN TYPE CHCKN_KK,
               BKREF TYPE BKREF,
               BETRZ LIKE DFKKZP-BETRZ,
               WAERS TYPE WAERS,
               BANKL TYPE BANKL_KK,
               END OF TY_DETAILS.
      TYPES : BEGIN OF TY_FINAL,
              OPBEL TYPE OPBEL_KK,
              HVORG TYPE HVORG_KK,
              TVORG TYPE TVORG_KK,
              VKONT TYPE VKONT_KK,
              VKBEZ TYPE VKBEZ_KK,
              BLDAT TYPE BLDAT,
              END OF TY_FINAL.
      TYPES : BEGIN OF TY_USERS,
              USER  TYPE SYSID,
              END OF TY_USERS.
      TYPES: BEGIN OF  TY_ZCABLMTST,
             HVORG TYPE HVORG_KK,
             TVORG TYPE TVORG_KK,
             END OF TY_ZCABLMTST.
      TYPES: BEGIN OF  TY_DFKKRH.
             INCLUDE TYPE DFKKRH .
      TYPES: END OF TY_DFKKRH.
      TYPES: BEGIN OF  TY_FKKOP.
             INCLUDE TYPE FKKOP .
      TYPES: END OF TY_FKKOP.
      TYPES: BEGIN OF  TY_RLBEL,
             RLBEL TYPE DFKKRH-RLBEL.
      TYPES: END OF TY_RLBEL.
      TYPES : BEGIN OF TY_EMAILID,
              USRID_LONG TYPE COMM_ID_LONG,
              END OF TY_EMAILID.
      TYPES : BEGIN OF TY_PERNR,
              PERNR TYPE PERSNO,
              END OF TY_PERNR.
      TYPES : BEGIN OF TY_SOMLRECI1.
              INCLUDE TYPE SOMLRECI1.
      TYPES : END OF TY_SOMLRECI1.

  • Double click event in alv oops

    Hi,
    can any one please help me out... i dont know how to call events in alv oops...so can any one provide me with some help..
    My requirment is i have to generate a mail grid containing customer details and if i double click on a customer it should go to the transaction XD03 second screen.....

    u have to declae an event like this.
    class event_receiver definition.
      public section.
        methods handle_double_click
          for event double_click of cl_gui_alv_grid
          importing e_row.
    endclass.
    then u have to implement it in the implementation
    class lcl_event_receiver implementation.
      method lmt_handle_double_click.
        perform double_click using e_row
                                   tbl_final_display.
      endmethod.                   
    endclass.
    form double_click
            using fu_e_row             type lvc_s_row
                  fu_tbl_final_display type typ_tbl_display.
      read table fu_tbl_final_display into l_h_tbl_final_display
                              index fu_e_row-index.
      if sy-subrc = 0.
        set parameter id cns_aun field l_h_tbl_final_display-vbeln.
        call transaction cns_trans and skip first screen.
      endif.
    endform.
    hope it will help u

  • How to trigger left_click_run event on ALV GRID

    Hiiiiiiii........
    Can any of u please tell me how to trigger left_click_run event on ALV GRID.
         There is an event LEFT_CLICK_RUN and  its a public accessed event. But the problem is , the corresponding  attribute of this event  "EVENT_LEFT_CLICK_RUN" which is needed to registered that event (We need to register our events through a method set_register_events  using table of type cntl_simple_events...) is protect accessed. So I am unable to use that attribute...Could u please tell  me is there any alternative way to register that event.......ANY POSSIBLE WAY?
    Thanks in advance,
    Rams

    I think you should use event selection_changed. Note that you shouldn't allow multiple selection for the tree at the same time, i.e. use: create object g_tree exporting \[...\] node_selection_mode = cl_gui_column_tree=&gt;node_sel_mode_single.
    For more information, see this thread: Urgently required :  cl_gui_alv_tree single_click event...

  • How to Trigger SY-UCOMM User Event  in ALV

    Hi Folks,
    Currently I have a classic ALV report where I need to remove all the standard ALV buttons and replace it with one custom button.  Given that, there is a parameter in REUSE_ALV_GRID_DISPLAY that deals with the user command event.  But during the debug/execution of the custom button, the value of sy-ucomm(R_UCOMM in my example below), is always blank.
    Moreover, I did some relevant search here in SDN also before I paste my F1 here.  If you're going to take a look at my code below, it's exactly the same as what the other relevant topic in user event in ALV.
      PERFORM pf_status_kanban  USING rt_extab.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = w_repid
          i_callback_top_of_page   = 'F_TOPOF_PAGE'
          i_callback_pf_status_set = 'PF_STATUS_KANBAN'  "Exclude ALV standard buttons      
          i_callback_user_command  = 'F_USER_COMMAND'     "Subroutine for SY-UCOMM
    *      i_callback_top_of_page   = 'TOP_OF_PAGE'
          is_layout                = t_alv_layout
          it_fieldcat              = t_alv_fcat[]
          it_sort                  = t_alv_sort
          is_variant               = t_gs_variant
          it_events                = t_events            "Events for AT USER-COMMAND
    *      IT_EVENT_EXIT            = 'AT USER-COMMAND'
        TABLES
          t_outtab                 = t_output.
    FORM F_USER_COMMAND  USING    p_r_ucomm   LIKE sy-ucomm
                                  rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN 'DOWNLOAD'.
          PERFORM f_generate_col USING t_output.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    " F_USER_COMMAND
    FORM F_USER_COMMAND  USING    p_r_ucomm   LIKE sy-ucomm
                                  rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    *    WHEN 'EXCEL'.
    *      PERFORM f_generate_col USING t_output.
        WHEN 'DOWNLOAD'.
          PERFORM f_generate_col USING t_output.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    " F_USER_COMMAND
    Thanks and regards,
    Jaime

    Hi Martin,
    Yes, I ensure that the function code in my custom button is exactly the same as the condition for the sy-ucomm.
    The call routine for the PF_STATUS_KANBAN is just a test since it seems like Iu2019m chasing a phantom issue here.
    Yes, w_repid is set correctly.
    DATA:
    w_repid LIKE sy-repid.                                              "Report ID.
    INITIALIZATION.
      w_repid = sy-repid.
    It seems like the documentation im reading
    Parameter R_UCOMM contains the function code triggered. is not happening as expected...
    Thanks.
    Jaime
    Edited by: Jaime Cabanban on May 7, 2009 10:16 AM

  • How to trigger top-of-page in ALV Grid

    How to trigger Top-Of-Page in ALV Grid...
    can any one plese send the sample code...
    thanks.

    here is sample code. try this. u need to build an internal table and then call function commentary write and pass that internal table.
    *&      Form  TOP_OF_PAGE
          Top_of_page
    FORM top-of-page.                                           "#EC CALLED
    *ALV Header declarations
      DATA: lit_header TYPE slis_t_listheader,
            lwa_header TYPE slis_listheader.
    Title
      lwa_header-typ  = 'H'.
      lwa_header-info = text-013.
      APPEND lwa_header TO lit_header.
      CLEAR lwa_header.
    BOM Number
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
        EXPORTING
          input  = p_matnr
        IMPORTING
          output = gv_matnr.
    Pass BOM number
      lwa_header-typ  = 'S'.
      lwa_header-key = text-014.
      lwa_header-info = gv_matnr .
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header ,
             gv_matnr .
    BOM description
      lwa_header-typ  = 'S'.
      lwa_header-key = text-015 .
      lwa_header-info = gv_maktx .
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header.
    start/end date format MM/DD/YY
      lwa_header-typ  = 'S'.
      lwa_header-key = text-016 .
      CONCATENATE s_erdat-low+4(2) '/'
                  s_erdat-low+6(2) '/'
                  s_erdat-low(4) ' - '
                  s_erdat-high+4(2) '/'
                  s_erdat-high+6(2) '/'
                  s_erdat-high(4)
                  INTO lwa_header-info.
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header.
    Run Date of Report format MM/DD/YY
      lwa_header-typ  = 'S'.
      lwa_header-key = text-017 .
      CONCATENATE  sy-datum+4(2) '/'
                   sy-datum+6(2) '/'
                   sy-datum(4) INTO lwa_header-info .
      APPEND lwa_header TO lit_header.
      CLEAR: lwa_header.
    call function REUSE_ALV_COMMENTARY_WRITE to use TOP_OF_PAGE event.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = lit_header.
    ENDFORM .                              " FORM top-of-page.

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • In ALV reports how double click event works?

    in ALV reports how double click event works? Explain in detail.....

    hi,
    last lines is used for clicking
    *& Report  Z_SWAS_FUNCTIONAL
    report  z_swas_functional.
    tables: qmel,viqmel,iloa,afko.
    -- global data declerations--
    data: ok_code like sy-ucomm,
          gt_itab type table of zfunctional,
          t_output type table of zfunctional,
          g_container type scrfname value 'CUSTOM_CONTROL',
          grid1  type ref to cl_gui_alv_grid,
          g_custom_container type ref to cl_gui_custom_container,
          e_row type lvc_s_row,
          e_column type lvc_s_col,
          es_row_no type lvc_s_roid.
    *CLASS DECLARATION
    class z_functional definition.
    public section.
    class-methods : handle_double_click
                    for event double_click of cl_gui_alv_grid
                         importing e_row  e_column.
    endclass.
    *CLASS IMPLEMENTATION
    class z_functional implementation.
    method handle_double_click.
           perform handle_double_click using e_row e_column es_row_no.
    endmethod.
    endclass.
    *CODE FOR SELECTION SCREEN
    selection-screen begin of block 84433  with frame title text-t01.
    parameters : n_number like viqmel-qmnum,
                    n_type like qmel-qmart,
                    f_loca like iloa-tplnr,
                    name like qmel-qmnam.
    selection-screen end of block 84433.
                        screen validation event                          *
    at selection-screen on n_number.
      select single *
        from viqmel
          where qmnum eq n_number.
    if sy-subrc ne 0.
      MESSAGE 'NOTIFICATION NUMBER DOESNOT EXIST' TYPE 'E'.
    endif.
    select qmart from qmel into qmel where qmart eq N_TYPE.
    endselect.
    if sy-subrc ne 0.
      MESSAGE 'NOTIFICATION TYPE DOES NOT EXIST' TYPE 'E'.
    endif.
    *START OF SELECTION EVENT
    start-of-selection.
        perform fetchdata.
    end-of-selection.
    *Call screen event
    call screen 100.
    *PERFORM DISPLAY.
    *&      Form  FETCHDATA
          text
    -->  p1        text
    <--  p2        text
    form fetchdata .
    *SELECT VIQMEL~QMNUM VIQMEL~QMTXT VIQMEL~QMDAT VIQMEL~LTRMN VIQMEL~PRIOK
          VIQMELBEZDT VIQMELAUFNR VIQMELTPLNR AFKOGLTRP into corresponding fields of table GT_ITAB
             FROM VIQMEL INNER JOIN AFKO ON VIQMELAUFNR = AFKOAUFNR
                   WHERE VIQMELQMNUM IN N_NUMBER and VIQMELQMART IN N_TYPE AND VIQMEL~QMNAM IN NAME.
    call function 'ZSWAS_TEST'
      exporting
        qmnum         = n_number
       qmart         = n_type
       tplnr         = f_loca
       qmnam         = name
      tables
        output        = gt_itab
    if sy-subrc ne 0.
       message e000(z84433_msg_class).
    endif.
    endform.                    " FETCHDATA
    *&      Module  STATUS_0100  OUTPUT
          text
    module status_0100 output.
      set pf-status 'MAIN'.
    SET TITLEBAR 'xxx'.
    *creating custom container and grid instance
    if g_custom_container is initial.
        create object g_custom_container
               exporting container_name = g_container.
        create object grid1
               exporting i_parent = g_custom_container.
        call method grid1->set_table_for_first_display
          exporting
            i_structure_name = 'ZFUNCTIONAL'
          changing
            it_outtab        = gt_itab.
    *set handler events
        set handler z_functional=>handle_double_click for grid1.
      endif.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module user_command_0100 input.
    case ok_code.
       when 'EXIT'.
        perform exit_program.
    endcase.
      clear ok_code.
    endmodule.                 " USER_COMMAND_0100  INPUT
    *&      Form  EXIT_PROGRAM
          text
    -->  p1        text
    <--  p2        text
    form exit_program .
    leave program.
    endform.                    " EXIT_PROGRAM
    *&      Form  handle_double_click
          text
         -->P_E_ROW  text
         -->P_E_COLUMN  text
         -->P_ES_ROW_NO  text
    form handle_double_click  using   e_row type lvc_s_row
                                      e_column type lvc_s_col
                                      es_row_no type lvc_s_roid.
    data: t_output type  zfunctional.
        read table gt_itab into t_output index e_row-index .
      if sy-subrc = 0 and e_column-fieldname eq 'QMNUM'.
        set parameter id 'K01' field t_output-qmnum.
        call transaction 'ZSMART' and skip first screen .
      endif.
    endform.                    " handle_double_click
    regards,
    swaroop.

Maybe you are looking for

  • I've checked through all posts and still have no answers; help much needed

    Hello, I have a 30GB 5th Generation iPod and over the past few weeks I've encountered many problems, some of which have been fixed, others, which haven't. Tonight, more have come up. 1) I have read that many iPods here have had their videos and songs

  • MovieClipLoader height and width

    Hi all, ok, situation is this...user clicks and drags a rectangle on the stage which gets created into a Loader which they can then load an image/swf into using filereference upload. Depending on the size and position of the rectangle the user has dr

  • Regarding date function module

    Hi abapers, We have one requirement in selection screen validation. From date is Day 1 of the next period(month). To date is Day 1 of the next period*(month) + (next) 3 months. which function module we can use. how we can pass the selection screen of

  • Does SQLDeveloper license allow for redistibution?

    Hello, is the license for SQLDeveloper the same "free to develop, deploy, and distribute" as Oracle Database XE? Specifically, would it be within the license terms to include a working copy on a remastered Linux installation cd with connections/prefe

  • Pan & Zoom with Clip

    I have great success with the Premiere Elements 10 pan & zoom feature in the preview mode.  But when I hit 'done' it invariably crashes.  I'm obviously doing something wrong.  Any help will be appreciated.  Thanks.