I really wonder why you could not get any value as one can see it in the old transaction ME23 from menu Header > Statistics
Or did I get confused by the past tense in your question: " ...if PO was created by transaction ...
and you are actually wanting this value while your PO is still processed and not yet posted to the database? In that case it would probably be N_EKKO structure which has the info during runtime