Execute button in Report List

Hi
I have an ALV wich executes with user commad button a Report List (write) ; then when the Report List is showed i need to execute some action with some button so i set a status gui with the button , but when i press the button any action is executed ; no control is passed to program even if i set the debug mode and then press that button.
Does somebody knows how can i catch a button in report list for make some action , taking in account that the report list was called from an ALV user command button.
Regards
Frank

I think you will need to activate the events of user_command in the events activating subroutine,
form f_eventtab_build changing lt_events type slis_t_event.
  data:
    lw_event type slis_alv_event.
  refresh lt_events.
  call function 'REUSE_ALV_EVENTS_GET'
    exporting
      i_list_type = 0
    importing
      et_events   = lt_events.
  read table lt_events
  with key name = slis_ev_user_command into lw_event.
  if sy-subrc = gc_zero.
    move slis_ev_user_command to: lw_event-form, lw_event-name.
    append lw_event to lt_events.
  endif.
endform.                    " f_eventtab_build
form user_command.
  if sy-ucomm = 'XXX'.
*   etc.....etc...... 
  endif.
endform.
does this solve your problem?
Edited by: Andre Julius on Jul 8, 2009 4:30 AM

Similar Messages

  • How to disable execute button in ABAP report

    Hi,
    Is it possible to disbale the execute button of ABAP report? If yes, how?
    Thanks & Regards,
    Lohit

    You can do this
    You can set the Authorization for execution and Assign it to user whom you dont want that option. so that they cannot execute the Program.

  • Report parameter textboxes and execute button is missing. Date Model works.

    Hello,
    I created a BI Publisher Data Model. Did the testing of it by generating XML sample data.
    The data model requires 3 parameters as input. All worked fine for generating the XML.
    When I now create a report with a .rtf template that uses the data model. then
    no parameter-entry header appears. no execute button either. why is that?
    thanks.

    I think the issue is a bigger one. when I try to upload the template I get the pop up saying "Object reference not set to an instance of an object". The .rtf template is not bigger than 2mb.

  • New buttons in report

    I want to add some buttons in my standard report (ZREPORT) so I have added buttons to my gui status. When I press the Execute button the start-of-selection is triggered, what did I have to do to trigger the start-of-selection with my own buttons.
    Regards,
    Daniel Cantin

    You can either write your logic in AT SELECTION-SCREEN (filtering via sscrfields-ucomm, ideal for non list processing ), or use something similar to this.
    REPORT  ZTESTREPORT_PRBA.
    INCLUDE <ICON>.
    DATA functxt TYPE smp_dyntxt.
    TABLES sscrfields.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
    PARAMETERS: P_CARRID TYPE S_CARRID.
    selection-screen function key 1.
    selection-screen function key 2.
    SELECTION-SCREEN END OF SCREEN 1100.
    INITIALIZATION.
      functxt-icon_id   = icon_ws_plane.
      functxt-quickinfo = 'Preselected Carrier'.
      functxt-icon_text = 'LH'.
      sscrfields-functxt_01 = functxt.
      functxt-icon_text = 'UA'.
      sscrfields-functxt_02 = functxt.
    AT SELECTION-SCREEN.
      case sscrfields-ucomm.
        WHEN 'FC01'.
         "  do FC01
         "execute (invoke START-OF-SELECTION)
         sscrfields-ucomm = 'ONLI'.
    WHEN 'FC02'.
        "      do FC01
       "execute (invoke START-OF-SELECTION)
           sscrfields-ucomm = 'ONLI'.
      endcase.
      START-OF-SELECTION.
    *do selection

  • Problem with Total Button with DroupDown list

    Hi All,
    here i have one Standard Report witch TCode is J3RFPDE . After Execute this program in output i get many button and in this button "TOTAL SIGN BUTTON"  has DroupDown list. So if i want thisTotal  Dropdown Button in my Report so is ti possible. And it's possible then please kindly tell me the procedure.
    Thanks
    Keyur Chauhan

    Hi,
    see report BCALV_GRID_05  it's a good exemple
    you must define class  METHOD handle_toolbar. 
    Rgds

  • Monthly report listing out ALL open PO

    Hi,
    As our management requested, we need a monthly report listing out ALL open PO for CDG, APR   Someone tell me to input cost centre but it is time consuming to input it as we have over 100 cost centers.  Do you know if I can input SPG/profit center or other data to run this report instead ?  Please advise the transaction code and how to perform it, such as need to know the profit center #, organization code etc
    Thanks
    Raja

    hi
    go to ME2N
    then select Scope of list  ALV
    Selection parameters  as           WE101     Open goods receipt   (select as per ur need )
    then execute u will get the list for open po
    now if u want it to specify the  profit center then go to ME2N and select dynamic selecion  (shift +F4)
    now u will get a smaal scrren , in purchaseing doc item selct profit center
    now u can see the profit center selection field ,give a proper profit center and follow the process as given above
    hope it help
    regards
    kunal

  • Getting a dump while executing the standard report BUSCHDOC

    Hi,
    I am getting a dump while executing the standard report BUSCHDOC.
    I am specifying the following values:-
    Application Object : BUPA
    Business partner:<some business partner>
    Changed on: <some date>
    Changed by:<some userid>
    Below are the dump details
    Short text
        CREATE DATA: The specified type "BUSSRCH_401BUPAT" is no valid data type.
    Any suggestions to avoid the dump are welcome.
    Thanks,
    Ravindra

    Hi Ravindra,
    Can you execute report BUP_BUSSRCHGF_REPAIR and try again ?
    Also, go to transaction BUS10, click the button Geneate Selection. On next screen, give Application object = BUPA, Max no. of tables per view = 1.
    Regards,
    Rishu.

  • Capturing the values of screen elements on click of execute button

    Hello folks,
    Is there a way to capture the values entered in the screen on click of the execute button?
    What I want to do is, I have a selection screen where-in a user can fill the input fields (parameters and select-options). Now when the user clicks on the execute button, the values of all the screen elements (no matter if they are filled or empty) should be stored in variable, so that I can use these values again when I am calling this program from another program.
    I want to do something similar to saving a variant, but this save should happen on click of Execute button and user need not require to explicitly save these values as variant.
    Hope I am clear enough to put my query in front of you all.
    It would be a great thing if you could help me.
    Need your help.
    Thanks in advance.

    Hi,
    You need something like this
    REPORT A.
    TABLES: sflight.
    PARAMETERS: pa_scarr   TYPE sflight-carrid.
    SELECT-OPTIONS so_conn FOR  sflight-connid.
    DATA: BEGIN OF it_selscr_values OCCURS 0.
            INCLUDE STRUCTURE rsparams.
    DATA END OF it_selscr_values.
    START-OF-SELECTION.
      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
        EXPORTING
          curr_report     = sy-repid
        TABLES
          selection_table = it_selscr_values.  "here you have all parameters' values from selection screen
    "later in some other program you can use this table to call report A filling its selection screen with these default values like
    SUBMIT a WITH SELECTION-TABLE it_selscr_values.
    Regards
    Marcin

  • How to enable enable Quick Edit button in Discussions List (SharePoint community).

    I wonder how I can enable the Quick Edit button in Discussions List (SharePoint community), see attachment. This is no problem on other list in SharePoint. I need to import data that I have in a Excel sheet from and old forum (not Sharepoint). So if I can
    enable Quick Edit, I will just copy data into my Discussions List. Hope somebody can help me???

    Hi,
    Please execute the commands below to enable Quick Edit feature in Discussion board list:
    $web = get-spweb "http://sp/sites/sitename"
    $list = $web.Lists["listname"]
    $list.DisableGridEditing = $false
    $list.Update()
    Now you could use Quick Edit in Management view.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Using Adobe Acrobat - Is it possible to execute JavaScript to report to LMS to track pdf was viewed?

    Question:  Using Adobe Acrobat - Is it possible to execute JavaScript to report to LMS to track pdf was viewed?
    What I would like to do is to create a pdf with an Acknowledgement button that when click will report (via JavaScript) to the LMS (Learning Management System) that the end user viewed/acknowledged the pdf.
    Can this be down with JavaScript in this fashion?

    Thanks, (My fault, as I should have specified this.) Due to legacy reasons I need to use ie, and so I can't use the PrintPdf firefox plugin. So from reading the rest of that thread, the best method does seem to be to get hold of a copy of acrobat, and add a Print() script in each file, and open it in a new tab.
    At least it gives me somethigin to try anyway :-)

  • Can the EXECUTE button on a selection screen suppressed?

    Can we suppress the EXECUTE button on the selection screen?

    Hi
    The flowlogic Keyword at EXIT-COMMAND is a special addition to the MODULE statement in the Flow Logic .AT EXIT-COMMAND  you can call a module before the system executes the automatic fields checks.
    u2018SUPPRESS DIALOGu2019 command allows to perform screen processing u201Cin the backgroundu201D. Suppresing screens is useful when we are branching to list-mode from a transaction dialog step.

  • TO SER FIELS BOX IN REPORT LIST SCREEN

    i WANT TO SET 2 RADIO BUTTON AND 2 FIELD BOX IN THE  REPORT LIST SCREEN WHERE I WANT TO ENTER DATA MANUALLY IN THE FIELD BOX. AND I WANT TO SET ONE PUSH BUTTON .I WANT TO SET ALL THERE IN LIST SCREEN NOT IN SELECTION SCREEN.
    CAN ANYBODY SUGGEST ME.
    THANKS

    hi check this..
    REPORT Z_TEST7 .
    *Table declaration
    tables: vbak,vbap.
    *internal table
    data: begin of i_sales occurs 0,
    vbeln like vbak-vbeln,
    erdat like vbak-erdat,
    audat like vbak-audat,
    kunnr like vbak-kunnr,
    vkorg like vbak-vkorg,
    matnr like vbap-matnr,
    netpr like vbap-netpr,
    check type c, "checkbox
    end of i_sales.
    type-pools: slis.
    data: v_fieldcat type slis_fieldcat_alv,
    gt_fieldcat type slis_t_fieldcat_alv,
    gt_layout type slis_layout_alv,
    gt_sort type slis_sortinfo_alv,
    fieldcat like line of gt_fieldcat.
    *Selection screen
    parameters: p_vkorg like vbak-vkorg.
    select-options: s_vbeln for vbak-vbeln.
    *start of selection.
    start-of-selection.
    perform get_data.
    perform fill_fieldcatalog.
    perform write_data.
    FORM get_data .
    select avbeln aerdat aaudat akunnr avkorg bmatnr b~netpr into
    corresponding fields of table i_sales from vbak
    as a inner join vbap as b on avbeln = bvbeln
    where a~vkorg = p_vkorg and
    a~vbeln in s_vbeln.
    ENDFORM. " get_data
    FORM write_data .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = sy-repid
    IS_LAYOUT = gt_layout
    IT_FIELDCAT = gt_fieldcat
    TABLES
    T_OUTTAB = i_sales .
    ENDFORM. " write_data
    FORM fill_fieldcatalog .
    sort i_sales by vbeln.
    clear v_fieldcat.
    "for check box
    v_fieldcat-col_pos = 1.
    v_fieldcat-fieldname = 'CHECK'.
    v_fieldcat-seltext_m = 'chek'.
    v_fieldcat-checkbox = 'X'.
    v_fieldcat-input = 'X'.
    v_fieldcat-edit = 'X'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    v_fieldcat-col_pos = 2.
    v_fieldcat-fieldname = 'VBELN'.
    v_fieldcat-seltext_m = 'Sales Document'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    v_fieldcat-col_pos = 3.
    v_fieldcat-fieldname = 'ERDAT'.
    v_fieldcat-seltext_m = 'Creation Date'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    v_fieldcat-col_pos = 4.
    v_fieldcat-fieldname = 'AUDAT'.
    v_fieldcat-seltext_m = 'Document Date'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    v_fieldcat-col_pos = 5.
    v_fieldcat-fieldname = 'KUNNR'.
    v_fieldcat-seltext_m = 'Customer'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    v_fieldcat-col_pos = 6.
    v_fieldcat-fieldname = 'VKORG'.
    v_fieldcat-seltext_m = 'Sales Organization'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    v_fieldcat-col_pos = 7.
    v_fieldcat-fieldname = 'MATNR'.
    v_fieldcat-seltext_m = 'Material'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    v_fieldcat-col_pos = 8.
    v_fieldcat-fieldname = 'NETPR'.
    v_fieldcat-seltext_m = 'Net Value'.
    append v_fieldcat to gt_fieldcat.
    clear v_fieldcat.
    endform.

  • Hot links to report listing journal entries for an account

    Hi Experts,
    We are going live soon with BPC-NW and have some questions regarding BPC-Excel reports, all done with EVDRE() function. Our BPC service pack level is 05, we are using Excel 2007 SP2 for the client and BW 7.01 ABAP Stack (Enh Pack 1) on the server side.
    We want to produce an Excel standad report with hot links to a report listing journals entries, passing it a parameter (account) so the report would list all journals and their entries for that account, and, so far, we haven't been able to find out how to do it.
    We tried using buttons and associate them with macro MNU_eJOURNAL_REPORT but it doesn't open the report journal by account directly and doesn't seem to accept any parameters.
    Has anyone found a way to do this?
    Best regards,
    Joao

    Hi Peter
    Thanks for the quick reply.
    Yes, we do manage our stock by warehouse. I went to admin->setup-> stock-> and then 'item groups' and 'warehouses' and checked the accounting tab. In both cases the 'Sales return Account' is marked as our stock account. Are there more hidden places I can look? Thanks
    Andreas

  • PO release codes in report/list

    Hello,
    Is there any Purchse order report/list, where we can see the release status's. For eg if there are two level release codes applicable to a purchase order (L1 & L2) , can we see the release code and whether released or not ?
    I know there is a way to restrict PO's based on dynamic selections of ME2N, but we require the actual relase code and status.
    Regards,
    Devendra

    Hi,
    You can the desired report through t/code: ME2L / ME2M , after executing the report go the change layout & select the Release code / release status field. Release staus field will be appear like , if first release is done , the status will come as X or if second release done, the it will come XX.  And from release indicator field , you can get the code release code .
    Regards,
    Raghunath

  • Button in basic list

    Hi
    I want to set a button in basic list of a transaction,not an ALV.
    I don't want to see the button in the detail list. How should i set this and where. Ideally where should  pf-status  be set in ?.
    Answers will be  rewarded.
    Thanks
    Varun Mathur
    Edited by: Varun Mathur on Feb 12, 2008 7:42 AM

    HI,
       check this program. in this the basic list has the gui and not the detail list...here the detail list is done using alv..dont worry abt that.
    report  z_banks1_rp1.
    TABLE
    tables : zacc_master2.
    TYPE-POOLS
    type-pools slis.
    *INTERNAL TABLE
    data : itab like zacc_master2 occurs 0 with header line.
    data : itab1 like zacc_master2 occurs 0 with header line.
    DATA
    data : gt_fcat type slis_t_fieldcat_alv,
           fcat like line of gt_fcat.
    data : check type c length 1,
           wa type c length 20.
    select * from zacc_master2 into table itab.
    write : '       ACCOUNT NUMBER' intensified color 3.
    loop at itab.
    write: / check as checkbox, itab-zaccno.
    endloop.
    hide : itab.
    START OF SELECTION
    start-of-selection.
    set pf-status 'ZMBANKS1'.
    AT LINE SELECTION
    at line-selection.
    AT USER-COMMAND
    at user-command.
    case sy-ucomm.
    when 'SUBMIT'.
    do.
    read line sy-index field value check itab-zaccno into wa.
    if sy-subrc <> 0.
    exit.
    elseif check = 'X'.
    read table itab with key zaccno = wa.
    if sy-subrc eq 0.
    move-corresponding itab to itab1.
    append itab1.
    endif.
    endif.
    enddo.
    CALLING SUB-ROUTINE
    perform fieldcatalog.
    CALLING FUNCTION MODULE
    call function 'REUSE_ALV_LIST_DISPLAY'
    exporting
    it_fieldcat = gt_fcat[]
    tables
    t_outtab = itab1.
    when 'BACK'.
    call screen 0002.
    *WHEN 'BACK1'.
    *CALL SCREEN 0002.
    endcase.
    SUB ROUTINE DECLARATION
    form fieldcatalog.
    fcat-seltext_l = 'ACCOUNT NUMBER'.
    fcat-fieldname = 'ZACCNO'.
    fcat-tabname = 'ITAB1'.
    append fcat to gt_fcat.
    fcat-seltext_l = 'CUSTOMER ID'.
    fcat-fieldname = 'ZCUSTID'.
    fcat-tabname = 'ITAB1'.
    append fcat to gt_fcat.
    fcat-seltext_l = 'ACCOUNT TYPE'.
    fcat-fieldname = 'ZACCTYPE'.
    fcat-tabname = 'ITAB1'.
    append fcat to gt_fcat.
    fcat-seltext_l = 'ACCOUNT BALANCE'.
    fcat-fieldname = 'ZBAL'.
    fcat-tabname = 'ITAB1'.
    append fcat to gt_fcat.
    fcat-seltext_l = 'ACCOUNT CREATED DATE'.
    fcat-fieldname = 'ZACCDATE'.
    fcat-tabname = 'ITAB1'.
    append fcat to gt_fcat.
    fcat-seltext_l = 'STATUS'.
    fcat-fieldname = 'ZSTAT'.
    fcat-tabname = 'ITAB1'.
    append fcat to gt_fcat.
    endform.
    Please reward if it is helpful.
    regards,
    sri

