Dear Cyrus
only slight add on: there are some standard function modules you should may be check:
e.g CBIH_WA30_WA_READ SAP ABAP Function Module - EHS: Read Work Areas
You should first check: what does SAP standard delviers (as useful function module) and then, if needed, create your own solution
C.B.