cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Runtime Error in Sales Order Creation - VA01

former_member207480
Participant
0 Kudos

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

Jelena
Active Contributor

Sorry, "Dear Sir" salutation prevents me from answering this question.

former_member183501
Active Contributor
0 Kudos
Please change the salutation if you want answer from Grand Master.

Accepted Solutions (0)

Answers (1)

Answers (1)

jpfriends079
Active Contributor
0 Kudos

What is the FM you are using for this?

Thanks, JP