Hi Suresh,
1.What I understand from your question is that if there is a distribution model created, how to find the partner profile to it?
Ans:If you goto t-code BD64 Menu option:Environment->Generate Partner Profile & execute the selection screen, if there is a partner profile existed to the model already it will show the partner type with port & parameters else it will generate it.
2.BAPI gets commited explicity by statement commit work.Unless the statememt commit work( which is bapi_transaction_commit) is encountered data wont be saved.But if commit work happens after successful execution of BAPI even when the second BAPI fails data should get saved for the sucessfully executed one's.if you want to control two BAPI's at the same time one related to other, you can check the return code of BAPI's , only after the success messag's of both BAPI go for commit.
With regards,