Maybe you are looking for

  • How do I get all hyperlinks to open in a new tab instead of redirecting the open page?

    Simply put, when I hit a hyperlink I do NOT want the page I'm on to go to the linked URL -- I want the new URL to appear in a new and separate tab. FF used to do this just fine -- until I "upgraded" to 5.0.1 yesterday. Between this and the smaller sc

  • "Tabbed" image in CS4 for tabbing in a PDF?

    I want to compare the effect of various edits on an image, by tabbing between them in a PDF that is generated from an InDesign file. This is the scenario: 1. Scan a Kodachrome slide. 2. Edit the image a certain way in Photoshop using Curves. 3. Apply

  • IDVD stability is not good, *many* crashes, should I stay or should I go?

    OK, I seem to be just the latest to rant on this topic, but I've got a brand new MacBook Pro, with 10.6.2, and if iDVD stays running for more than 10 minutes without crashing I'm doing well. Unlike other posters, I've not yet had a crash while burnin

  • Calling Methods

    Hi All, Can anybody pls tell me how to call a method built using class builder.. se24.. in a program ? Like how we goto 'edit - > pattern - > and give the function module name in that' to call a fn module.... Waiting for the reply.. Thanks in advance

  • How to Calculate Duration from Date Columns

    Hello, I would like to calculate duration from date columns. Using the following query SELECT DISTINCT EVENT_ID, To_Char(RU.START_TIME, 'HH24:MI') START_TIME, To_Char(RU.END_TIME, 'HH24:MI') END_TIME FROM ROOM_USAGE RU What I need is to subtract STAR