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

SELECTION-SCREEN

Former Member
0 Likes
425

hi

Can anybody tell me how to make execute button disable in a selection screen.

vikas

4 REPLIES 4
Read only

Former Member
0 Likes
389

TRY..

REPORT ZKIS.
[code]include rsdbc1xx.
parameters: p_check type c.
 at selection-screen output.
  append 'ONLI' to current_scr-excl.   "Execute
  append 'PRIN' to current_scr-excl.   "Execute and Print
  append 'SJOB' to current_scr-excl.   "Execute in Background

[/code]

OR.

u have to make new pf-status.

Read only

Former Member
0 Likes
389

Hi vikas,

try this:

*

INCLUDE .

*

*

SELECTION-SCREEN: SKIP.

SELECTION-SCREEN: BEGIN OF LINE.

SELECTION-SCREEN: PUSHBUTTON 30(20) PB01 USER-COMMAND ONLI.

SELECTION-SCREEN: END OF LINE.

*

*

INITIALIZATION.

*

CONCATENATE ICON_EXECUTE_OBJECT 'Ausführen' INTO PB01.

*

Regards, Dieter

Read only

Former Member
0 Likes
389
hi vikas,

  Pls check this program and modify according to ur requirement

REPORT YCHATEST.

DATA itab TYPE TABLE OF sy-ucomm.

PARAMETERS test(10) TYPE c.

AT SELECTION-SCREEN OUTPUT.

  APPEND: 'PRIN' TO itab,
          'SPOS' TO itab.

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            p_status  = sy-pfkey
       TABLES
            p_exclude = itab.

what is the solution??

Message was edited by: Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
389

Hi vikas,

problem solved?

regards, Dieter