SAP Note 1599301 - Locking problem in the PPF Action execution

Component : PPF Actions -

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

Summary :
PPF Action execution failures in SAP due to document locking can notably disrupt processes. This occurs when "Processing when saving" PPF Actions attempt to lock documents post-COMMIT via tRFC modules, leading to parallel execution issues. To rectify this, serialization of PPF Actions is recommended by implementing SAP Note 1479681. This involves setting a queue name within the BAdI COMPLETE_PROC_PPF to convert tRFC to serialized qRFC. Steps include creating the BAdI implementation, adjusting filter values for affected Actions, and setting the queue via method COMPLETE_METHOD, generally using the ERO number as the queue name.

Key words :
key refdoccat = /scwm/if_doc_c=>sc_doccat_ero        assigning <ls_refdoc>, lo_header = ls_bo-bo->get_header, ls_bo         type /scdl/af_ppf_str, lt_refdoc     type /scdl/dl_refdoc_tab, lo_header     type ref, lt_refdoc = lo_header->get_refdoc, read table lt_refdoc, lv_queuename = <ls_refdoc>-refdocno, trfc function modules, locking problem error

Related Notes :

1479681PPF: Attribute QUEUENAME in trigger object
1423066Optimization of the performance in EWM