‎2007 Jun 27 7:27 AM
HI,
<b>In my ALV report output check box is there.
when the user check the checkbox and select icon(&ETA).
it should dipslay another program selection screen.
please let me know how i can do code for this.</b>
regards,
vijay
‎2007 Jun 27 7:50 AM
Hi,
just include a subroutine in your code eg.
&----
*& Form USER_COMMAND
&----
FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM.
CASE P_UCOMM.
WHEN '&ETA'.
(call your selectionscreen)
-
-
ENDIF.
ENDCASE.
ENDFORM
Include the sunroutine name in the 'I_CALLBACK_USER_COMMAND'
parameter of the REUSE_ALV_GRID_DISPLAY func. module eg.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
-
-
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
-
-
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Reward points if found to be useful
Regards,
Sandeep
Message was edited by:
sandeep govindan
‎2007 Jun 27 7:34 AM
Hi,
In PBO, you need to have such coding for register.
call method o_alvgrid->register_edit_event
exporting
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
Then based on that, in PAI you need to call another program if sy-ucomm = '&ETA' and checkbox is checked.
Message was edited by:
Jayanthi Jayaraman
‎2007 Jun 27 7:43 AM
hi Vijay,
U can use user command for this .
check the value of sy-ucomm
CASE sy-ucomm
when '&ETA'
u can call the program which u want to call .
U can use submit statement for this.
Submit Report_Name via selection-screen.
endcase
‎2007 Jun 27 7:50 AM
Hi,
just include a subroutine in your code eg.
&----
*& Form USER_COMMAND
&----
FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM.
CASE P_UCOMM.
WHEN '&ETA'.
(call your selectionscreen)
-
-
ENDIF.
ENDCASE.
ENDFORM
Include the sunroutine name in the 'I_CALLBACK_USER_COMMAND'
parameter of the REUSE_ALV_GRID_DISPLAY func. module eg.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
-
-
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
-
-
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Reward points if found to be useful
Regards,
Sandeep
Message was edited by:
sandeep govindan
‎2007 Jun 27 7:52 AM
Hi Vijay,
CASE SY-UCOMM
WHEN '&ETA'.
IF p_radio = 'X'.
SUBMIT ztest via selection-screen.
ENDIF.
ENDCASE.
‎2007 Jun 27 8:49 AM
Hi, Vijay,
Follow this it will work.
In Internal table which is being passed to alv.
*----
DATA: BEGIN OF IBKPF OCCURS 0,
MCHK,MSEL(1) type c
-
-
data : end of ibkpf.
In layout
*----
LYT-BOX_FIELDNAME = 'MSEL'.
LYT-BOX_TABNAME = 'IBKPF'.
form user command.
*----
FORM USERCOMMAND USING R_COMMAND TYPE SY-UCOMM SELFLD TYPE SLIS_SELFIELD.
DATA : MFLAG(10) TYPE C.
CASE R_COMMAND.
when 'YOUR BUTTON NAME'
CALL TRANSACTION ' '
alv function
*----
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = REPID
I_CALLBACK_USER_COMMAND = 'USERCOMMAND'
IT_FIELDCAT = FCAT
I_SAVE = 'X'
IT_EVENTS = F3[]
IS_LAYOUT = LYT
TABLES
T_OUTTAB = IBKPF.
Note:- Click on save button after check your chek box, so it will save value of check box to MSEL field of internal table. If you need I will send you a complete program to your mail.