Hi Rahul,
have you got the SAP reference in VBA module?
If you open the module with ALT + F11 then you choose the menu
Tools > References and press the button "Browse . . ."
Now choose the file C:\Program Files\SAP\FrontEnd\SAPgui\sapfewse.ocx.
This binds the SAP GUI Scripting API into the VBA - IDE.
After this you can check your code with the key F8 step-by-step.
Is this the solution?
Bye, netkid