Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Run time error ' SYSTEM_ON_COMMIT_INTERRUPTED' in Badi DOCUMENT_MAIN01.

Former Member
0 Kudos

Hi All ,

I am getting a dumb after executing statement 'MESSAGE lv_msg type lc_e' in method AFTER_SAVE of Badi DOCUMENT_MAIN01.

Details of runtime error :

SYSTEM_ON_COMMIT_INTERRUPTED.

short text : The COMMIT WORK processing must not be interrupted.

Error analysis : During the COMMIT WORK statement, the following are executed:

- the routines registered with the statement PERFORM .. ON COMMIT,

- the registered methods for the events of the object services

and

- possibly the local update (SET UPDATE TASK LOCAL).

An exception was raised and caught. The normal sequence of the routines

was interrupted by this resulting in the program being continued before

the call of COMMIT WORK. As this can lead to inconsistencies, the

processing cannot be continued in the normal way.

Please help me to resolve this .

Thanks and regards ,

Sijin K P.

3 REPLIES 3

Former Member
0 Kudos

hi,

can you explain further and post your code.

Karthik.R

0 Kudos

Hi Karthik ,

Thanks for reply ..

CONCATENATE text-000 text-001 INTO lv_msg SEPARATED BY SPACE.

if draw-dokst = 'RA'.

CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'

EXPORTING

documenttype = draw-dokar

documentnumber = draw-doknr

documentpart = draw-doktl

documentversion = draw-dokvr

getclassification = lc_x

TABLES

characteristicvalues = lit_character[].

if sy-subrc = 0.

READ TABLE lit_character INTO lwa_character WITH KEY charname = lc_zce_dms_owner.

IF sy-subrc = 0.

lv_docown = lwa_character-charvalue.

endif.

READ TABLE lit_character INTO lwa_character WITH KEY charname = lc_zce_dms_author.

IF sy-subrc = 0.

lv_docauthor = lwa_character-charvalue.

ENDIF.

READ TABLE lit_character INTO lwa_character WITH KEY charname = lc_zce_dms_approver.

IF sy-subrc = 0.

lv_apprvr = lwa_character-charvalue.

endif.

if lv_docown = lv_docauthor AND lv_docauthor = lv_apprvr .

MESSAGE lv_msg type lc_e.

endif.

ENDIF.

ENDIF.

I am getting dumb if we do any action after displaying error message .

Thanks and regards ,

Sijin K P.

0 Kudos

Hi Sijin,

I worked on your code.I cant find the rite solution.sorry

karthik.R