The standard way is given by AKPT for stock determination.
If you want the see current batch stock position on pressing F4, you have to create structure on search help..
In my organization, we have done the same things.
When we press F4, then I can see the all batch and batch stock for material.
The stock for material is fetched from MCHB-CLABS with regards to MATNR.
Please consult with your ABAP team. They will create a structure for help search...
Additionally check the help Adding an Append Structure (SAP Library - BC - ABAP Dictionary)