cancel
Showing results for 
Search instead for 
Did you mean: 

UDO Form Validation

Former Member
0 Kudos

Hi,

In my UDO form, there is a field "SumTotal " that is declared as double in database by default whose value is 0.0.

Before submitting i.e. adding the value to the database I want to keep the checking that the value should be greater than zero.

But, it's UDO form , so I don't have any control to check it.

How will I solve?

Rgds

Subrata

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Subrata,

Becoz of UDO so wht u can write by this in ItemEvent

Case SAPbouiCOM.BoEventTypes.et_CLICK

If pVal.ItemUID = "1" And pVal.BeforeAction = True Then

If PI_Frm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Or PI_Frm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Then

If Validation() = False Then

BubbleEvent = False

End If

End If

End If

Where Validation is a function which returns boolean.

If this is helpful give reward points,

Regards,

Anitha

Answers (0)