You showed the batch class. But you didn't show the characteristics.
Have you added the characteristics to the class? You do this on the "CHAR" tab.
LOBM_UDCODE is an SAP standard characteristic provided in the system. When added to the batch class it displays the last UD made. Add this to the class and then in the batch record you should get the UD code made in that characteristic.
Craig