‎2011 Jun 01 2:02 PM
Hi All,
i want to replace ST22 dump with the custom error message ,please suggest me how can i go ahead.
Thanks in advance.
Regards
Srinu
‎2011 Jun 01 2:10 PM
Interesting idea, I haven't heard that this is technically possible. Please give a few examples of what you want to replace exactly.
Thomas
‎2011 Jun 01 2:17 PM
Maybe he want upload runtime error long text. Maybe it's possible take from spool? But for what?
‎2011 Jun 01 2:20 PM
HI,
Actually the end user is seeing the dump instead we can show some custom error message, just to replace the error message.we can go to ST22 and solve the issue thought of taking the dump from user point.
Regards
Srinu
‎2011 Jun 01 2:23 PM
Hi.,
Use RECEIVE RESULTS FROM FUNCTION 'function module' . to achieve this.,
Check this link : [Avoiding dumps in report|http://sapprograms.blogspot.com/2008/10/avoiding-dumps-in-report.html]
hope this helps u.,
Thanks & Regards,
Kiran
‎2011 Jun 01 3:18 PM
Since the topic seemed interesting i had a look at Kiran´s link.
There are two tings i simply dont understand, maybe someone here can elighten me.
1. If we had let us return the exceptions in the first place (when calling gui_upload), would we still need that RECEIVE RESULTS FROM FUNCTION statement? Is there any difference?
2. I didnt try it out yet, but if inside that FM there is e.G. some message type X, for certain constellations, i strongly doubt that RECEIVE RESULTS FROM FUNCTION will supress that. I mean by the time that messagte type x is processed the compiler doesnt even know yet that teh statement RECEIVE RESULTS FROM FUNCTION will follow.