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
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.


Advertisements