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.
Showing results for 
Search instead for 
Did you mean: 

Field Name

Active Participant
0 Kudos

Which field in the SAP gives the information that the client we are working is Development or quality or production.


Former Member
0 Kudos


Reward points if helpful.


Srikanta Gope

Former Member
0 Kudos

Table T000 field CCCATEGORY will have the value;

P Production

T Test

C Customizing

D Demo

E Training/Education

S SAP reference



0 Kudos

I know sy-mandt retrieves the current client we are working. All I need is the Whether client is development or Testing or Production.

0 Kudos

So use SY-MANDT to read table T000 and consider field CCCATEGORY.

Former Member
0 Kudos

Hi Karthik,

SAP can return you the client number with the system field SY-MANDT. But I don't think that SAP can determine whether the returned client number is a Dev / Quality / Production. You might need to check them by yourself in the code, if you need to do that.


Reward points if this helps,</b>


Former Member
0 Kudos


<b>its MANDT


<b>clent 100 for cutomization

clent 200 for development

clent 300 for testing</b> and so on..



<b>plz dont forget to reward points if useful</b>

Developer Advocate
Developer Advocate
0 Kudos

Usually PRD, QA and DEV are not defined by the client, usually they will have there own instance and in a lot of cases their own physical systems. You can have the same client numbers in all three systems, which is most likely the case, so client number will not help you. Instead, you might try sysid. In my case we have two systems, TST and PRD, these are the system ids for my systems and the value is always stored in SY-SYSID. So, in my program if I want to know if my program is running in my production envirnoment, I can simply check if SY-SYSID = 'PRD'.


RIch Heilman

Active Contributor
0 Kudos


Try to use SYST-SYSID (SY-SYSID ), this field contain the system name, or just use SYST-MANDT(SY-MANDT) that contain the client.


Marcelo Ramos

Former Member
0 Kudos

I didn't get any table to store this field..

but during runtime.. in ur code you can use SY-SYSID for this field..

We have different System ID for different servers..

like in my case...

for Dev : ERD

For Test : ERT

For Production : ECP

SY-SYSID has corresponding values during run time..

Reward for useful answer..