Hi,
"When I try to test the FM passing all the data, i'm unable to save it."
means i think u have error in FM it self.
put break point in CRM_ORDER_MAINTAIN
create the sales order using CRMD_ORDER t-code
fill the data in your FM based on debugger.
Once the order is saving through FM, it should also save through web service.
Thanks
Suresh