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: 

modify screen???

Former Member
0 Kudos
97

Hi all,

i have 2 radio buttons.

one for sales and another for purchase.

now if i click sales radio button,

i need to make the s_vbeln is select-options input button to be active and can enter values.

and s_ebeln which is for sales should be disabled.

so similarly,

if i click purchase,

s_ebeln should be enalbled to enter value

and s_vbeln should be disabled.

what to do.

pls help.

will be rewarded

1 ACCEPTED SOLUTION

Former Member
0 Kudos
64

Hi

loop at the screen elements

if radio_button_sales is selected.

  • change the screen attributes

screen-input = 0/1 OR screen-output =0/1

endloop

If you still have any queries, revert back to me...i will send the detailed code.

regards,

prasant

*reward if helpful

5 REPLIES 5

Former Member
0 Kudos
65

Hi

loop at the screen elements

if radio_button_sales is selected.

  • change the screen attributes

screen-input = 0/1 OR screen-output =0/1

endloop

If you still have any queries, revert back to me...i will send the detailed code.

regards,

prasant

*reward if helpful

0 Kudos
64

i need little detailed ... pls go ahead..

0 Kudos
64

Hi,

Please try with this code u can understand very easily.

SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-007.

PARAMETER:p_radio RADIOBUTTON GROUP gr1 USER-COMMAND scr11,

p_radio2 RADIOBUTTON GROUP gr1,

p_radio3 RADIOBUTTON GROUP gr1 DEFAULT 'X'.

SELECTION-SCREEN END OF BLOCK 1.

SELECTION-SCREEN BEGIN OF BLOCK 2 WITH FRAME TITLE text-001.

PARAMETER: p_file1 LIKE rlgrap-filename MODIF ID mm1.

SELECTION-SCREEN END OF BLOCK 2.

SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE text-001.

PARAMETER: p_file2 LIKE rlgrap-filename MODIF ID mm2.

SELECTION-SCREEN END OF BLOCK 3.

SELECTION-SCREEN BEGIN OF BLOCK 4 WITH FRAME TITLE text-001.

PARAMETER: p_file3 LIKE rlgrap-filename MODIF ID mm3.

PARAMETER: p_file4 LIKE rlgrap-filename MODIF ID mm3.

SELECTION-SCREEN END OF BLOCK 4.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF p_radio IS NOT INITIAL.

IF screen-group1 = 'MM2' OR screen-group1 = 'MM3'.

IF screen-name = 'P_FILE2' OR screen-name = 'P_FILE3' OR screen-name = 'P_FILE4' .

screen-active = 0.

screen-input = 0.

screen-invisible = 1.

ENDIF.

screen-active = 0.

screen-input = 0.

screen-invisible = 1.

ENDIF.

ENDIF.

IF p_radio2 IS NOT INITIAL.

IF screen-group1 = 'MM1' OR screen-group1 = 'MM3'.

IF screen-name = 'P_FILE1' OR screen-name = 'P_FILE3' OR screen-name = 'P_FILE4' .

screen-active = 0.

screen-input = 0.

screen-invisible = 1.

ENDIF.

screen-active = 0.

screen-input = 0.

screen-invisible = 1.

ENDIF.

ENDIF.

IF p_radio3 IS NOT INITIAL.

IF screen-group1 = 'MM1' OR screen-group1 = 'MM2'.

IF screen-name = 'P_FILE1' OR screen-name = 'P_FILE2'.

screen-active = 0.

screen-input = 0.

screen-invisible = 1.

ENDIF.

screen-active = 0.

screen-input = 0.

screen-invisible = 1.

ENDIF.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Thanks,

CSR.

***PS:Please reward if helpful.

mohammed_moqeeth
Active Participant
0 Kudos
64

Hi

<u><b>check the following code for your reference:</b></u>

PARAMETERS: P1 TYPE I,

R1 TYPE RADIOBUTTON GROUP G1,

R2 TYPE RADIOBUTTON GROUP G1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF P1 = 1 AND SCREEN-NAME = 'R1'

SCREEN-INPUT = 1.

MODIFY SCREEN.

ELSE.

SCREEN-NAME = 'R2'.

SCREEN-INPUT = 1.

MODIFY SCREEN.

ENDLOOP.

Regards,

Moqeeth.

Former Member
0 Kudos
64

hi,

try this one,

parameters: r1 type radio button group g1 user-command,

r2 type radio button group g1 user-command.

AT SELECTION-SCREEN.

IF R1 = 'sales' and screen-name = 's_vbeln'.

loop at screen.

screen-required = 1.

modify screen.

endloop.

else.

if r2 = 'purchase' and screen-name = 'e_vbeln'.

loop at screen.

screen-required = 1.

modify screen.

endloop.

else.

skip.

endif.

endif.

if helpful reward some points.

with regards,

Suresh.A