Call transaction from alv

i am calling a transaction from alv i want to select the check boxes on th called transaction and go to the next screen how do i do that

Hello Chandan
You have to handle the DOUBLE_CLICK event either in your callback form routine (FM-based ALV) or event handler method for event USER_COMMAND (ABAP-OO based ALV).
If you call the transaction directly you will not have the authority check for this transaction. If you need this, you can use function module <b>ABAP4_CALL_TRANSACTION</b> instead.
If you want to open the transaction in a new window you can use the static method <b>CL_RECA_GUI_SERVICES=>CALL_TRANSACTION</b> (no authority check!).
Regards
Uwe

Similar Messages

  • Want to call transactions from ALV list output

    Hi Guru's,
    I have a report which displays Open PR's, open PO's n their details with respect to material. wat i want to do is call transactions from this out put i.e i want a interactive output. if i click on particular PR i want the system to call that PR screen. how can i do this?? Plz help.

    REFER THIS
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = ' '
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = 'USER_COMMAND '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
      IT_FIELDCAT                    =
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      TABLES
        T_OUTTAB                       =
    IF SY-SUBRC <> 0.
    ENDIF.
    AND THEN
                     rs_lineinfo type slis_lineinfo.
    FORM user_command5 USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    data : lv_date type char4.
    CLEAR : LV_DATE .
    CASE r_ucomm.
    WHEN '&IC1'.
          IF rs_selfield-fieldname = 'BELNR'.
        read table it_e into wa_e index rs_selfield-tabindex.
        if sy-subrc = 0.
        lv_date = wa_e-budat(4).
        endif.
        SET PARAMETER ID 'BLN' FIELD rs_selfield-value.
        SET PARAMETER ID 'BUK' FIELD s_bukrs-low.
        SET PARAMETER ID 'GJR' FIELD lv_date.
        call TRANsaction 'FB03' AND SKIP FIRST SCREEN.
        endif.
        ENDCASE.
    ENDFORM. "user_comm

  • Calling Transaction from ALV using OO Method

    Hi,
    My requirement is as follows....
    I have an ALV grid with columns such as month wise Total of a GL account  say JAN, feb etc...
    When I double click on any of these cells it should take me to the respective Transaction (say FBL3n for the GL account and the company code) . I am able to track the GL account for which the total is displayed and company code is one of my selection criteria. In the main screen of the FBL3N we have to enter the posting date and i also want the Radio button against "all items', presently default is against 'Open Items'. So how can i proceed.
    Thanks and Regards,
    Namit

    DATA gr_event_handler TYPE REF TO lcl_event_handler . .. ..
    *--Creating an instance for the event handler
    CREATE OBJECT gr_event_handler .
    *--Registering handler methods to handle ALV Grid events
    SET HANDLER gr_event_handler->handle_double_click FOR gr_alvgrid .
    CLASS lcl_event_handler IMPLEMENTATION .
    *Handle Double Click
    METHOD handle_double_click .
    PERFORM handle_double_click USING e_row e_column es_row_no .
    ENDMETHOD .
    CLASS lcl_event_handler DEFINITION
    *Double-click control
    Methods:
    handle_double_click
          FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING e_row e_column
               i_fieldrows      TYPE lvc_t_row.
               w_fieldrows LIKE LINE OF i_fieldrows,
      CALL METHOD o_alvgrid->get_selected_rows
                 IMPORTING
                 et_index_rows = i_fieldrows.
      LOOP AT i_fieldrows INTO w_fieldrows.
        READ TABLE i_batch INTO w_block INDEX w_fieldrows-index.
    if sy-subrc = 0.
    *       CLASS LCL_EVENT_RECEIVER DEFINITION
    CLASS LCL_EVENT_RECEIVER DEFINITION.
    * Event receiver definitions for ALV actions
      PUBLIC SECTION.
        CLASS-METHODS:
    * Row Double click for dirll down.
           HANDLE_DOUBLE_CLICK
             FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                IMPORTING E_ROW
                          E_COLUMN
                          ES_ROW_NO.
    ENDCLASS.
    * Implementation
    * Every event handler that is specified below should also be set after
    * the object has been created.  This is done in the PBO processing.
    * with the following command
    * SET HANDLER oEventreceiver->handle_toolbar FOR o_Alvgrid.
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
    *&      Method handle_double_click
    * This method is called when the user double clicks on a line to drill
    * down.
    * The following are exported from the ALV
    * LVC_S_ROW
    * LVC_S_COL
    * LVC_S_ROID
      METHOD HANDLE_DOUBLE_CLICK.
    * The double click drill down processing should be
    * coded in the form below.
       PERFORM F9007_HANDLE_DOUBLE_CLICK USING E_ROW
                                               E_COLUMN
                                               ES_ROW_NO.
      ENDMETHOD.
    ENDCLASS.
    *&      Form  F9007_HANDLE_DOUBLE_CLICK
    * This form is called when the user double clicks on a line to drill
    * down.
    *      -->P_E_ROW_ID    - Row ID  text
    *      -->P_E_COLUMN_ID - Column ID
    *      -->P_ES_ROW_NO   - Row number
    FORM f9007_handle_double_click USING p_row
                                         p_column
                                         p_row_no.
      DATA: lw_output LIKE LINE OF i_output.
    * RG:16/11/2004 - Start of Changes
    * Need to check that a subtotal or grand total line has not been
    * double-clicked, otherwise the report will produce a short dump!
      check p_row+0(1) is initial.
    * RG:16/11/2004 - End of Changes
      READ TABLE i_output INDEX p_row INTO lw_output.
      CASE p_column.
        WHEN 'KNUMA'.
          IF NOT lw_output-knuma IS INITIAL.
            SET PARAMETER ID 'VBO' FIELD lw_output-knuma.
            CALL TRANSACTION 'VBO3' AND SKIP FIRST SCREEN.
          ENDIF.
        WHEN 'VBAK_VBELN'.
         IF NOT lw_output-vbak_vbeln IS INITIAL.
          SET PARAMETER ID 'AUN' FIELD lw_output-vbak_vbeln.
            CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
          ENDIF.
        WHEN 'VBRK_VBELN'.
          IF NOT lw_output-vbrk_vbeln IS INITIAL.
            SET PARAMETER ID 'VF' FIELD lw_output-vbrk_vbeln.
            CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
          ENDIF.
      ENDCASE.
    ENDFORM.                    " F9007_HANDLE_DOUBLE_CLICK

  • Call tcode from alv report and passing  group of values

    hi all .
    i want to call tcode from alv report and passing an internal table or group of values to a selection option of that t code ? how
    ex. passing group of GL to fbl3n and display the detials of all .
    thank you

    Dear,
    You have done a small mistake
    --> rspar_line-option = 'EQ'.
         rspar_line-HIGH = PDATE-HIGH.
    u r passing "high" value and in "option u r passing "EQ" so how it will work!!!
    So if u r passing only 1 date or more dates like 01.01.2010 , 15.02.2010 , 10.03.2010 then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-LOW = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    or if u r passing low & high date means in range like 01.01.2010 to 30.01.2010, then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'BT''.
    rspar_line-LOW = PDATE-LOW.
    rspar_line-HIGH = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    try above code , hope it helps...
    i think u cannot use "call transaction using bdcdata" in ur case bcoz as u said in ur 1st post u want to display the details of all but still if u want to use then u should pass all parameters in  loop.
    PROGRAM
    DYNPRO
    DYNBEGIN
    FNAM
    FVAL
    ex:-
    LOOP AT GT_TEMP INTO GS_TEMP.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = 'SAPXXXX'.
    bdcdata_DYNPRO = '1000'.
    bdcdata_DYNBEGIN = 'X'.
    bdcdata_wa-fnam = '''.
    bdcdata_wa-fval = ''.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'SD_SAKNR'.
    bdcdata_wa-fval = GS_TEMP-GLACCOUNT.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = 'XXX'.
    APPEND bdcdata_wa TO bdcdata_tab.
    ENDLOOP.
    try above code if u r using call transaction...
    Edited by: mihir6666 on Jul 9, 2011 3:10 PM
    Edited by: mihir6666 on Jul 9, 2011 3:11 PM
    Edited by: mihir6666 on Jul 9, 2011 3:13 PM

  • Call Transaction in ALV GRID Display

    Hi All,
    i have an ALV list .( list of Invoices) i want to call  trans.
    VF03 from clicking the line .
    i have also used User Command, events  in ALV function .
    as mention below , but cant able to call transaction.
    in ALV line is selected but not working or moves to another Tcode as VF03 with parameter id .
    please help me in this , if any body can ?
    thanks in advance
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_INTERFACE_CHECK        = G_INTERFACE_CHECK
          I_CALLBACK_PROGRAM       = GV_REPID
          IT_FIELDCAT              = GT_FIELDCAT[]
          I_DEFAULT                = 'X'
          I_SAVE                   = 'A'
          IS_LAYOUT                = LAYOUT_IN
          IS_VARIANT               = VARIANT_DETAIL
          IT_EVENTS                = EVENTCAT
         I_CALLBACK_PF_STATUS_SET = 'SET_STATUS'
          I_CALLBACK_USER_COMMAND  = USER_COMMAND
          I_GRID_TITLE             = 'Tax Report : GRN'
        I_CALLBACK_TOP_OF_PAGE   = 'page_header'
        I_BACKGROUND_ID          = 'ALV_BACKGROUND'
        IS_PRINT                 = ALV_PRINT
        IMPORTING
          ES_EXIT_CAUSED_BY_USER   = LS_EXIT_BY_USER
      TABLES
        T_OUTTAB                 = IT_VBRP
      EXCEPTIONS
        PROGRAM_ERROR            = 1
        OTHERS                   = 2.
      IF SY-SUBRC <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-SGV4.
      ENDIF.
    Nitin

    HI,
    check the sample code which call the transaction VA02.
    type-pools: slis.
    types: BEGIN OF TY_KNA1,
    KUNNR TYPE KUNNR,
    NAME1 TYPE NAME1,
    ORT01 TYPE ORT01,
    END OF TY_KNA1.
    TYPES: BEGIN OF TY_VBAK,
    VBELN TYPE VBELN,
    ERNAM TYPE ERNAM,
    ERDAT TYPE ERDAT,
    NETWR TYPE NETWR,
    WAERK TYPE WAERK,
    END OF TY_VBAK.
    *&--WORK AREA & TABLE DECLARATION--
    DATA: W_KNA1 TYPE TY_KNA1.
    DATA: T_KNA1 TYPE STANDARD TABLE OF TY_KNA1 INITIAL SIZE 1.
    DATA: W_VBAK TYPE TY_VBAK.
    DATA: T_VBAK TYPE STANDARD TABLE OF TY_VBAK INITIAL SIZE 1.
    *&--FIELDCAT TABLE & WORK AREA--
    DATA: W_FCAT TYPE SLIS_FIELDCAT_ALV.
    DATA: T_FCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA: W_FCAT1 TYPE SLIS_FIELDCAT_ALV.
    DATA: T_FCAT1 TYPE SLIS_T_FIELDCAT_ALV.
    *&--EVENT TABLE AND WORK AREA--
    DATA: W_EVENTS TYPE SLIS_ALV_EVENT.
    DATA: T_EVENTS TYPE SLIS_T_EVENT.
    DATA: W_EVENTS1 TYPE SLIS_ALV_EVENT.
    DATA: T_EVENTS1 TYPE SLIS_T_EVENT.
    *&--COMMENT TABLE & WORK AREA--
    DATA: W_COMMENT TYPE SLIS_LISTHEADER.
    DATA: T_COMMENT TYPE SLIS_T_LISTHEADER.
    DATA: W_COMMENT1 TYPE SLIS_LISTHEADER.
    DATA: T_COMMENT1 TYPE SLIS_T_LISTHEADER.
    APPENDING FCAT -
    W_FCAT-COL_POS = 1.
    W_FCAT-FIELDNAME = 'KUNNR'.
    W_FCAT-SELTEXT_M = 'CUST. NO'.
    W_FCAT-HOTSPOT = 'X'. "HOT SPOT HAND SYMBOL
    W_FCAT-EMPHASIZE = 'C119'. "FOR COLORING THE COLUMN 1
    APPEND W_FCAT TO T_FCAT.
    CLEAR W_FCAT.
    W_FCAT-COL_POS = 2.
    W_FCAT-FIELDNAME = 'NAME1'.
    W_FCAT-SELTEXT_M = 'CUST. NAME'.
    APPEND W_FCAT TO T_FCAT.
    W_FCAT-COL_POS = 3.
    W_FCAT-FIELDNAME = 'ORT01'.
    W_FCAT-SELTEXT_M = 'CITY'.
    APPEND W_FCAT TO T_FCAT.
    W_FCAT1-COL_POS = 1.
    W_FCAT1-FIELDNAME = 'VBELN'.
    W_FCAT1-SELTEXT_M = 'ORDER NO'.
    W_FCAT1-EMPHASIZE = 'C519'.
    APPEND W_FCAT1 TO T_FCAT1.
    CLEAR W_FCAT.
    W_FCAT1-COL_POS = 2.
    W_FCAT1-FIELDNAME = 'ERNAM'.
    W_FCAT1-SELTEXT_M = 'NAME OF PARTY'.
    APPEND W_FCAT1 TO T_FCAT1.
    W_FCAT1-COL_POS = 3.
    W_FCAT1-FIELDNAME = 'ERDAT'.
    W_FCAT1-SELTEXT_M = 'DATE'.
    APPEND W_FCAT1 TO T_FCAT1.
    W_FCAT1-COL_POS = 4.
    W_FCAT1-FIELDNAME = 'NETWR'.
    W_FCAT1-SELTEXT_M = 'ORDER VALUE'.
    APPEND W_FCAT1 TO T_FCAT1.
    W_FCAT1-COL_POS = 5.
    W_FCAT1-FIELDNAME = 'WAERK'.
    W_FCAT1-SELTEXT_M = 'CURRENCY'.
    APPEND W_FCAT1 TO T_FCAT1.
    *&--APPEND COMMENTRY--
    W_COMMENT-TYP = 'H'.
    W_COMMENT-INFO = 'CUSTOMER DETAILS'.
    APPEND W_COMMENT TO T_COMMENT.
    CLEAR W_COMMENT.
    *&--APPEND EVENTS TABLE--
    W_EVENTS-NAME = 'TOP_OF_PAGE'.
    W_EVENTS-FORM = 'TOPPAGE'.
    APPEND W_EVENTS TO T_EVENTS.
    W_EVENTS-NAME = 'USER_COMMAND'.
    W_EVENTS-FORM = 'SUB2'.
    APPEND W_EVENTS TO T_EVENTS.
    W_EVENTS1-NAME = 'TOP_OF_PAGE'.
    W_EVENTS1-FORM = 'TOPPAGE1'.
    APPEND W_EVENTS1 TO T_EVENTS1.
    CLEAR W_EVENTS1.
    W_EVENTS1-NAME = 'USER_COMMAND'.
    W_EVENTS1-FORM = 'SUB3'.
    APPEND W_EVENTS1 TO T_EVENTS1.
    SELECT-OPTIONS: CUSTNO FOR W_KNA1-KUNNR.
    SELECT KUNNR
    NAME1
    ORT01 FROM KNA1 INTO TABLE T_KNA1
    WHERE KUNNR IN CUSTNO.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    *I_BACKGROUND_ID =
    I_GRID_TITLE = 'CUSTOMER DETAILS'
    IT_FIELDCAT = T_FCAT
    IT_EVENTS = T_EVENTS
    TABLES
    T_OUTTAB = T_KNA1 .
    FORM TOPPAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = T_COMMENT
    I_LOGO = 'LOGO_ALV'.
    ENDFORM. "END OF TOPPAGE SUB.
    FORM SUB2 USING UCOMM LIKE SY-UCOMM FIELDS1 TYPE SLIS_SELFIELD.
    READ TABLE T_KNA1 INTO W_KNA1 INDEX FIELDS1-TABINDEX.
    SELECT VBELN
    ERNAM
    ERDAT
    NETWR
    WAERK
    FROM VBAK
    INTO TABLE T_VBAK
    WHERE KUNNR = W_KNA1-KUNNR.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    *I_BACKGROUND_ID =
    I_GRID_TITLE = 'LIST OF ORDERS'
    IT_FIELDCAT = T_FCAT1
    IT_EVENTS = T_EVENTS1
    TABLES
    T_OUTTAB = T_VBAK.
    ENDFORM. "END OF SUB2.
    FORM TOPPAGE1.
    *&--APPEND COMMENTRYOF SECONDRY SCREEN--
    W_COMMENT1-TYP = 'H'.
    W_COMMENT1-INFO = 'LIST OF ORDERS'.
    APPEND W_COMMENT1 TO T_COMMENT1.
    W_COMMENT1-TYP = 'S'.
    W_COMMENT1-KEY = 'CUSTOMER'.
    W_COMMENT1-INFO = W_KNA1-KUNNR.
    APPEND W_COMMENT1 TO T_COMMENT1.
    CLEAR W_COMMENT.
    W_COMMENT1-TYP = 'A'.
    W_COMMENT1-INFO = W_KNA1-NAME1.
    APPEND W_COMMENT1 TO T_COMMENT1.
    CLEAR W_COMMENT1.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = T_COMMENT1
    I_LOGO = 'LOGO_ALV'
    REFRESH T_COMMENT1.
    ENDFORM. "END OF TOPPAGE1
    FORM SUB3 USING UCOMM LIKE SY-UCOMM FIELDS1 TYPE SLIS_SELFIELD.
    READ TABLE T_VBAK INTO W_VBAK INDEX FIELDS1-TABINDEX.
    SET PARAMETER ID 'VBAk' FIELD W_VBAK-VBELN.
    CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
    ENDFORM.
    reward if useful.
    thanks and regards.

  • Calling Transaction from other system using RFC

    Hi ,
    I have one button on screen(say Screen-A), in ECC. when its pressed the transaction '/SAPAPO/BOPIN' gets called from APO.
    For calling transaction from APO I am using FM - 'ABAP4_CALL_TRANSACTION'.
    I want the initial screen of that transaction to retain some values which I fill on the Screen-A(the screen which has that button).
    When I call the transaction from ECC itself (ex. C006), the initial screen of C006 retains the value on Screen-A.
    I want the same to happen in case of calling transaction from APO.
    How to achieve this?  Would it need the changes in IMG (SPRO)?
    Please note that, Screen-A is initial screen of transaction 'md05' and I want to retain vaules of Material, MRP Area, Plant.
    Thanks,
    Sujeet

    Builld a RFC enabled FM () that wrap the call of Smartforms (*) in the other system.
    Regards,
    Raymond
    (*) [Writing Remote Function Modules in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/22/0425f2488911d189490000e829fbbd/content.htm]
    (**) [Integrating the Smart Form into the Application|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm]

  • ESS throwing error while calling transaction from R/3

    Whenever u try to pull certain I-view like under ESS > Income tax provisional statement then the portal throws below mentioned error. Portal is not able to call transactions from R/3.
    Error:
    The requested URL could not be retrieved
    While trying to retrieve the URL: http://dev.mglep.com:26000/sap(ZT0yZElaRG5xNDlZdFF4aGcyTDhzMWxRLS1hVUR5bDBMbjBDZ2hWUUcyMlZmcmlBLS0=)/bc/gui/sap/its/webgui?
    The following error was encountered:
    Connection to 69.43.161.156 Failed
    The system returned:
        (111) Connection refusedThe remote host or network may be down. Please try the request again.
    Your cache administrator is root.
    Please help

    Hi,
    Please check the parameters that has been defined in SICF for the transaction you are using.
    With Regards,
    Kaustuv Goswami.

  • Calling a Transaction from ALV Grid Using OO method

    Hi,
    My requirement is as follows....
    I have an ALV grid with columns such as PO no., GR no., Invoice no., etc...
    When I double click on any of these cells it should take me to the respective Transaction (say ME23n for PO no.) with the cell content as input in the transaction.
    Thanks and Regards,
    Navaneeth

    Hi,
      then u can write the code in HANDLE_DOUBLE_CLICK method
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
        METHODS:
    *method used for double click
        HANDLE_DOUBLE_CLICK
            FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                IMPORTING E_ROW E_COLUMN,
    ENDCLASS.                    "LCL_EVENT_RECEIVER DEFINITION
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
    *implementation of the method double click
    *when document no is double clicked in ALV GRID , its value is sent to
    *transaction FPE3 and the corresponding values of the document are
    *displayed
      METHOD HANDLE_DOUBLE_CLICK.
        CLEAR WA_WRT_OFF_FLDS.
        IF E_COLUMN = 'OPBEL'.
          READ TABLE ITAB INTO WA_IAB INDEX E_ROW-INDEX.
               set parameter....
               call transaction...
          endif.
           ENDMETHOD.                    "handle_double_click
    *method to remove unwanted icons from toolbar
    endclass.

  • Call transaction in ALV report

    Dear Experts,
    I want to call transaction HUMO from my ALV report on double click on Handling unit no.
    I want to pass the Handling unit through my report and skip the first screen.
    I try it using Call Transaction but the filed Handling unit doesn't have a parameter ID.
    I also try it using Submit but the program is a function pool.
    Can anyone please help me out in solving the issue.
    Thanks in advance
    Best regards
    Ankur G.

    Hai,
    This can be achieved by creating custom parameter id.
    1.Go to the table maintenance generator of the table TPARA and go to the Maintain button through the transaction SM30. 
    Enter the table view name TPARA.
    2.Click on the maintain button. The following information will appear. Click on the Tick button or the ENTER button to go to the next screen.
    3.Enter the Set/Get parameter id as the parameter ID you want to create. Here, I will be creating the parameter Id as ZNAME_DATA1. Click on ENTER button.
    4.It will ask for the text of the parameter Id. Enter the text of the parameter ID and click on the Save button.
    5.Now go to the SE11 transaction for creating a data element and enter the parameter id at the Further Characteristics tab at the parameter Id section.
    6.Activate the data element and use it with the program. It will act the same good as a standard one.

  • How to resolve the error in bdc call transaction in ALV report

    Dear Experts, i am executing the alv report program and in alv report program one bdc is there..
    after executing output is showing in alv format but one button is there (update master)..when i am clicking update button the bdc is run but is not updated in the material master..after executing my bdc is not updated in mm02.
    how to resove it?
    CALL TRANSACTION 'MM02' USING BDCDATA MODE MODE
                                                              UPDATE 'S'
                                                      MESSAGES INTO MESSTAB.

    Hi Kaustav,
    Looking at the code you attached, it appears to me that your BDC (Form  USER_COMMAND) is not executed at all as you haven't passed the 'USER_COMMAND' in FM REUSE_ALV_GRID_DISPLAY for ALV display.
    You must pass the importing parameter  I_CALLBACK_USER_COMMAND of this FM as 'USER_COMMAND', only then this form will be executed and your BDC will run.
    Thereafter, in case your BDC update fails, you can put a break-point in the form (at CALL TRANSACTION statement) and analyze the message table MESSTAB.
    Hope it helps.
    Regards,
    Sapeksh

  • Call transaction from the ABAP report

    Hi Gurus,
    Please help me with suggestion. I would like to access from SAP report with double click transaction FB03. I can access it, but in old transaction view ... How can I get the new transaction view?
    Here is the code,
    BR
    Saso
    IF fieldname CS 'BELNR'.
      PERFORM bdc_screen USING 'SAPMF05L' '100'.
          PERFORM bdc_field USING 'RF05L-BELNR' fieldvalue.
          PERFORM bdc_field USING 'RF05L-BUKRS' '0008'.
          PERFORM bdc_field USING 'RF05L-GJAHR' int-gjahr.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          CALL TRANSACTION 'FB03' USING bdc_data MODE 'E'.
          REFRESH bdc_data.
    ENDIF

    Try this Example:
    REPORT  ZABHI_TABSTRIP NO STANDARD PAGE HEADING
                 LINE-SIZE 80 LINE-COUNT 60.
    TABLES : sscrfields.
    DATA  activetab(6) TYPE c .
    DATA  mat_des TYPE makt-maktx.
    DATA  pl_des  TYPE t001w-name1 .
    DATA  mat_gro  TYPE mara-mbrsh .
    DATA  mat_typ  TYPE mara-mtart .
    SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-002 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-010 FOR FIELD matnr.
    PARAMETERS matnr TYPE mara-matnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN END OF SCREEN 001.
    SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-003 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-020 FOR FIELD matnr.
    PARAMETERS werks TYPE t001w-werks.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block2.
    SELECTION-SCREEN END OF SCREEN 002.
    SELECTION-SCREEN BEGIN OF SCREEN 003 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block3 WITH FRAME TITLE text-004 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-030 FOR FIELD matnr.
    PARAMETERS mbrsh TYPE mara-mbrsh.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block3.
    SELECTION-SCREEN END OF SCREEN 003.
    SELECTION-SCREEN BEGIN OF SCREEN 004 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block4 WITH FRAME TITLE text-005 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-005 FOR FIELD matnr.
    PARAMETERS mtart TYPE mara-mtart.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block4.
    SELECTION-SCREEN END OF SCREEN 004.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 5 LINES NO INTERVALS.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1
                                        DEFAULT SCREEN 002.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2 .
    SELECTION-SCREEN TAB (15) tabs3 USER-COMMAND ucomm3.
    SELECTION-SCREEN TAB (15) tabs4 USER-COMMAND ucomm4.
    *                     DEFAULT SCREEN 002   .
    SELECTION-SCREEN END OF BLOCK tabb1.
    INITIALIZATION.
       tabs1 = text-002.
       tabs2 = text-003.
       tabs3 = text-004.
       tabs4 = text-005.
       activetab = 'TABS1'.
    AT SELECTION-SCREEN .
       CASE sscrfields-ucomm.
         WHEN 'UCOMM1'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 001.
           tabb1-activetab = 'TABS1'.
           activetab = 'TABS1' .
         WHEN 'UCOMM2'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 002.
           tabb1-activetab = 'TABS2'.
           activetab = 'TABS2'.
            WHEN 'UCOMM3'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 003.
           tabb1-activetab = 'TABS3'.
           activetab = 'TABS3'.
            WHEN 'UCOMM4'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 004.
           tabb1-activetab = 'TABS4'.
           activetab = 'TABS4'.
       ENDCASE.
    START-OF-SELECTION.
       CASE activetab.
         WHEN 'TABS1'.
           SELECT SINGLE maktx  FROM makt INTO pl_des WHERE matnr = matnr.
           WRITE: 'Material ' , matnr , mat_des .
           WHEN 'TABS2'.
           SELECT SINGLE name1  FROM t001w INTO pl_des WHERE werks = werks.
           WRITE: 'Plant ' , werks ,pl_des.
         WHEN 'TABS3'.
           SELECT SINGLE mbrsh  FROM mara INTO mat_gro WHERE mbrsh = mbrsh.
           WRITE: 'Material Group ' , mbrsh ,mat_gro.
           WHEN 'TABS4'.
           SELECT SINGLE mtart  FROM mara INTO  mat_typ WHERE mtart = mtart.
           WRITE: 'Material Type ' , mtart , mat_typ.
           ENDCASE.
    And let me know.

  • Call transaction from RFC?

    Hi Experts,
    I need to call Different transactions from a RFC.
    I am looking for different approaches to achieve this.
    One Idea is RFC will take input parameters as
    -Transaction name
    -Field names to be updated with its values (as a table)
    Now in RFC, it should be able to update this transactionu2019s fields with the values provided in table parameter.
    RFC will fill up the BDC table with the needed data, and will call the needed transaction to update the data.
    Once the execution is complete, RFC will send back the different messages (error, info, and warning) through Table parameter.
    Now, I do not have much of ABAP experience so I need your help in following
    1)     Should I use BDC recording in RFC?
    2)     Can BDC send back all the messages encountered while calling the transaction?
    3)     Is there any other way to approach this requirement?
    Thank you in advance.
    Regards,
    Ashish Shah

    Hi Amitava,
    This RFC might be called from any WebBased application , like Portal , Visual Composer or WebDynpro for Java.
    One more idea , may be an extension to my current idea is:
    To add one more input parameter to RFC, a table with single field of type string.
    Populate this table with entire BDC recording for one particular transaction, and pass it as an input parameter of RFC.
    Once in RFC , this BDC recording can be used to populate BDC table and then pass this table to call transaction statement.
    Do you see any sense in this logic?
    Regards,
    Ashish Shah

  • Error calling transaction from a transaction

    Hi,
    I have created a transaction to batch Measurement Point readings for the PM Module. The batch uses a query to determine the tags required to update and it calls the "MeasurementPointWrite" transaction that I downloaded from SAP. My problem is when I run the batch transaction it reports "TransactionLoadException: Unable to find transaction file specified"
    Has anyone seen this issue?
    The following shows the relevant log dump:
    [DEBUG] [MPWriteCall]: Started action execution
    [DEBUG] [MPWriteCall]: Type: TransactionCall, Description:  MeasurementPointWrite Transaction Call
    [DEBUG] [MPWriteCall]: [Initializing Action][Initializing Parameters: [MPWriteCall.StoreTransactionOutput = MPWriteCall.StoreTransactionOutput=[boolean:false]][MPWriteCall.ResetState = MPWriteCall.ResetState=[boolean:true]][MPWriteCall.Persist = MPWriteCall.Persist=[string:INHERIT]][MPWriteCall.Async = MPWriteCall.Async=[boolean:false]][MPWriteCall.Expiration = MPWriteCall.Expiration=[long:21600000]]]
    [DEBUG] [MPWriteCall]: Resolving Input Links
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.Reader, Type [Assign], Time [ <1 ms], Expression: "PCS7 Automatic"
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.DebugFlag, Type [Assign], Time [ <1 ms], Expression: Transaction.DebugFlag
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.MeasurementPoint, Type [Assign], Time [ <1 ms], Expression: PCSTagRepeater.Item{/Row/POINT}
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.Reading, Type [Assign], Time [ <1 ms], Expression: PCSTagRepeater.Item{/Row/Value}
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.Text, Type [Assign], Time [ <1 ms], Expression: "PCS TimeStamp: "&PCSTagRepeater.Item{/Row/TimeStamp}
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.CreateOutputXML, Type [Assign], Time [ <1 ms], Expression: Transaction.CreateOutputXML
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.CreateNotif, Type [Assign], Time [ <1 ms], Expression: Local.Blank
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.NotificaitonType, Type [Assign], Time [ <1 ms], Expression: Local.Blank
    [DEBUG] [MPWriteCall]: Link Stats: MPWriteCall.DifferenceFlag, Type [Assign], Time [ <1 ms], Expression: Local.Blank
    [DEBUG] Action parameter creating time [ <1 ms]
    [DEBUG] Entering action 'MPWriteCall' implementation.
    [DEBUG] [] Loading transaction from file.
    [FATAL] [] Unable to find transaction in file system: .trx
    [DEBUG] Exiting action 'MPWriteCall' implementation
    [ERROR] Error found trying to execute action 'MPWriteCall' Exception: [Unable to find transaction file specified]
    [WARN] [MPWriteCall] Skipping execution of output links due to action failure.
    [ERROR] [MPWriteCall] Action: Runtime threw an exception. Exception: [com.sap.xmii.bls.exceptions.TransactionLoadException: Unable to find transaction file specified]
    [DEBUG] [MPWriteCall]: Finished[ <1 ms] Succeeded: false

    For what it's worth, it appears to be a problem at the source.  I have the same problem with the same downloaded file.  Looking at the xml, there is an error in the self-reference of location.  I was unable to figure out how to modify the xml of the export such that a reimport would fix it.  (Export it and look at the xml - do a find on MeasurementPointWrite and you will see what I mean).
    However, try the following:
    Create a new transaction.
    Copy the top sequence and include children of the MeasurementPointWrite transaction (basically you are copying the entire transaction contents).
    Paste it to the empty sequence in your new transaction. 
    Save it under some name.
    Create another new transaction.
    Drag and drop your first new transaction into the empty sequence of your second new transaction. 
    Now it works...
    Go figure.
    Regards,
    Mike
    Edited by: Michael Appleby on Oct 18, 2010 7:44 PM

  • Call transaction from java iView (link)

    Hi,
    I would like to call SAP R/3 transaction from a java iView. I know how to do it using the UrlGenerator service. Is there any other way of doing that ? (better way)
      Thanks, Nir.

    You can Use EPCM.doNavigate() to call R3 Transaction or something like this:
    <hbj:link id="r3"
              text="R3 Transaction">
    <% r3.setOnClientClick("OpenWindow('/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.Transaction?System=SAP_R3&TCode=SE80&GuiType=WinGui');return false;"); %>     
         </hbj:link>
    Regards,
    P.

  • Call Transaction from Program by Skipping Initial Screen & Pass the Value

    Hi All,
    Can anybody help me to call a transaction from my program. I do not want to display the initial screen of the transaction but that TCODE should get opened by passing the values to the parameter of the initial screen.
    For Example, in my program I want to call 'SE38' and in that, my Program of Name 'ZTEST' should get opened. So I need to call Transaction SE38, but I donot want to display initial screen of that. Instead of that, I want to put the value of Program 'ZTEST' and thus my program should get opened.
    Sandip

    Hello Sandip,
    Since you have not made any references to Batch Processing, I shall tell you the normal way to do it. First look at the code below and execute it.
    set parameter id 'DTB' field 'VBAK'.
    call transaction 'SE16' and skip first screen.
    There are a few things that you need to keep in mind before you use this statement:
    1. All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters.
    2. For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number. However, if the next screen can be reached from the first screen by just hitting the Enter key, this will work.
    The following will not work as you expect, because the next screen in the transaction cannot be reached by just hitting the Enter Key.
    set parameter id 'RID' field 'ZTEST'.
    call transaction 'SE38' and skip first screen.
    Regards,
    Anand Mandalika.
    Please reward points if this helps.

Maybe you are looking for

  • Very Basic Question i think ?

    Hi im very new to flash but am looking to learn some more about it i have tried to use the pre-built components in flash and was just wondering where or how you can retrieve the values from the checked boxes i know how to do for 1 checkbox by using i

  • Spec for Adobe Premiere C5.5

    Hi There, I am trying to put a PC together to run with Windows 7 and with Adobe Creative Suite 5.5. Would the following spec be suitable to run with Adobe and the Matrox MX02? I would appreciate your feedback. Regards Wayne

  • Error code 16 mac os Mavericks no PSD or SFStore folder

    Hi guys, I am using a range of programs all on CS5 (mostly photoshop), on my imac running os Mavericks. I was using photoshop last night, then this evening when I try and open it I get an error code 16, which I gather is related to permissions on cer

  • Help with lost pics and contacts in upgrading and get error message when I try to restore.

    I lost all pictures and contacts when I upgraded my iphone 4 (for the first time).  I did not download anything because I was using a friend's computer.  I read that apps not in itunes would be lost, but not pictures and I had 1500.  Every time I att

  • IP Addressing Poblem

    Hi all, Happy new year. I want to know if it is posible to connect to a server application running on a machine on the LAN having the IP address in this form 192.168.10.xx over the internet. I dont have access to run my server application on our serv