on 09-15-2017 12:33 PM
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
What is the FM you are using for this?
Thanks, JP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.