‎2005 Aug 23 9:28 PM
Hi Everyone,
In my screen painter i have a pushbutton, so in my program when i press this pushbutton it has to perform something, but it does do anything nothing happens when i press.
In the
module user_command_0200 input.
case
save_ok
when 'push'.
perform xyz.
Its not performing anything, nothing happens when i press the pushbutton.
Any help on this will be of great use to me.
Thanks,
Prabs.
‎2005 Aug 23 9:34 PM
Have you entered 'PUSH' in the attribute 'FctCode' of the pushbutton?
Are you sure your 'save_ok' has the value 'PUSH' in it by the time it reaches this user_command_0200 module?
Please remember you have to use uppercase 'PUSH' not lowercase 'push' as you entered here.
Please let us know,
Srinivas
‎2005 Aug 24 3:17 AM
‎2005 Aug 24 4:44 AM
Hi,
Try this one
MODULE user_command_9001 INPUT.
REFRESH 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_output INTO w_output INDEX w_fieldrows-index.
ENDLOOP.
CASE sy-ucomm.
WHEN 'EXIT' OR 'CANC'.
PERFORM f9005_free_objects :
USING o_alvgrid 'ALV' text-e02 ,
USING o_dockingcontainer 'DOCKING' text-e01.
LEAVE PROGRAM.
WHEN 'BACK'.
PERFORM f9005_free_objects :
USING o_alvgrid 'ALV' text-e02 ,
USING o_dockingcontainer 'DOCKING' text-e01.
SET SCREEN '0'.
WHEN 'MMBE'<b>.(function code for the button in appplication toolbar)</b>
IF w_output-matnr IS INITIAL.
MESSAGE i001 WITH text-e07.
ELSE.
SET PARAMETER ID 'MAT' FIELD w_output-matnr.
SET PARAMETER ID 'WRK' FIELD w_output-werks.
CALL TRANSACTION c_transaction_call_mmbe AND SKIP FIRST SCREEN .
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDMODULE. " USER_COMMAND_9001 INPUT
Hope this helps.
‎2005 Aug 24 6:13 AM
Hi,
try this
In the module user_command_0200 input.
case sy-ucomm.
when 'PUSH'.
perform xyz.
if problem contines set break point and give the analysis.
Cheers,
Sasi