2009 Jan 06 5:15 PM
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.
2009 Jan 06 5:48 PM
if your basis team is maintaining properly production client info will be in T000-CCCATEGORY. it willbe P for production client.
2009 Jan 06 5:22 PM
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к
2009 Jan 06 5:44 PM
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.
2009 Jan 06 5:55 PM
Does your basis person changes the System name frequently(Even second time)?
2009 Jan 06 6:14 PM
I am not sure if it servers ur purpose check this FM : RFC_GET_SYSTEM_INFO : Give system's information of a remote system
2009 Jan 06 5:22 PM
say ur Development system is DV1 and production is PV1.
Then check for SY-SYSID NE ' PV1'.
2009 Jan 06 5:48 PM
if your basis team is maintaining properly production client info will be in T000-CCCATEGORY. it willbe P for production client.