# Distinguish SAP ABAP code between clients

SAP HANASAPSAP Basis

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
ELSE.
* do something for client two
ENDIF

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

Published on 18-Dec-2017 13:06:40