When customer settle vendor transactions (invoice with payment) in currency different than accounting currency system creates realized gain or realized loss. During this operation system doesn't verify account structure which is required.
Customer ask - System creates new ledger transaction without required dimensions. In the vendor payments it is not validating and thus in voucher transactions its not showing dept, cost center. But, when customer try to create transaction in general journal on account, system validates with account structure.