When an invoice is released in transaction VF02 to accounting (by clicking on the button with the green flag - or alternatively pressing keys SHIFT + F4) the error message F5 351 (Account & & is blocked for posting) may occur:
The root cause of this error message is in this case, that the sold-to-party partner (in the example: customer number 67 for company code 0001) is blocked for accounting - in transaction FD05 for the involved company code:
However in the invoice the payer and bill-to-party partners are different and not blocked as the sold-to-party:
So why does the creation of the accounting document fail with error message F5 351? What relevance does the sold-to party partner play for accounting in this process?
The reason is explained in Knowledge Base Article 1592428:
Not only the payer is transferred to accounting as debitor, but also the sold-to-party partner - as the branch (field "BSEG-FILKD").
Therefore both customer accounts are checked for the existence of a lock set in FD05, and if this is the case then the error message is raised:
Two alternative solutions exist in this case:
- Remove the block for the sold-to-party in FD05.
- Implement a user-exit (for example EXIT_SAPLV60B_002) in which the field xaccit-filkd is cleared. The disadvantage of the clearing of the branch will be, that in FI no further selections with the branch account will be possible thereafter.
Further information:
===============