2766: if(regid_proc = true) then
2767: insert into hz_application_trans_gt(app_id,party_id) select 0, temp.party_id from hz_purge_gt temp where
2768:
2769:
2770: exists (select 'Y' from FND_USER xx where xx.CUSTOMER_ID = temp.party_id
2771: )
2772:
2773: or exists (select 'Y' from FND_USER xx where xx.PERSON_PARTY_ID = temp.party_id
2774: )
2769:
2770: exists (select 'Y' from FND_USER xx where xx.CUSTOMER_ID = temp.party_id
2771: )
2772:
2773: or exists (select 'Y' from FND_USER xx where xx.PERSON_PARTY_ID = temp.party_id
2774: )
2775:
2776: or exists (select 'Y' from UMX_REG_REQUESTS xx where xx.REQUESTED_FOR_PARTY_ID = temp.party_id
2777: and (ROWNUM < 2));
2778: else
2779: delete from hz_purge_gt temp where
2780:
2781:
2782: exists (select 'Y' from FND_USER xx where xx.CUSTOMER_ID = temp.party_id
2783: )
2784:
2785: or exists (select 'Y' from FND_USER xx where xx.PERSON_PARTY_ID = temp.party_id
2786: )
2781:
2782: exists (select 'Y' from FND_USER xx where xx.CUSTOMER_ID = temp.party_id
2783: )
2784:
2785: or exists (select 'Y' from FND_USER xx where xx.PERSON_PARTY_ID = temp.party_id
2786: )
2787:
2788: or exists (select 'Y' from UMX_REG_REQUESTS xx where xx.REQUESTED_FOR_PARTY_ID = temp.party_id
2789: and (ROWNUM < 2));