Thanks fotr the reply.
I have tried your solution. But it is not able to create receipt. Here is my code.
session session;
Client client;
session = ApplicationEngine.CreateSession ("xxxx", ApplicationToken.Abf, null, new NamePasswordCredential ("Sage", ""))...