Application Development 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: 

Disable execute button on selection screen

Former Member
0 Kudos

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.

10 REPLIES 10

Former Member
0 Kudos

Hi,

you need to change the dynpro/ gui-status , Transaction: SE80

regards

Nicole

Former Member
0 Kudos

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.

0 Kudos
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

Former Member
0 Kudos

Hi Udit,

Create your own PF Status for your program and use it .

0 Kudos

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

0 Kudos

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

0 Kudos

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.

former_member418469
Participant
0 Kudos

hi,

At selection-screen output.

Set pf-status 'ZZZZ'. - Add function code for back/cancel/exit alone in GUI status 'ZZZZ'.

Former Member
0 Kudos

Hi Udit,

try this.

APPEND: 'ONLI' TO itab.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

EXPORTING

p_status = sy-pfkey

TABLES

p_exclude = itab.

ravi_lanjewar
Contributor
0 Kudos

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