Skip to Content

An Implicit enhancement in standard function module(TRINT_CORR_INSERT) has crashed SAP Sandbox System

Hi All,

Recently I have created an Implicit enhancement in standard function module (TRINT_CORR_INSERT) with an IF condition activated only for my user-id(IF sy-uname = '********').

In my implicit enhancement I am calling a function module (POPUP_WITH_2_BUTTONS_TO_CHOOSE) to populate a pop-up window with two options to choose ‘Continue’ and ‘Cancel’. This FM returns ‘0’ as return value if one selects ‘Continue’ option, it returns ‘1’ if one selects ‘Cancel’ option. As this FM was returning 0/1 which are integers, I have declared my local variable with type integer to hold these return values from FM. So far everything worked fine, during my negative testing I have selected close window option when this pop-up window has prompted asking for one of the two options to choose, for this option(close window) FM has given return value as ‘A’ which is of type character and I am expecting integer value to be returned, because of this type conflict system has raised a run-time error. Later when I was trying to check/correct this type mismatch in new session, system has given me same error for whichever session I have opened(whenever I open a new session or transactions like SE38, SE37, SE80 it gave me dump screen).

Unfortunately this has got applicable to whole SAP users in sandbox system, whoever opens any transaction they are welcomed with my dump screen and the whole sandbox system is inoperable state, the only option available for our BASIS/DBA team is to re-store the whole system. Fortunate for me it'snot development system.

I am having below questions:

  • This enhancement was activated only for my user-id, but how-come it’s impacting other users(short dumps).
  • Secondly this type conflict error has to be raised only if someone selects ‘Close Window’ option in pop-up window. But in our case system is not prompting for any pop-up window, it is directly throwing run time error for whatever session we have opened.
  • Lastly these type conflicts errors are very common in ABAP, after adjusting/correcting the variables data type everything has to work fine, these errors will never let SAP instance down.

What I would like to know is:

How-come a very common type conflict error can let down the whole SAP instance????? What is the root-cause for this issue???

Did someone experienced these sort of issues before, if so please share your experience.

Many Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 13, 2013 at 09:19 AM

    Please post the code of your enhancement.

    Also post the area in the dump showing the source code.

    If you add an enhancement at a low-level widely used place, then the chances of you bringing the system crashing down about your ears are quite high. Since you apparently are now unable to use SE38 etc., there's little you can do but recover from backup. My assumption is that you've screwed up the enhancement somehow so all users end up running it.

    Add a comment
    10|10000 characters needed characters exceeded

    • I've came across the same error message during creation of an enhancement.

      Funny thing is, the check has been changed with Basis release 7.31. In class CL_R3STANDARD_PERSISTENCE method OBJ_IS_ENHANCEABLE the function module call 'SUBST_CHECK_CENTRAL_BASIS' has been commented out (which contained a hard-coded list of packages, which were not enhanceable). Not it is checked with function module TR_GET_DLVUNIT_CHANGEABILITY, if the software component belonging to the package is modifiable (setting in SE06). This makes it possible to enhance basis relevant objects again, when in SE06 SAP_BASIS is set to modifiable...

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2013 at 11:10 AM

    Hi venkat

    can u debug from other user-id for that FM to check ur code,

    it would be more clear if u provide the coding u did.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 13, 2013 at 07:19 PM

    Are you able to enter debug mode before executing any transaction? If you enter /h before entering your t-code, you might be able to debug into the first call of your implicit enhacnement, and skip the FM call (or at least see the code that's causing the issue). If you get the exception before the debugger starts, you might want to see if you can activate system debugging without triggering the exception, as the FM in question might be in to low-level of a call to debug normally.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.