‎2008 Jan 10 10:54 PM
Hi,
When user enters the wrong data in the table control then automatically table control will throw an error for that line, if user not sure about that error and he wants to delete the errored line then there is a flexibility to select the number of lines and delete. But when he gets an error he could not able to even select the line to delete till he rectify the error in the table control / clear all the mandatory fields in the table control for that line.
Do you have any solution on this.
Regards,
Jaya
‎2008 Jan 11 2:12 AM
If you are doing your validation in the table control loop in your PAI, then only the current row will be editable if you issue an "E" type message, hence the problem you describe... so if you want to keep all the rows open for input, you will need some different logic... what I find effective is to set a flag in the PAI to say an error has been encountered (and trap the TC row too) and issue an "S" message... then allow the flow logic to get back to PBO wherein you can clear the error flag and position the cursor suitably. This way all the TC rows are available for processing when the screen is displayed.
Jonathan
‎2008 Jan 11 2:12 AM
If you are doing your validation in the table control loop in your PAI, then only the current row will be editable if you issue an "E" type message, hence the problem you describe... so if you want to keep all the rows open for input, you will need some different logic... what I find effective is to set a flag in the PAI to say an error has been encountered (and trap the TC row too) and issue an "S" message... then allow the flow logic to get back to PBO wherein you can clear the error flag and position the cursor suitably. This way all the TC rows are available for processing when the screen is displayed.
Jonathan
‎2008 Jan 11 2:15 AM