Hi Priyank,
In your receiver channel configuration, you would have configured RFC destination for sending the IDOC to ECC system. Go to T Code sm59, and check for this rfc destination. In the Logon & Security tab, you would see the user credentials being maintained.
Using this user, the IDOC gets posted in SAP system.
Regards
Vishnu