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: 

Field Name

SG141
Active Participant
0 Kudos
170

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

9 REPLIES 9

Former Member
0 Kudos
124

mandt

Reward points if helpful.

Regards.

Srikanta Gope

Former Member
0 Kudos
124

Table T000 field CCCATEGORY will have the value;

P Production

T Test

C Customizing

D Demo

E Training/Education

S SAP reference

Regards,

Nick

SG141
Active Participant
0 Kudos
124

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
124

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

Former Member
0 Kudos
124

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.

<b>

Reward points if this helps,</b>

Kiran

Former Member
0 Kudos
124

hi

<b>its MANDT

example</b>

<b>clent 100 for cutomization

clent 200 for development

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

regards

ravish

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
124

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'.

Regards,

RIch Heilman

marcelo_ramos
Active Contributor
0 Kudos
124

Hi,

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

Regards.

Marcelo Ramos

Former Member
0 Kudos
124

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..

Regards

Pradeep