Unable to post Store Statement from AX2012 Retail R2

Hi,

When system tries to post an open statement for several stores , this is the message that occurs: " Account Structure profit & loss, for the combination 9000-----, is not valid for ledger companyA".

Any idea about the origin of the error and how this can be solved?