Skip to Content
0
Former Member
Oct 07, 2009 at 11:05 PM

How to Clear the value for select option field

784 Views

Hi all,

i have developed a custom report with few selection screen fields as select options.

Now im enabling /disabling 2 of the select options based on 2 radio buttons.

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

PARAMETERS : pr_sc RADIOBUTTON GROUP grp1 USER-COMMAND ucom DEFAULT 'X',

pr_po RADIOBUTTON GROUP grp1.

SELECT-OPTIONS :s_sc FOR crmd_orderadm_h-object_id ,

s_po FOR crmd_orderadm_h-object_id ,

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

IF pr_sc = 'X'. "Selection for Shopping cart

LOOP AT SCREEN.

IF screen-name = text-003 OR screen-name = text-004.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSEIF pr_po = 'X'. "Selection for Purchase Order

LOOP AT SCREEN.

IF screen-name = text-005 OR screen-name = text-006.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Now when i change the radio button option and if the select option field for earlier radio button is already filled ,then I need to cear that field value.How can i do that?

e.g. if radio button for shopping cart is selected,then I need to disbale the select option field for PO as well as clear the value in the PO select option field if its previously filled!

Thanks in advance.

BR,

PD.