Just modifying the requirement.
To eliminate a record (and all its lines) based on a specific Status (status = BBB).
Each record has several status ie, AAA, ABC, BBB
TIM NY has several status, I want to eliminate this record and all lines if any line of this record has Status = BBB.
I should get the results where name = JOH NJ since it does not have the status = BBB.
Name Y/N INC ST SAP Y/N Status
TIM NY Yes IO TN SAP No AAA
TIM NY Yes IO TN SAP No ABC
TIM NY Yes IO TN SAP No BBB
JOH NJ Yes IO NJ SAP No AAA
JOH NJ Yes IO NJ SAP No ABC
So the End Result will be only
JOH NJ Yes IO NJ SAP No AAA
JOH NJ Yes IO NJ SAP No ABC