- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.
- Related Articles
- Pseudo code to hide warning in SAP ABAP
- Using clients in SAP ERP
- Difference between Thin Clients and Thick Clients
- Generating SAP ABAP code/ script from XML coming from an external application
- Usage of subqueries in internal table as condition in SAP ABAP source code.
- What is SAP ABAP?
- Difference between class alv and function alv in SAP ABAP?
- Difference between Internal tables, structures or work areas in SAP ABAP
- Negation logic in SAP ABAP
- Using logarithm in SAP ABAP
- Declare dynamically in SAP ABAP
- Source code of ABAP reports without restriction
- How to switch between different views in ALV Grid in SAP ABAP?
- Difference between Types,Types,Type-POOL and TYPE-POOLS in SAP ABAP
- Difference between Work area, global structure and internal table in SAP ABAP

Advertisements