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

modifying the selection screen

Former Member
0 Likes
654

Dear all,

I have two fields in selection screen sales order & SV Note.

Here if i enter SO,the SV Note field should be disabled & if i enter SV Note, SO field should be disabled.

Can any one give me the code for this ASAP.

Thanks & Regards,

Naresh

5 REPLIES 5
Read only

gopi_narendra
Active Contributor
0 Likes
623

Check this code

PARAMETERS       : r_one     RADIOBUTTON GROUP r2 USER-COMMAND u2.
PARAMETER        : p_one(10) TYPE c.
PARAMETERS       : r_two     RADIOBUTTON GROUP r2 DEFAULT 'X'.
PARAMETER        : p_two(10) TYPE c.


AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF r_one = 'X'.
      IF screen-name = 'P_TWO'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
    IF r_two = 'X'.
      IF screen-name = 'P_ONE'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

Regards

Gopi

Read only

Former Member
0 Likes
623

parameters : p type i.

parameters : d type i.

at selection-screen output.

loop at screen.

if p is not initial.

if screen-name = 'D'.

screen-input = 0.

endif.

endif.

endloop.

user just need to press enter to make that effect

reward if helpful

Read only

Former Member
0 Likes
623

Hi Naresh,

Use the following code

select-options : s_order .... modif id 'ABC',

s_sv..........modif id 'DEF'.

at selection-screen.

loop at screen.

if screen-group1 = 'DEF'.

if not s_order is initial and screen-fieldname = 'S_SV'.

screen-input = '0'.

modify screen.

endif.

endif.

endloop.

try this and get back to me incase of any queries.

Dont forget to reward points if found useful.

Thanks,

Satyesh

Read only

Former Member
0 Likes
623

Dear gopi,

can you tell me how to use only with the paramaters & i am not using the radio buttons...kindly revert me ASAP

Read only

Former Member
0 Likes
623

Hi,

Check the below code.

parameters: p_char type c,

p_num type i.

at selection-screen output.

loop at screen.

if screen-name = 'P_NUM'.

if not p_char is initial.

screen-input = 0.

else.

screen-input = 1.

endif.

endif.

if screen-name = 'P_CHAR'.

if not p_num is initial.

screen-input = 0.

else.

screen-input = 1.

endif.

endif.

modify screen.

endloop.