Skip to Content
Former Member
May 18, 2009 at 06:51 AM

Validating Table control line items



In My report , I am displaying a table control where user can enter some data. My requirement is to validate the entered data only when user presses a button.

So For this , I have not used command like FIELD t_item-matnr MODULE validate_matnr , as it is getting triggered evrytime. I need to validate fields only when a particular button 'Select' is prseesd.

So I have written the validations after loop...endloop in a seprate module in PAI . I have thrown an error message if validation fails which is putting my table control in non editable mode.

What I need is, on click of select button if validation fails, only that particular field should be in editable mode and cursor should be on that field only.