You are on page 1of 1

program demo_dynpro_push_button . data: ok_code type sy-ucomm, save_ok like ok_code, output(8) type c. call screen 100.

module user_command_0100 input. save_ok = ok_code. clear ok_code. case save_ok. when 'BUTTON_EXIT'. leave program. when 'BUTTON_1'. output = 'Button 1'(001). when 'BUTTON_2'. output = 'Button 2'(002). when 'BUTTON_3'. output = 'Button 3'(003). when 'BUTTON_4'. output = 'Button 4'(004). when others. output = save_ok. endcase. endmodule.

You might also like