Hi Yogesh,
As Ulrich suggested , you can use BAPI_CUSTOMER_CREATE which internally calls XD01
but if you want to create a RFC without calling a transaction.
Then 1.) Create a FM with importing paramters as needed for KNA1 entries.
2.) Make it Remote Enabled
3..) Set up the RFC connection using SM59
You can reuse the step 3 for BAPI_CUSTOMER_CREATE as well.
Please reward if useful
Regards
Prateek