Hello Kavya,
Let me point you to the source, where the entire recording operation is elaborated with examples - on the company page that owns GuiXT: Create InputScript
The above example uses Materials Management as the backdrop; the same can be used on any transactional activities to generate the recorded script, which you can use to automate the steps by providing variables instead of the recorded hard-coded values.
If you need additional direction, I'll be happy to take few steps back and help you from scratch.
Best,
Vishal