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

Disable execute button on selection screen

Former Member
0 Likes
1,874

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
Read only

Former Member
0 Likes
1,457

Hi,

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

regards

Nicole

Read only

Former Member
0 Likes
1,457

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.

Read only

0 Likes
1,457
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

Read only

Former Member
0 Likes
1,457

Hi Udit,

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

Read only

0 Likes
1,457

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

Read only

0 Likes
1,457

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

Read only

0 Likes
1,457

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.

Read only

former_member418469
Participant
0 Likes
1,457

hi,

At selection-screen output.

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

Read only

Former Member
0 Likes
1,457

Hi Udit,

try this.

APPEND: 'ONLI' TO itab.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

EXPORTING

p_status = sy-pfkey

TABLES

p_exclude = itab.

Read only

ravi_lanjewar
Contributor
0 Likes
1,457

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