Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Form Mode validation

Hi ,

created Add-on Form using screen painter. in form update mode i want to make my document no fleld(user defined) to be non-editable(enabled=fasle) like normal SAP screens.i used the following code for that.

Select Case pVal.FormUID

case "FormId"

Select Case pVal.Before_Action

case "true"

If pVal.FormMode = "2" Then

OForm = sbo_application.Forms.Item("Frmuid")

OForm.Items.Item("Doc_No").Enabled = False

End If

End Select

End Select

its working fine. but the event will trigger again and again until change in form mode.

i want to eliminate execution of statement once the docnumber field is set to Enabled = False in update mode.where i can add my code exactly?


Ganesh kl

Former Member
Not what you were looking for? View more on this topic or Ask a question