04-08-2010 8:02 AM
Hi Experts,
I need to disable execute button on the selection screento restrict program to run in foreground and add another buttn which schedules a job in background. Kindly help.
Thanks in advance.
04-08-2010 8:08 AM
Hi,
you need to change the dynpro/ gui-status , Transaction: SE80
regards
Nicole
04-08-2010 8:11 AM
Hello
TABLES: sscrfields.
include rsdbc1xx.
INITIALIZATION .
sscrfields-functxt_01 = 'Button1'.
SELECTION-SCREEN: FUNCTION KEY 1.
AT SELECTION-SCREEN OUTPUT.
append 'ONLI' to current_scr-excl.
AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN 'FC01'.
"* Here you write your logic for background job
ENDCASE.
03-30-2011 5:28 AM
TABLES: sscrfields.
include rsdbc1xx.
INITIALIZATION .
sscrfields-functxt_01 = 'Button1'.
SELECTION-SCREEN: FUNCTION KEY 1.
AT SELECTION-SCREEN OUTPUT.
append 'ONLI' to current_scr-excl.
AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN 'FC01'.
"* Here you write your logic for background job
ENDCASE.
I have the same problem. This works like a charm!
Thanks Dzed Maroz.
Edited by: Samanta Limbrada on Mar 30, 2011 6:29 AM
04-08-2010 8:14 AM
04-08-2010 8:21 AM
Hi,
For this purpose u can use system varibale SY-BATCH. Using this variable u can contol the Execution in foreground.
If SY-BATCH is initial then its foreground if it is not initial then its background.
Regards,
Srinivas.
Edited by: Srininas on Apr 8, 2010 12:52 PM
04-08-2010 8:23 AM
Hi Udit,
The Your PF Status has to be used below the initialization.
Initialization.
Set PF-STATUS 'YOUR_PF_STATUS'
Edited by: Prasath Arivazhagan on Apr 8, 2010 9:24 AM
04-08-2010 9:00 AM
Thanks a lot ! for quick response.
Techies, I want to modify the standard one as I am not sure how will I make the SAVE button (to save the variant) to work.
Please guide.
Thanks again.
04-08-2010 9:00 AM
hi,
At selection-screen output.
Set pf-status 'ZZZZ'. - Add function code for back/cancel/exit alone in GUI status 'ZZZZ'.
03-30-2011 6:37 AM
Hi Udit,
try this.
APPEND: 'ONLI' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
03-30-2011 6:59 AM
Hi,
What i understood from your problem.
1) You created the report program.
2) You don't want execute button.
3) You want to enable save button.
All these you can do using module pool program.
Kind Rgds