Skip to Content
0
Former Member
Mar 07, 2009 at 06:27 AM

Selection screen elements

10 Views

Hi all

Can any one help me in following.

there are 4 radiobuttons ( R1, R2, R3, R4 ) on the screen.

if R1 is selected than a parameter supposed to be displayed for entring the value.

this is done.

now the problem is i hv to check the company code say if the bukrs = 1101

only then the R4 should be enable ( should be able to selected ). I hv written following code

selection-screen begin of block block2 with frame title text-002.

parameters :

p3 radiobutton group rad1 USER-COMMAND flag,

p1 radiobutton group rad1,

p2 radiobutton group rad1,

p4 radiobutton group rad1 .

selection-screen end of block block2.

selection-screen begin of block block1 with frame

title text-001.

parameters: p_ebeln type ekko-ebeln. " Purchase order no.

parameters : p_tin3(15) MODIF ID bl2.

selection-screen end of block block1.

if p1 = 'X'.

w_org = 'ABC Limited'.

elseif p2 = 'X'.

w_org = 'XYZ Limited'.

elseif p3 = 'X'.

w_org = ''.

w_flag = 'X'.

elseif p4 = 'X'.

w_org = ''.

w_flag = 'X'.

endif.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p3 <> 'X' AND

screen-group1 = 'BL2'.

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.