Hi Akhil,
After an extended debug session (just for you), I can tell you that the departure country for the Compliance checks is taken from the "Country of Physical Location" (field CTYPL) in the Customs Document. I'll leave you to check how that country is determined from the feeder system, but I guess it's related to the Plant.
I hope that now answers both of your questions.
Regards,
Dave