Distinguish SAP ABAP code between clients

You can use field “sy-mandt” to identify the client and then accomplish your requirement by doing something like below −

IF sy-mandt = '002'.
*do something for Client one
* do something for client two

This field is included in almost all the tables which are client dependent so you can freely use this to fulfill your requirement.