
Posted a journal entry through FB50, but your r_journalentrytp~created handler never runs while debugging? For the S/4HANA 2023 scenario in SAP KBA 3736294, check the background-processing setup and debugger options separately.
Check the BGPF destination

In the affected on-premise system, review SBGRFCCONF → Define Inbound Dest. and the inbound destination BGPF. Follow the release-specific bgPF and supervisor setup.
SAP Help’s BGPF procedure leaves Logon/Server Group and Add Queue Prefix empty. Do not copy unrelated destination settings from a generic example.
Check the debugger option
A POSTING_ILLEGAL_STATEMENT dump in SAPLARFC can also be triggered by background tRFC debugging. Review SAP Note 2948924 and turn off tRFC (in background task): sending for the documented scenario.
Retest in a suitable test environment with a new posting. If the event still fails, collect an ADT ABAP Cross Trace covering RAP events and the RFC/update flow.
References
SAP KBA 3736294 · SAP Note 3457926 · SAP Note 2948924 · SAP Help: BGPF Setup


