SAP Note 484528 - Error BS051 with PO with account assignment category 'E'

Component : SD CO interface, costing -

Solution : https://service.sap.com/sap/support/notes/484528 (SAP Service marketplace login required)

Summary :
When creating a purchase order with account assignment category 'E' linked to a sales order CO object, SAP system may incorrectly trigger a lock and issue error BS051, blocking the completion of the purchase order. This is due to flawed programming logic from a prior update (Note 177559). The error prevents activity allocation for locked sales order items. To rectify, adjust the program logic in function module SD_DOCUMENT_ACCOUNT_ASSIGNMENT by adding a new import parameter to bypass this unnecessary check.

Key words :
system issues error message bs051, attached source code corrections, -party order processing reason, account assignment category 'e', function module sd_document_account_assignment, i_check_co_obj_ _type spec, i_check_co_objreference field/-structure, account assignment occurs, incorrect program logic, sales order item

Related Notes :

177599AS/400: Telnet: Connection to host lost
171059Account assignment to order item without CO object