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

execute button

Former Member
0 Likes
668

Hi,

I have 2 buttons - activate and deactivate in the selection screen. I use call transaction to do the process and both the buttons work. But I have to click on the execute button on top left everytime before clicking on activate or deactivate buttons. Otherwise it gives the message No changes made.

How to make it work without clicking on the execute button everytime?

Regards,

bindazme

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
445

Try this sample coding. Here I am forcing the "Execute" of the selection-screen based on the user clicking the buttons on the screen.


report zrich_0001.
 
tables: sscrfields.
 
selection-screen pushbutton /1(20) pb1 user-command act.
selection-screen pushbutton /1(20) pb2 user-command dea.
 
at selection-screen output.
 
pb1 = 'Activate'.
pb2 = 'Deactivate'.
 
at selection-screen.
 
  case sy-ucomm.
 
    when 'ACT' or 'DEA'.
      sscrfields-ucomm = 'ONLI'.
 
  endcase.
 
 
start-of-selection.
 
 
  write:/ 'START-of-SELECTION has been fired'.
 

Regards,

Rich Heilman

Read only

Former Member
0 Likes
445

Hi,

I think you have written the PF-STATUS at START-OF-SELECTIOn, but you need to write it before the START-OF-SELECTIOn.

Regards

Sudheer