Skip to Content
0
Dec 19, 2019 at 01:38 PM

How to auto Click on Graph Icon

145 Views Last edit Dec 19, 2019 at 01:40 PM 3 rev

Dear Experts,

I'm trying to auto click on graph icon according to user command but nothing happens could you please help?

Here is my code under PAI --> MODULE USER_COMMAND_9000.

thanks in advance...

MODULE user_command_9000 INPUT.

  IF ok_code = 'BACK'.

   LEAVE PROGRAM.

  ELSEIF ok_code =  'EXIT'.

    LEAVE PROGRAM.

  ELSEIF  ok_code =  'CANCEL' .

    LEAVE PROGRAM.

  ELSEIF ok_code = '&GLN'.

    CALL SCREEN 9001.



  ELSEIF ok_code = '&GDN'.

    CALL SCREEN 9002.



  ELSEIF ok_code = '&SMCA'.

    CALL SCREEN 9004.

    CLEAR ok_code.

    CALL METHOD cl_gui_cfw=>set_new_ok_code

    EXPORTING new_code = '&GRAPH'.

ELSE.

ENDIF.

    EXIT.

ENDMODULE.