I am getting errors
But i works fine when a decompile SystemUI.apk from a stock ROM
Yes it's possible. What decompiling tool are you using? I use apk multi-tool. In order to decompile system apk's, apk multi-tool has to have the framework-res apk from that rom installed as it is a dependency in order to decompile. For apk multi-tool this is achieved through the setup.bat script.