2007 Dec 14 9:40 AM
Hi All,
I've a table control and I've four records in it. Out of the four records ,only the first record is right and rest three are invalid POs.
Am looping my table control and checking the validations, if its invalid then am giving error message .if they click delete button then am deleting the record which is invalid PO by placing the curson on that line in table control,then it
comes to third record since this is also invalid PO, its giving same error mesage and shows all the four POs without deleting the second one..
What I need is once the secod record is deleted it should show the rest three records..Again if user wants to delete third record then it should delte and show first 7 fourth record.
How can I do this...
Points for sure.
Thanks,
Ponraj.s.
2007 Dec 14 10:11 AM
Hi,
Just try before the validation for invalid POs.
CHECK SY-UCOMM NE 'DELE'.
Only then you need to validate. Validation should not happen when user selecting delete. So that you skip validation when you want to delete a record.
Please check.
Cordially
Shankar Narayanan.
2007 Dec 14 10:19 AM
Hi Shankar,
Thanks for your reply, but deleting & validation is coming in loop endloop of table control..
So once it deleted the second record and check the validation for third record , gives error message and displays all four records..
Is there anyother way???
Thanks,
Ponraj.s.
2007 Dec 14 12:53 PM
Hi Ponraj,
When deletion happens Validation should not occur. So before validation part, please put the check on sy-ucomm for deletion. so that when you delete the line the validation code is not executed.
Please paste the code (that part) i will check it if my suggestion not helping.
Thanks.
Cordially
Shankar Narayanan.
2007 Dec 14 11:43 AM