Hi Kalpana,
Check in SMGW-> goto-> logged on clients . can you see your program id over there as Registered program id.
If you can see it there just give program id in SM59 and keep gateway host and service blank and try
If you can't see your program id in SMGW then it is not registered yet.
Regards,
Vikas