Hello Pavan,
This is not possible in standard SAP. You'll have to give the logic to ABAPER accordingly. System should first go and check the customer (KUNNR), if it is XXXX then system should go and check the material (MATNR) and if it is YYYY then system should make the base price as 0.
Regards,
Anwar