Hello Syed,
You need to use BAPI_INSPOPER_RECORDRESULTS.
Refer below threads and scn wiki link; its advisable to get ABAP consultant's help.
Sample Code BAPI_INSPOPER_RECORDRESULTS - Code Gallery - SCN Wiki
http://scn.sap.com/thread/3476013
http://scn.sap.com/thread/1591370
http://scn.sap.com/thread/65878
Amol.