FM to know if you are in Dev, QA or prod
I'm looking for a FM to know if the running system is dev, qa or Prod ??
Check the table T000 field CCCATEGORY to see if the system is PROD etc.
run program in test system only
SELECT SINGLE cccategory FROM t000 INTO t000-cccategory WHERE mandt EQ sy-mandt. IF t000-cccategory EQ 'P'. MESSAGE e637. ENDIF.
Hope this helps.