Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CLIENT (MANDT field) and SY-UNAME?

Former Member
0 Kudos

What is the difference between CLIENT (MANDT field) and SY-UNAME?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

sy-uname is a system variable which gives u the login user name

which u have given at the begining when u logon to R/3 system

client (mandt field)

There are two types of objects in SAP, client dependent and client independent. Objects used in several clients are called client independent while objects used in a specific client is called client dependent. To identify if a table is client dependent, one can use tcodes SE11 or SE12. In the table field attributes, if the MANDT field is present that table is client dependent.

client specific means that you have to copy the script form client to client.

For example: you have a SAP system with 2 clients 000 and 001

You have created a Script in 000 you want to use it in client 001. To use it in 001 you have to copy it from 000.

Actually the concept of client dependent and client independent comes in Dictionary tables.

Where If we create any Ztable and if we specify field MANDT then it is said to be client dependent.

if we dosent specify field mandt in any table it is called as Client independent table.

MANDT is the field which differenciates the table from Client Dependent and Client Independent Tables.

Hope this clear ur doubt

Reward points if useful

Regards,

Sreenivas

7 REPLIES 7

Former Member
0 Kudos

HI

Landscape is something which tells where and how our consultants work is carried out that it helps the enduser run their business on SAP.

We will be working in test/quality server where we can 1 or 2 or 3 client in that server where we carry out out testing work and ask the enduser to test the developments made as per his requirement.

The required development work is carried out in the development server where again we can 2 or 3 clients, The number of clients depends on that particualr project. Though generally there would be 2 or 3 clients development one for abapers and one for functional guys and one as a back up or golden client.

In production only the endusers work and there would one client for that.

We have basically 3 servers, starting with a Development server where the abapers and consultants do the required customizations and configurations. Threre might be different clients in a Dev Server. Functional guys might work on one client where as developers might be working on one more. Also one more client is maintained which is a nearby replica of the production system, sometimes called as a Golden client.

A Test server or a Quality Server where all the customizations ( development ) and configurations are tested for ok. The configurations and customizations done in develpment are moved to quality and tested. If found ok we have those developments moved to Production server where the enduser would be working.

A Production Server where the actual enduser will be working. On this the developers and consultants are not allowed to make any kind of changes. Whatever is required with proper approvals they are developed in Development server, tested in Quality and have them moved to Production.

To facilitate this kind of secured working environment a system landscape is setup with various servers.

Also have a look at this link for more info.

Clients info

and where as

SY-UNAME is the logon user name i.e it gives the name of the user who logged on

plzzz reward if usefull or if u have any quiries

my mail id is mutyalasunilkumar@gmail.com

plzzz reward if usefull.

Former Member
0 Kudos

Client is the Logical Distribution of the Database. Maintenance of clietns is due to the Load Distribution Concept.

Sy-Uname ( Username) is the User that is using the Client.

Awrd Points if useful

Bhupal

Former Member
0 Kudos

Hi,

CLIENT is the instance of SAP you are working on.

where as Sy-UNAME is the User Id of the person working on SAP.

In debug mode check the values of both these fields. You will come to know the diff.

Regards,

lalit

Former Member
0 Kudos

Hi,

Mandt - It specifies wheather a table is client dependent or client independent.

If mandt is present the table is client dependent.

If mandt is not present the table is client independent.

Client Dependent :

If u declare a table as a client dependent , that table can be used with in that particular client , other clients can't access that table.

here we should specify first field is mandt.

Generally SAP Script is a cleint dependent, we can't use this Scripts directly to other clients without some conversion.

Client Independent :

If u declare a table as a client independent, We can access this table other client also.

here we need not to specify first field is mandt.

Generally Smart forms are client Independent, We can use those Smart forms into other clients also.

because when activating one Smart form, system automatically generate the one function module automatically.

SY-UNAME : Is jst the user name.

Reward if helpful.

Regards,

Harini.S

Former Member
0 Kudos

Client - one server can be divided into different clients based on your requirement like for technical person one client and for functional one client in the same server can be done.

sy-uname - login user name for that client which they have created this username.

Former Member
0 Kudos

hi,

A single R/3 System can manage the application data for several separate areas of a business

(for example, branches). Each of these commercially separate areas in the R/3 System is called

a client, and has a number. When a user logs onto an R/3 System, they specify a client. The first

column in the structure of every database table containing application data is the client field

(MANDT, from the German word for client). It is also the first field of the table key. Only universal

system tables are client-independent, and do not contain a client name.

While SY_UNAME holds the User name that is currently logged in to the system.

Pls reward if helpful

Former Member
0 Kudos

Hi

sy-uname is a system variable which gives u the login user name

which u have given at the begining when u logon to R/3 system

client (mandt field)

There are two types of objects in SAP, client dependent and client independent. Objects used in several clients are called client independent while objects used in a specific client is called client dependent. To identify if a table is client dependent, one can use tcodes SE11 or SE12. In the table field attributes, if the MANDT field is present that table is client dependent.

client specific means that you have to copy the script form client to client.

For example: you have a SAP system with 2 clients 000 and 001

You have created a Script in 000 you want to use it in client 001. To use it in 001 you have to copy it from 000.

Actually the concept of client dependent and client independent comes in Dictionary tables.

Where If we create any Ztable and if we specify field MANDT then it is said to be client dependent.

if we dosent specify field mandt in any table it is called as Client independent table.

MANDT is the field which differenciates the table from Client Dependent and Client Independent Tables.

Hope this clear ur doubt

Reward points if useful

Regards,

Sreenivas