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.

Updated on: 2020-02-14T07:57:10+05:30

273 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements