As already written, the called program must save its data in memory or a persistent cluster of data if you want caller to get this information. Read documentation of EXPORT/IMPORT statement and online documentation on SAP Memory.
Hint: Some tools, as ALV, also have this option integrated (perform some search on class cl_salv_bs_runtime_info)
Regards,
Raymond