Determining the current client in SAP using code


You can find the current client in sy-mandt.

Example

Here is the code you can write for same.

IF sy-mandt = ‘001’.
*do A.
ELSE.
*Do B.
ENDIF.

Updated on: 18-Dec-2019

675 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements