SAP Knowledge Base Article - Preview

2706637 - Dump POSTING_ILLEGAL_STATEMENT raised when releasing PO

Symptom

  • When releasing PO by MM transactions such as ME29N, POSTING_ILLEGAL_STATEMENT dump occurs. 
  • Express document "Update was canceled" is sent to the user.
  • The POSTING_ILLEGAL_STATEMENT dump looks like the following:
Category ABAP programming error
Runtime Errors POSTING_ILLEGAL_STATEMENT
ABAP Program SAPLSYDB
Application Component BC-DB-DBI
Short Text
Statement "COMMIT" is not allowed in this form.  
What happened?  
Error in the ABAP application program.
The current ABAP program "SAPLSYDB" had to be terminated because it found a statement that could not be executed.
Error analysis

There is probably an error in the program
"SAPLSYDB".
This program is triggered in the update process. The following ABAP
statements are illegal here:

- CALL SCREEN
- CALL DIALOG
- CALL TRANSACTION
- SET SCREEN
- LEAVE TO LIST-PROCESSING
- SUBMIT
- LEAVE SCREEN
- LEAVE LIST-PROCESSING
- LEAVE PROGRAM
- LEAVE TO TRANSACTION
- MESSAGE I/W/E (if not handeld using EXCEPTIONS ERROR_MESSAGE)
- MESSAGE A

How to correct the error

"POSTING_ILLEGAL_STATEMENT"
"SAPLSYDB" bzw. LSYDBU27
"DB_COMMIT"

Source Code Extract   

1|FUNCTION db_commit.
2|*"----------------------------------------------------------------------
3|*"*"Lokale Schnittstelle:
4|*" IMPORTING
5|*" REFERENCE(IV_DEFAULT) TYPE ABAP_BOOL DEFAULT ABAP_FALSE
6|*"----------------------------------------------------------------------
7|
8| IF iv_default = abap_false.
9| EXEC SQL.
>>>>>| COMMIT WORK
11| ENDEXEC.
12| ELSE.
13| COMMIT CONNECTION default.
14| ENDIF.
15|
16| CALL METHOD cl_dbi_transaction_state=>raise_db_transaction_finished
17| EXPORTING
18| iv_kind = cl_dbi_transaction_state=>gc_commit.
19|
20|ENDFUNCTION.


Read more...

Environment

  • SAP Business Workflow
  • SAP NetWeaver
  • SAP Web Application Server for SAP S/4 HANA
  • ABAP Platform

Product

ABAP platform all versions ; SAP NetWeaver all versions ; SAP Web Application Server for SAP S/4HANA all versions

Keywords

WF_GDPR, SWF_WORKFLOW, ME_REL_EVENT_EKKO, RSM13000, WS20000075, BUS2012, RELEASED, WORKFLOW_LOCAL, SWU3, Edit Runtime Environment, Configure RFC Destination , KBA , BC-BMT-WFM , Business Workflow , MM-PUR-GF-REL , Release (Approval) , MM-PUR-GF-WOF , Workflow , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.