‎2007 Aug 06 7:30 PM
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
‎2007 Aug 06 7:31 PM
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
‎2007 Aug 06 7:31 PM
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