Hi Prakasareddy,
Please find below exampleson how to record and write a program :
http://wiki.scn.sap.com/wiki/display/ABAP/Creating+an+ABAP+program+from+a+BDC+recording
BDC using CALL TRANSACTION method
Also attached is sample program for FSP0 to refer.
Thanks
Sri