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: 

how to disable

former_member529475
Active Contributor
0 Kudos

Hi

This is the existin g code

SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.

parameters:

p_nor radiobutton group rad1, "new posting

p_rep2 radiobutton group rad1. "report (flag '2')

select-options:

recno for zbacks_gipd-recno "record number

default '1' obligatory.

SELECTION-SCREEN END OF BLOCK 8.

I want to disable p_rep2 and recno ,how to do this ?

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

hI..

This is the code:

SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.

parameters:

p_nor radiobutton group rad1, "new posting

p_rep2 radiobutton group rad1. "report (flag '2')

select-options:

recno for zbacks_gipd-recno "record number

default '1' obligatory.

SELECTION-SCREEN END OF BLOCK 8.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_REP2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'RECNO'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

<b>REWARD IF HELPFUL</b>

4 REPLIES 4

varma_narayana
Active Contributor
0 Kudos

hI..

This is the code:

SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.

parameters:

p_nor radiobutton group rad1, "new posting

p_rep2 radiobutton group rad1. "report (flag '2')

select-options:

recno for zbacks_gipd-recno "record number

default '1' obligatory.

SELECTION-SCREEN END OF BLOCK 8.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_REP2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'RECNO'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

<b>REWARD IF HELPFUL</b>

0 Kudos

I am getting a error ,when I do like this with some variable which is allready declared as not declared.

Former Member
0 Kudos

Hi

SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.

parameters:

p_nor radiobutton group rad1, "new posting

p_rep2 radiobutton group rad1. "report (flag '2')

select-options:

recno for zbacks_gipd-recno "record number

default '1' obligatory <b>modif id s1.</b>.

SELECTION-SCREEN END OF BLOCK 8.

<b>

at selection-screen output

loop at screen.

when r1 = 'x' and screen-group1 = 's1'.

screen-input = '0'.

modify screen.

endloop.</b>

reward if usefull

Former Member
0 Kudos

hi vasu,

u can use the command loop at screen to disable this radiobutton and select-option.

In at selection-screen u can write the code for enable or disable and then modify the screen.

go to the table SCREEN, u can find the options available for fields.

Regards...

Arun.

Reward points if useful.