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: 

Selection screen elements

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

Hi,

This is just an idea: Use the separate group to the R4 and add the condition in the OUTPUT event like once in case of particular company code, screen-active & input = 1.

Regards,

~Satya

faisal_altaf2
Active Contributor
0 Kudos

Hi, Jaspal,

Please add the following Code Hope will solve out your problem,

AT SELECTION-SCREEN.
  IF p_ebeln = '0000001101'.
    clear: p1, p2, p3.
    p4 = 'X'.
  ENDIF.

Please Reply if any Issue,

Kind Regards,

Faisal