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.
Showing results for 
Search instead for 
Did you mean: 

Short dump while raising error message in BADI

Former Member
0 Kudos

Hi folks,

              I am implementing the BADI 'MB_DOCUMENT_BEFORE_UPDATE'  and raising the error message type 'E' . While performing the transaction its leading shortdump, with message as 'Therefore, a termination with a short dump was triggered on purpose by the key word MESSAGE (type X)' .

            I have did some research in SCN, and got to know that i have to update OSS notes. But couldn't get correct one.

             Could any body suggest me the correct OSS notes or do i have to make any changes in the program ?

Thanks in advance,


NOTE : Attached is the dump analysis for your reference.


Active Contributor
0 Kudos


BADI MB_DOCUMENT_BEFORE_UPDATE is in use to update any extra table / change entries of internal tables which are used to create material document...and it is called from differenet function module which are called in update task....raising error message would lead to termination...

Please check any other badi which are only for checking purpose..


Active Contributor


    Instead of validating in the BADI ''MB_DOCUMENT_BEFORE_UPDATE'  which is triggered just before the Database Commit and which might cause runtime dumps, try do same validation in the BADI 'MB_CHECK_LINE_BADI' in Method 'CHECK_LINE', this will be validated at Line Items (for each MSEG entries), i mean each individual entry, if any MSEG entry is not valid you can trigger Error message to stop Posting the transaction.

Thanks & Regards

Bala Krishna

0 Kudos


Please try the message type A instead of E