2007 Aug 01 3:04 PM
Which field in the SAP gives the information that the client we are working is Development or quality or production.
2007 Aug 01 3:07 PM
2007 Aug 01 3:07 PM
Table T000 field CCCATEGORY will have the value;
P Production
T Test
C Customizing
D Demo
E Training/Education
S SAP reference
Regards,
Nick
2007 Aug 01 3:13 PM
I know sy-mandt retrieves the current client we are working. All I need is the Whether client is development or Testing or Production.
2007 Aug 01 4:03 PM
So use SY-MANDT to read table T000 and consider field CCCATEGORY.
2007 Aug 01 3:07 PM
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
2007 Aug 01 3:08 PM
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>
2007 Aug 01 4:06 PM
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
2007 Aug 01 4:07 PM
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
2007 Aug 01 5:29 PM
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