Showing results for 
Search instead for 
Did you mean: 

OptionButton Selected......Help Me..

Former Member
0 Kudos

Hi all!

A five optionbutton element is added to the form in Screen Painter.

Source coding the Next.


Dim oRadioButton As SAPbouiCOM.OptionBtn

Dim i As Long

For i = 7 To 11

Set oRadioButton = sForm.Items.Item(i).Specific

If i > 7 Then

oRadioButton.GroupWith (i - 1)

End If

oRadioButton.DataBind.SetBound True, "@ECRH", "U_STATUS"

Next i


Each optionbutton UniqueID : 7, 8, 9, 10, 11

It's problem UniqueID(9) Not selected.

I don't know. What's problem?

Thank you for your help

choi hyun yong

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


I guess the problem is that all R.B's not in the same group. The R.b. 8 is groupped with 7, R.B.9 - with 8 and etc. Make them all groupped with R.B.7. From my experience - I've seen the problems with option buttons when they were the first objects in the form. Define something before the opt. buttons.



Message was edited by: Mark Gulyansky

Answers (0)