Application Development and Automation 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: 
Read only

Field Name

SG141
Active Participant
0 Likes
1,082

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,036

mandt

Reward points if helpful.

Regards.

Srikanta Gope

Read only

Former Member
0 Likes
1,036

Table T000 field CCCATEGORY will have the value;

P Production

T Test

C Customizing

D Demo

E Training/Education

S SAP reference

Regards,

Nick

Read only

SG141
Active Participant
0 Likes
1,036

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

Read only

0 Likes
1,036

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

Read only

Former Member
0 Likes
1,036

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

Read only

Former Member
0 Likes
1,036

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>

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,036

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

Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
1,036

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

Read only

Former Member
0 Likes
1,036

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