Hi Surender,
We used method /scdl/cl_dl_db_service-> get_bploc to read the current carrier partner (has partner role 'CARR' in returned data).
We then had our own logic to determine what the carrier should be, and if required we update it using method /scdl/cl_dl_db_service->set_bploc.
Hope that helps.
Jason.