6 Replies Latest reply: Sep 14, 2009 7:48 AM by tutun nandy RSS

Problem in call transaction in interactive ALV

Deepti Bhadang
Currently Being Moderated

Hi All

 

I am displaying ALV report.

I want to make it interactive. After clicking on REFBN (COBK-REFBN) it should open FB03 transaction.

 

I am using followng code:

 

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  •    i_callback_program                = sy-repid

   I_CALLBACK_USER_COMMAND            = 'USER_COMMAND'

  •   I_STRUCTURE_NAME                  =

  •   IS_LAYOUT                         =

   IT_FIELDCAT                        = it_fieldcat

  TABLES

    T_OUTTAB                          = it_final

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-MSGV4.

ENDIF.

 

FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM

                RS_SELFIELD TYPE SLIS_SELFIELD.

 

           READ TABLE it_final INDEX rs_selfield-tabindex INTO wa_final.

    CASE F_UCOMM.

        WHEN '&IC1'.

IF wa_final-refbn is not initial.

          SET PARAMETER ID 'BLR' FIELD wa_final-REFBN.

          CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

        ENDCASE.

ENDFORM.

 

This code is not working. When I am double clicking on the REFBN field in my report nothing is happening.

 

Please help.

 

Thanks & Regards

Deepti

Actions