Based on his birthplace Janos served in one of below units (if he was drafted to the infantry):
common (k.u.k.) 67th infantry regiment
Hungarian (k.u.) 9th Honvéd infantry regiment
common (k.u.k.) 32nd Feldjager battalion
Please note that the 'Kramerius' contains the names of the loss reports (dead, wounded or captured) not all soldiers of the army. There can be spelling mistakes in the original reports and scanning mistakes in the database as well.
Did you contact the military archives in Vienna and Budapest?