Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Push button not working

Former Member
0 Likes
724

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.

4 REPLIES 4
Read only

Former Member
0 Likes
541

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

Read only

0 Likes
541

Please close the post if answered.

Read only

Former Member
0 Likes
541

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.

Read only

Former Member
0 Likes
541

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