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

Detect production system via program

Former Member
0 Likes
1,470

Hi,

I am planning to prevent a program from getting executed in Production system, is there a way to detect if the system is 'Production' system programaticaly.

Thanks,

Arpitha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
854

if your basis team is maintaining properly production client info will be in T000-CCCATEGORY. it willbe P for production client.

6 REPLIES 6
Read only

Former Member
0 Likes
854

if u know the client number of ur production system then put and condition that if SY-MANDT <> client number

then continue with execution.

кu03B1ятu03B9к

Read only

0 Likes
854

Hi Karthik,

Thanks for your repy. But sy-mandt is not an option as even my production client can have the same number. Using sy-sysid could be an option but I have to hard code the production system number.

Was wondering if there is anyway to identify from the System attributes to check if this is a Production system.

Regards,

Arpitha.

Read only

0 Likes
854

Does your basis person changes the System name frequently(Even second time)?

Read only

0 Likes
854

I am not sure if it servers ur purpose check this FM : RFC_GET_SYSTEM_INFO : Give system's information of a remote system

Read only

amit_khare
Active Contributor
0 Likes
854

say ur Development system is DV1 and production is PV1.

Then check for SY-SYSID NE ' PV1'.

Read only

Former Member
0 Likes
855

if your basis team is maintaining properly production client info will be in T000-CCCATEGORY. it willbe P for production client.