Suppress a message
Hello,
I use the triggers "ON MESSAGE" and "ON ERROR" and write null in the triggers to suppress the messages. So it works fine. But if I change for example make a an alter table I get the Message if I want to save the changes! How can I suppress this Message, too!
thanks
I'm not sure what you mean by null trigger, but here is a message handler I created that has proven effective for all my needs so far.
At the form level...
create trigger for 'ON-ERROR'
PR_HANDLE_MESSAGE( 'ERROR' );
create trigger for 'ON_MESSAGE'
PR_HANDLE_MESSAGE( 'MESSAGE' );
In the Program Units...
.PROCEDURE PR_HANDLE_MESSAGE (MSG_TYPE VARCHAR2) IS
. ALERT_BTN NUMBER;
. errtype VARCHAR2(3) := MESSAGE_TYPE;
. errcod NUMBER := MESSAGE_CODE;
. errtxt VARCHAR2(80) := MESSAGE_TEXT;
.BEGIN
.--* Generic system and error messages handler.
. IF errcod IN ( 40100, 40102, 41000, 40200, 41051 ) THEN
. -- Suppress these user messages
. ----------------------------------------------------------- -- ErrNo Message text
. -- 40100 At first record.
. -- 40102 Record must be entered or deleted first
. -- 40200 Field is protected against update
. -- 40212 Invalid value for field xxxx.
. -- 40350 Query caused no records to be retreived
. -- 40400 Transaction complete. N records saved.
. -- 40401 No changes to save
. -- 41000 This function not currently available
. -- 41026 Field does not understand operation
. -- 41045 Cannot find item: invalid ID.
. -- 41051 You can't create records here
. NULL;
. ELSIF errcod IN (-1) THEN
. -- Show these on status line
. -- ErrNo Message text
. MESSAGE(errtype||'-'||to_char(errcod)||': '||errtxt);
. ELSE
. IF MSG_TYPE = 'ERROR' THEN
. MESSAGE( errtype||'-'||to_char(errcod)||': '||errtxt );
. RAISE FORM_TRIGGER_FAILURE;
. ELSE
. MESSAGE( errtype||'-'||to_char(errcod)||': '||errtxt);
. END IF;
. END IF;
.END;
Similar Messages
-
Suppressing Substitution messages in SQL
I have a SQL script which generates activity report for a user specified date. User inputs a date which is then stored in a variable. When this variable is substituted in a sql statement by its valus it displays message
old: .......
new: .......
There must be a way to suppress this message so it will not appear within the report. Please help.
Following is the script which user will invoke throug a menu menu outside of SQL:
/* test.sql */
prompt Enter a date in format YYYYMMDD (for example: 20030122)
accept reqd_date number prompt 'DATE:>'
select 'US ACTIVITY LOG REPORT FOR', to_char(&reqd_date) from dual;
prompt =====================================
prompt
prompt USERID ID ACTIVITY COUNT
prompt ------ -- -------- -----
prompt
break on userid
select userid, us_id, type_of_activity, sum(number_records)
from us_activity_log
where to_char(start_time, 'YYYYMMDD') = to_char(&reqd_date)
group by userid, us_id, type_of_activity;
prompt
prompt END OF REPORTset verify off;
-
Hi there
I'm working on an FAPI client at the moment, and the client needs to be scriptable.
Unfortunately, problems arise if FrameMaker has to display certain modal error or
dialog boxes like "This file was created with an earlier version of FrameMaker," or "Cannot display some imported graphics" or
"Document named X uses unavailable fonts, to reformat the document using available fonts, click ok". The script will hang pending user input.
I'm wondering is there anyway to programmatically suppress these errors to avoid this scenario?
Thanks
EricHi Eric,
You should be able to suppress these messages with the proper open parameters, used with F_ApiOpen(). I've pasted the general-purpose file-opener function that I use below. If you study it, you should be able to get the idea of what is going on. Except for XML problems, this function will open just about anything without errors if the ignoreErrors and ignoreLock parameters are set to False. At the least, I'm pretty sure it will suppress all the errors you mentioned.
Russ
// To open a document, send openCopy = False, a path, and copyDocId = 0.
// To open a copy of a document, send openCopy = True, then either the path or
// the ID of a currently-open document to copy
F_ObjHandleT ws_OpenFile(StringT path,
F_ObjHandleT copyDocId,
IntT openCopy,
IntT ignoreErrors,
IntT ignoreLock,
IntT hidden)
F_PropValsT openScript, *returnp = NULL;
UIntT sn;
F_ObjHandleT docId;
StringT tempPath;
IntT fileType;
if(copyDocId && openCopy)
tempPath = F_ApiGetString(FV_SessionId, copyDocId, FP_Name);
else tempPath = F_StrCopyString(path);
//If we can, determine the file type from the extension
//DEPRECATED, doesn't seem necessary.
if(ws_IsSuffix(tempPath, ".xml", False))
fileType = FV_TYPE_XML;
else if(ws_IsSuffix(tempPath, ".sgml", False))
fileType = FV_TYPE_SGML;
else if(ws_IsSuffix(tempPath, ".mif", False))
fileType = FV_TYPE_MIF;
else if(ws_IsSuffix(tempPath, ".txt", False))
fileType = FV_TYPE_TEXT;
else
fileType = FV_AUTORECOGNIZE;
openScript = F_ApiGetOpenDefaultParams();
sn = F_ApiGetPropIndex(&openScript, FS_AlertUserAboutFailure);
if(ignoreErrors)
openScript.val[sn].propVal.u.ival = False;
else
openScript.val[sn].propVal.u.ival = True;
sn = F_ApiGetPropIndex(&openScript, FS_BookIsInUse);
if(ignoreLock)
openScript.val[sn].propVal.u.ival = FV_ResetLockAndContinue;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_DisallowMIF);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_DisallowXml);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_DontNotifyAPIClients);
openScript.val[sn].propVal.u.ival = True;
sn = F_ApiGetPropIndex(&openScript, FS_FileIsInUse);
if(ignoreLock)
openScript.val[sn].propVal.u.ival = FV_ResetLockAndContinue;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_FileIsOldVersion);
openScript.val[sn].propVal.u.ival = FV_DoOK;
sn = F_ApiGetPropIndex(&openScript, FS_FontChangedMetric);
if(ignoreErrors)
openScript.val[sn].propVal.u.ival = FV_DoOK;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_FontNotFoundInCatalog);
if(ignoreErrors)
openScript.val[sn].propVal.u.ival = FV_DoOK;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_FontNotFoundInDoc);
if(ignoreErrors)
openScript.val[sn].propVal.u.ival = FV_DoOK;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_LanguageNotAvailable);
if(ignoreErrors)
openScript.val[sn].propVal.u.ival = FV_DoOK;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_LockCantBeReset);
if(ignoreLock)
openScript.val[sn].propVal.u.ival = FV_DoOK;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_MakeVisible);
if(hidden)
openScript.val[sn].propVal.u.ival = False;
else
openScript.val[sn].propVal.u.ival = True;
sn = F_ApiGetPropIndex(&openScript, FS_NewDoc);
if(openCopy)
openScript.val[sn].propVal.u.ival = True;
else
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_OpenAsType);
openScript.val[sn].propVal.u.ival = fileType;
sn = F_ApiGetPropIndex(&openScript, FS_OpenBookViewOnly);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_OpenDocViewOnly);
openScript.val[sn].propVal.u.ival = False;
sn = F_ApiGetPropIndex(&openScript, FS_OpenFileNotWritable);
if(ignoreErrors)
openScript.val[sn].propVal.u.ival = FV_DoOK;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_RefFileNotFound);
if(ignoreErrors)
openScript.val[sn].propVal.u.ival = FV_DoOK;
else
openScript.val[sn].propVal.u.ival = FV_DoCancel;
sn = F_ApiGetPropIndex(&openScript, FS_UseAutoSaveFile);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UpdateTextReferences);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UpdateXRefs);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UseRecoverFile);
openScript.val[sn].propVal.u.ival = FV_DoNo;
sn = F_ApiGetPropIndex(&openScript, FS_UseAutoSaveFile);
openScript.val[sn].propVal.u.ival = FV_DoNo;
//open the document
docId = F_ApiOpen(tempPath, &openScript, &returnp);
F_ApiDeallocateString(&tempPath);
//we are done with these structures, so deallocate
F_ApiDeallocatePropVals(&openScript);
F_ApiDeallocatePropVals(returnp);
//if something went wrong, ensure the return value is zero
if(!docId) docId = 0;
else if(hidden)
F_ApiSetInt(FV_SessionId, docId, FP_IsOnScreen, False);
return docId; -
How to Suppress information message from Function module ?
Hello Every one ,
I have a problem when executing the function module in RF Tranasaction , I have a requirement to create a handling units through COPAWA transaction, i am using few function modules which is using by transactions , in that the function module it is giving an information message from FM COHU_EXBEREIT_LINE_CHECK, i need to use this function module becuase it will validate the entries . that is the reason i am using it
but I want to suppress the message .,
Any suggestions , please.
Thanks in Advance.
NagsAdd an Exception error_message while calling your function module in the program. It will suppress S, I, W messages
EXCEPTIONS
CHECK_ERROR = 1
OTHERS = 2
ERROR_MESSAGE = 3. " Add this line also -
Suppress the message do you want to save the changes you have made
hi all
i have written a rollback
it clears my record
but gives me the message
do you want to save the changes you have made
i have written
:system.message_level :=25;
rollback;
:system.message_level=0;
but still it is giveing me the message
can you please tell me how to suppress this message
please help me
thanks
mandartry in reverse
-
Suppressing error messages from stderr
I am using JNI to connect to some C++ code (which I did not write myself) that has been compiled into DLLs. The writers of the C++ code found it necessary to spam a lot of status messages to stderr (using fprintf(stderr, "spam message")) and I want to suppress that output so that it doesn't show up in the console when my Java application is running. I have tried the following but it hasn't worked:
PrintStream out = System.out;
PrintStream err = System.err;
System.setOut(new PrintStream(new OutputStream() {
public void write(int arg0) throws IOException {}
System.setErr(new PrintStream(new OutputStream() {
public void write(int arg0) throws IOException {}
// call native methods
System.setOut(out);
System.setErr(err);
Does anyone else know how I can suppress the messages? Thanksredirect stderr to /dev/null ?
-
Suppressing Information messages
Hi,
I need to suppress the information messages which I was getting while creating the sales order in VA01 with reference to the Billing document.
VA01 >> Order number >> CREATE WITH REF >> BILLING DOC NUMBER >> CLICK COPY >> getting Information Msg (Needs to suppress)
Getting Information messages saying that copying Items from Billing to Sales order is not defined.
This is a copy control procedure . in VTAF transaction no line items were mentioned for the specific Order.
I just want to suppress the messages which I was getting while copying the line items
Thanks
Abdul.Why are you doing this via BDC, since you can delete several tables in one go via the repository information system (SE90)?
Thomas -
using
:system.message_level:=25;
commit;
:system.message_level:=0;
i can suppress error message in froms 9i but when i run that form in iAS10g
the message "no changes to save" does not suppress.It's not a good idea to suppress error messages. If there is a problem, then you (or user) won't know.
If you are using the system.message_level only to try and suppress, the "no changes to save" message, then a better way is to check if there are changes before doing the commit. Like this:
IF :System.Form_Status = 'CHANGED' THEN
Commit_Form;
END IF; -
Hi All!
Is it possible to suppress a message from Backend on webdynpro appplication?
bye
sasHi malyala and the others !
There are two output messages
The second line belongs to me.
( msgMgr.reportWarning(" xxxxxxxx");
The first one in the first line comes from backend. All what I need is
to suppress the first line .
reagards
sas -
How to suppress forms Message?
When I use NEW_FORM from within a form, before exiting the
current form it asks me to save the changes, how do I supress
this message?
I tried on-message, but doesn't work!
Any help is appreciated.
Thanks!
nullDennis Bourgeois (guest) wrote:
: geek (guest) wrote:
: : When I use NEW_FORM from within a form, before exiting the
: : current form it asks me to save the changes, how do I supress
: : this message?
: : I tried on-message, but doesn't work!
: : Any help is appreciated.
: : Thanks!
: Here's a couple of ideas,
: - Try setting system.message level to a higher number (maybe
: 20) prior to calling your new form and then set it back when
the
: new form has been established.
: - Try using clear_form(NO_VALIDATE) just before calling your
new
: form.
: - Try using the on-error trigger instead of the on-message
: trigger
: Good luck.
Actually, the only way to "suppress" this message is to either
reset the :SYSTEM.FORM_STATUS or (much recommended) set the
message level to 25 and commit the form before the new_form.
After all, the reason for this message is that the user has
supposedly made changes to the data that need to be committed. If
you are getting this message w/o making changes, then you need to
check your code because something is setting a base table value.
null -
Hi
I am calling an outbound transaction CC92 for change master from RFC. Now once IDOC gets created i get a message that IDOC created.
Now i do not want this pop up. How do i suppress this message pop up.
Edited by: Rohit Kadage on Dec 15, 2008 8:23 PMDennis Bourgeois (guest) wrote:
: geek (guest) wrote:
: : When I use NEW_FORM from within a form, before exiting the
: : current form it asks me to save the changes, how do I supress
: : this message?
: : I tried on-message, but doesn't work!
: : Any help is appreciated.
: : Thanks!
: Here's a couple of ideas,
: - Try setting system.message level to a higher number (maybe
: 20) prior to calling your new form and then set it back when
the
: new form has been established.
: - Try using clear_form(NO_VALIDATE) just before calling your
new
: form.
: - Try using the on-error trigger instead of the on-message
: trigger
: Good luck.
Actually, the only way to "suppress" this message is to either
reset the :SYSTEM.FORM_STATUS or (much recommended) set the
message level to 25 and commit the form before the new_form.
After all, the reason for this message is that the user has
supposedly made changes to the data that need to be committed. If
you are getting this message w/o making changes, then you need to
check your code because something is setting a base table value.
null -
Suppressing warning messages from RSRT
How can I suppress warning messages globally using RSRT? Thanks
You can suppress a BRAIN message for ALL queries. It is included in Support Pack 12 in Netweaver 2004s. If you are not to SP 12 yet, you can implement OSS note #1009903.
Go to Transaction RSRT, then enter SUPPR_ALL in the tcode box again and hit enter. This brings up the maintain messages screen and it suppress the messages globally.
This solved my problems...hope it helps you! -
How can I suppress a message that remains stuck when I open my lap ?
How can I suppress a message that remains stuck when I open my lap ?
What sort of message?
Are you really still running 10.6.2, as noted in your profile? You really should update your system to 10.6.8 -> http://support.apple.com/kb/DL1399.
Clinton -
Exit to suppress system messages in Crm
Hi
I need to know if there is a exit, badi or process in CRM 4 that can be used to suppress error messages.
An annoying message appears in the Activity screen and the activity monitor screen. I need to get rid of this
Thanks for any helpI don't believe that there is anyway to "get rid of" a standard SAP message. I have heard of configuration which would allow you to change the message type, like from error to warning and so on, but then this wouldn't help you in your situation.
The only way that I can think of to get rid of the message is to go directly into the SAP code and comment out that line, although this is not recommended.
Regards,
Rich Heilman -
Force copy/suppress error messages?
Hi all,
I'm trying to copy my extremely fragmented 40gb photo library from an extremely slow external HD to my mac HD. After it spends hours getting halfway there, I get an error saying it can't copy, and the operation fails. Is there any way I can copy to have it suppress error messages, skip the problematic files, and copy the whole batch without stopping?
Thanks!
AlecWithout a 3rd Party APP, I use Tri-Backup for this, you likely will just have to keep pluggibg away, or try smaller chunks, or perhaps Carbon Copy Cloner...
http://www.bombich.com/software/ccc.html
Maybe you are looking for
-
Using CC on Windows 8.1, 64-bit machine. Also have it on a Mac within terms of agreement. Trying to sign in using Updater or CC App, but it won't let me. Each time I sign in, it comes up with the message 'You've been signed out'. Tried multiple times
-
good morning! i'd like to know why when I write an email in Mail, it creates numerous copies each second which fill the trash box. My email is set up with IMAP and is a gmail account. Thanks
-
Sharing music w/ multiple users on same iMac
I have four accounts on an iMac and want to provide access to the iTunes library on an external hard drive for each user. Can you tell me how they can use the music without having to make a separate copy of the library.
-
Why is it taking so long to get my serial number
I have been waiting 10 days to receive a serial number for the CS6 design standard student edition. I've sent all the info including my proof with picture name and date, but it seems my case has been forgoten. Fair enough my student ID is in japanese
-
Install of nokia suite 6_86_9_3 on Win XP (Japanes...
Tried to install nokia suite on japanese version of Win Xp on Toshiba DynaBook. The install fails. It produces an error message after some time effectively stating that "can not install on this operating system". I have tried both english and japanes