Are you having problem to reset for state inspection or do you have a code??
The computer monitors the system following certain criteria and it may take several drive cycles to reset...here is a site that helps describe the process..pages 5-8 explains in better detail. This may help reset for emissions test. This site is for older BMW's but the parameters are fairly the same. If you have a professional scan tool you can check readiness before going to emissions station CLICK HERE
If this helps please hit ACCEPT..BONUSES AND POSITIVE FEEDBACK WELCOMED