Skip to Content

ABAP Runtime Error in Sales Order Creation - VA01

Dear Sir,

We have created new pricing procedure for Domestic Sales Order and assign to Sales Order Document Type (OR10).

But, when I creates the Sales Order I get the runtime error as below.

'The current application triggered a termination with a short dump.'

Short text of error message:

'COMMIT WORK during ON COMMIT or ON ROLLBACK'

Termination occurred in the ABAP program "SAPMSSY0" - in "%_BEFORE_COMMIT". The main program was "SAPMS380 ".

In the source code you have the termination point in line 196 of the (Include) program "SAPMSSY0".

Source Code :

184 * ------------------------------------------------------------------

185 * FORM %_BEFORE_COMMIT

86 * called from RSYN commit.rs1

187 * ------------------------------------------------------------------

188 form %_before_commit. "#EC *

189 data: l_oncom like sy-oncom.

190 data: txend type c.

191

192 * forbid COMMIT if already in ON ROLLBACK handling

193 * allow COMMIT during ON COMMIT for backward compatibilty

194 call 'GET_SWITCH_TXEND' id 'STATE' field txend.

195 if txend = 'R'. >>> message x085(00).

>>>>> message x085(00). ( Error triggers here )

197 endif.

198

199 * COMMIT during CALL DIALOG/SUBMIT, POC, Update task

200 * or End Transaction event?

201 check sy-oncom <> 'N' and sy-oncom <> 'P' and

202 sy-oncom <> 'E' and sy-oncom <> 'V'.

203 * change sy-oncom to avoid recursion

204 l_oncom = sy-oncom.

205 sy-oncom = 'E'. "E = Event Handling

Please suggest how to correct the same.

Regards

Amol Khochare

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 08, 2017 at 10:13 AM

    What is the FM you are using for this?

    Thanks, JP

    Add comment
    10|10000 characters needed characters exceeded