cancel
Showing results for 
Search instead for 
Did you mean: 

Radio button problem in webdynpro abap

Former Member
0 Kudos

Hi Guys,

In the selection screen i have 2 radio buttons PO and RP.

user is allowed to select either of the one so i have created 1 radio button group.

scenario 1:

when user clicks on radio button 1 and then click the submit button.

now he wants to change his selection so he again enter and click the radio button 2 and click on subnit button.

if he goes again he can see the radio button 2 selected.so it is working fine.

Scenario 2:

when user clicks on radio button 2 and then click the submit button.

now he wants to change his selection so he again enter and click the radio button 1 and click on subnit button.

if he goes again he can see the radio button 2 selected.so it is not working fine.

The coding is as follows:

on action submit i have writtent the following code

IF ls_iohncust_values-repplanonly IS NOT INITIAL.
             IF ls_iohncust_values-repplanonly EQ 'PO'.
               ls_profgen_custval-cust_attr      = 'REPONLY'.
               ls_profgen_custval-cust_value     = 'X'.
             ELSEIF ls_iohncust_values-repplanonly EQ 'RP'.
               ls_profgen_custval-cust_attr      = 'REPPLAN'.
               ls_profgen_custval-cust_value     = 'X'.
             ENDIF.
           ENDIF.


Kindly let me know why scenario 2 is not working.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vijay,

IF ls_iohncust_values-repplanonly IS NOT INITIAL.

             IF ls_iohncust_values-repplanonly EQ 'PO'.

               ls_profgen_custval-cust_attr      = 'REPONLY'.

               ls_profgen_custval-cust_value     = 'X'.

             ELSEIF ls_iohncust_values-repplanonly EQ 'RP'.

               ls_profgen_custval-cust_attr      = 'REPPLAN'.

               ls_profgen_custval-cust_value     = 'X'.

             ENDIF.

    ENDIF.

As I can see there is no such issue in selecting data in secord scenario. It might be the case that it's not getting cleared so you can just clear your node ls_iohncust_values-repplanonly after your endif on submit action.

Former Member
0 Kudos

Hi Vijay,

have your issue been solved?

If yes,then please close the thread.

Thanks.

Former Member
0 Kudos

Hi,

Code is in test system.No data in development.

Once testing is over i will close the thread.