Handling FRM messages
Hi,
I have a from running on 9iAS that if a character is accidentally inserted in one of the numeric fields, I get an FRM-50016 error "Legal characters are 0-9...". It doesn't crash the form but I want to change the message. I tried trapping it with the following code in an
on-message trigger at the form level but it didn't work:
BEGIN
IF MESSAGE_TYPE = 'FRM' THEN
IF MESSAGE_CODE = '50016' THEN
MESSAGE('YOU'VE TYPED A TEXT IN A NUMERIC FIELD');
END IF;
END IF;
END;
Anyone have see any reason why this didn't work??
Thanks in advance,
Jeff
That worked perfect!! Thank you so much!
Similar Messages
-
Handling error & messages in standard forms
Hi all,
I'm customizing Oracle HR through CUSTOM.pll and I need to handle some messages in standard forms.
I have tried using ON-MESSAGE and ON-ERROR trigger, but I can't substitute the "not user-friendly" "FRM-40150: Cannot update record" with anything else!
Is it possible to do this??
In that case....should someone show me some examples??
Thx a lot.
If needed I can attach my code to help you..
Thx
JacopoWhatever you do, never change the message level, it's just like hiding behind your finger, you'll be in denial of the error, but the error will be there...
the best way is to handle them in on-error triggers, trap the error number and use your own message, you can create a user defined error and associate it with the error number of a choice.
search the online help of the forms builder for user defined errors. there is a very clear example there.
Tony -
Is it possiable to override FRM messages? Instead of a message saying "FRM-50026: Date must be entered in a format like this DD-MON-RRRR", I want to be able to change that.
Thanks in advance...You should write a general error handler and place the code in a library. Do a call to this lib in the on-error trigger at form level. Thus all errors will be trapped in the code. You can pop up a message or show a new message at the console.
I have some code. Just drop me a mail. -
Handling faulty messages in PI 7.0
Hi Gurus,
my interface is 3rd party app->PI->SAP.
i used proxy on sender side and on receiver side I used HTTP adapter.
Each time my PI will ping that application using the URL and get the batch xml file but if there is no data in the 3rd party application,how should i handle the faulty message.
the message if it fails to retreive the new bach,which is coming from the application is not in the xml format how can i handle the message
Thanks,
JayYour sender is abap proxy and receiver is HTTP and the mode is synchronous.
>what should i do with this message.do i need to use the fault message type to hold this message but I need not send this to >anyone or..Can I configure alerts so that PI users will understand
Yes you can pass the fault mesg from reciever(third party) to sender (proxy). That woud be helpful.
If the receiver (third party) is sending fault message as response then create fault message on the sender side and map the response of third party to sender side (proxy) proxy message. So that proxy will interpret that message as fault message.
Basically you will have request, response and fault messages for both sender interface (proxy ) and reciver interface (third party http). As you know, Fault messages are useful to provide meaningful application errors.
Refer this [link|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/5946db5f693912e10000000a42189b/content.htm] for constructing fault message structure. -
Handling fault messages in BPM
Hi,
I am using BPM for a RFC to SOAP scenario to handle Fault messages. (Please have a look at my previous post also SOAP Fault message )
I have created an exception block in BPM to catch the fault message from SOAP service. Inside the exception block i need to map the fault message to RFC response. But fault message is not accessible in Exception block.
Let me know if you have any idea to solve this.
Thanks,
UmaUma:
Let me make clear the requiremt. You have RFC Import(aka Request message) and Export(aka Response + Exception) and you have Web Service with Request, Response, Fault messages. And you want to send the fault messages back to the RFC in addition to the response. I was wondering, If we do the following mapping without BPM, does that fulfill your requirement.
RFC-Import <----
> SOAP Request
RFC-Export <----
> SOAP Response
RFC-Export <----
> SOAP Fault
Can you let me know if you face any problems with this one. I have seen your other thread and was wondering, whats the problem is. May be I didn't understand the requirement properly. Please clarify me -
BPM handle empty message in send step
Hi, Friends:
I have a following BPM sceario(PI7.1 EHP1)
It mainly has following steps:
Receive -> Transformation (Multi-Mapping) -> Fork (4 branches: one send step each branch)
The multi-mapping result is to generate 4 types of messages based on logic.
Sometimes all 4 types of message generated, and sometimes only one type of message generated.
When there is a message not generated, the send step generate error which is not caught in exception branch.
I searched forum, so far not lucky to find solution.
Any idea how to handle empty message (do not send it) in send step?
Regards
Liang
Edited by: Liang Ji on Dec 7, 2010 8:42 PMHi, Abhishek:
The reason to use Fork is that all the branches can be reached.
By using switch, it only judge one input value and only one condition turns true.
Actually in most cases, the number of my input value is more than one, saying two or more message types generated.
And this is not multi-line situaion, because the messages generated are different types.
Your reply remind me to add switch inside fork.
Regards
Liang
Edited by: Liang Ji on Dec 8, 2010 5:32 PM -
Can't open PDF's on my Mac coming in on MS Outlook 2010. Reinstalled Adobe software 4 x and still get "Adobe PDF Preview Handler" error message.
No. Reader will not damage files. It is only meant to read pdf files. PDF files are frequently damaged when sent as email due to encoding issues.
-
Handling log messages in procedure
Hi All,
Which is the best way to handle log messages in procedures or packages.When I run a procedure it is taking long time and getting cunfuse it is running or not.Please let me know how to handle log messages other than dbms_ouput and inserting values to log table.
Thanks & Regards,
RajasekharIt really depends on what you want.
If you want to see what stage of a procedure you are at, then DBMS_application_info is the way to go.
You set the name and text in the package and the current state seT can be seen in v$SESSION
Of course it helps if you remember to set it to finished before it ends.
The other alternative I like is to have an autonomous procedure which logs the steps.
You just pass a call to the procedure.
The benefit of this is that the commits are effectively in another session, so won't affect your existing procedure.
You can also code this in such a way that it is off by default but you can turn it on eg by changing a value in a db column.
If I did this, I would have it so that each individual procedure/function within a package could be turned on as necessary.
This means that you can turn your tracing on just for a specific problem even for a production system without affecting the vast majority of users.
Edited by: Keith Jamieson on Jan 6, 2009 11:10 AM
FIXED TYPO: -
Handling Fault Messages for JDBC Receiver (Syn Inbound)
Dear Freinds,
Can we handle fault messages for JDBC Receiver which is synchronous.
OB Proxy Syn <> IB JDBC Syn
1. How to handle the same ? Please give some examples.
2. Should we use Stored Procedures at Oracle side to handle the fault messages and send back as response to the Proxy Response. Will it work.
Thanks & Regards
K.RameshDear Friend,
I have 2 interfaces where Proxy is OB & JDBC is IB. In the first interface both sender and Receiver are synchronous and in the second one it is Async.
In the first interface i have to send one field from R/3 table along with Native SQL query string to XI and the response of the SELECT query is sent back to the sender.
Assume if no fields are selected based on the field sent then proper error message has to be sent instead of the response message.
In the second interface i will be using UPDATE query at Asyn JDBC receiver.
How to do this if you are having JDBC Receiver.
I saw in many blogs where they had mentioned that we cannot handle fault messages in the Receiver JDBC.
KIindly explain.
Thanks
K.Ramesh -
Best practices for handling large messages in JCAPS 5.1.3?
Hi all,
We have ran into problems while processing larges messages in JCAPS 5.1.3. Or, they are not that large really. Only 10-20 MB.
Our setup looks like this:
We retrieve flat file messages with from an FTP server. They are put onto a JMS queue and are then converted to and from different XML formats in several steps using a couple of jcds with JMS queues between them.
It seems that we can handle one message at a time but as soon as we get two of these messages simultaneously the logicalhost freezes and crashes in one of the conversion steps without any error message reported in the logicalhost log. We can't relate the crashes to a specific jcd and it seems that the memory consumption increases A LOT for the logicalhost-process while handling the messages. After restart of the server the message that are in the queues are usually converted ok. Sometimes we have however seen that some message seems to disappear. Scary stuff!
I have heard of two possible solutions to handle large messages in JCAPS so far; Splitting them into smaller chunks or streaming them. These solutions are however not an option in our setup.
We have manipulated the JVM memory settings without any improvements and we have discussed the issue with Sun's support but they have not been able to help us yet.
My questions:
* Any ideas how to handle large messages most efficiently?
* Any ideas why the crashes occur without error messages in the logs or nothing?
* Any ideas why messages sometimes disappear?
* Any other suggestions?
Thanks
/Alex* Any ideas how to handle large messages most efficiently? --
Strictly If you want to send entire file content in JMS message then i don't have answer for this question.
Generally we use following process
After reading the file from FTP location, we just archive in local directory and send a JMS message to queue
which contains file name and file location. Most of places we never send file content in JMS message.
* Any ideas why the crashes occur without error messages in the logs or nothing?
Whenever JMSIQ manager memory size is more lgocialhosts stop processing. I will not say it is down. They
stop processing or processing might take lot of time
* Any ideas why messages sometimes disappear?
Unless persistent is enabled i believe there are high chances of loosing a message when logicalhosts
goes down. This is not the case always but we have faced similar issue when IQ manager was flooded with lot
of messages.
* Any other suggestions
If file size is more then better to stream the file to local directory from FTP location and send only the file
location in JMS message.
Hope it would help. -
Exception Handling in Message Mapping and Alert
Hello,
1. Pls let me know the concept of Exception Handling and Alerts.
2. Pls provide some blogs for Exception Handling in Message Mapping.
3.What are Alerts and how it help us in XI. Pls provide some blogs for Alert
4.How are Alerts and Exception Handling can be related say for some scenario
RegardsHi,
Plz check out these blogs of Sravya on Error Handling:
/people/sravya.talanki2/blog/2006/11/22/error-handling-framework-xiout-of-the-box-episode-1
/people/sravya.talanki2/blog/2006/11/23/error-handling-framework-xiout-of-the-box-episode-2
Also check this SAP Presentation:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9418d690-0201-0010-85bb-e9b2c1af895b
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
Error Handling :
http://help.sap.com/saphelp_nw04/helpdata/en/56/b46c3c8bb3d73ee10000000a114084/frameset.htm
Alerts:
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
http://help.sap.com/saphelp_nw04/helpdata/en/56/d5b54020c6792ae10000000a155106/content.htm
BPM:
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Working with acknowledgements
regards -
How to handle different message types of EDIFACT in single input file.
Hi All,
Currently we have a requirement like we will be receiving the input with different messages in the same input file (eg: ORDERS and ORDRSP in the same file).
We have configured both the message types in the document definitions. One more thing is the versions of the messages are different.
When we pass the input we are getting the error.
The input looks like below,
UNB
UNG
UNH*ORDERS
UNT
UNE
UNG
UNH*ORDRSP
UNT
UNE
UNZ
Please assist us to overcome the error.
Thanks,
Ravindra.Hi Prasanna,
Thanks for your reply.
I have created the agreements for both the messages still i'm getting the below error,
B2B-50037
B2B inbound message processing error
If i give the input as separate messages (i mean 2 input files). Its working fine.
Also let me know is there any configuration settings to handle multiple messages in a single input file.
Thanks,
Ravindra. -
Handling large messages with MQ JMS sender adapter
Hi.
Im having trouble handling large messages with a MQ JMS sender adapter.
The messages are around 35-40MB.
Are there any settings I can ajust to make the communication channel work?
Error message is:
A channel error occurred. The detailed error (if any) : JMS error:MQJMS2002: failed to get message from MQ queue, Linked error:MQJE001: Completion Code 2, Reason 2010, Error Code:MQJMS2002
The communication channel works fine with small messages!
Im on SAP PI 7.11, MQ Driver is version 6.
Best Regards...
PeterThe problem solved itself, when the MQ server crashed and restarted.
I did find a note that might could have been useful:
Note 1258335 - Tuning the JMS service for large messages or many consumers
A relevant post as well: http://forums.sdn.sap.com/thread.jspa?threadID=1550399 -
Hi All,
We are using a JMS adapter as partner link in a BPEL process to produce messages to JMS Queue.
We are getting an error while producing a message to a JMS Queue.
The error comes for 1 or 2 instances among 5 to10 intsances. (all these instances ran with in 1 or 2 seconds).
We are using Oracle 10G SOA suite.
This error is getting in the Production environment.
The error is as follows (took error from server log).
Failed to handle dispatch message ... exception ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{summary=file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection.
file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: oracle.j2ee.connector.proxy.ProxyInterceptException: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: null [Caused by: RollbackException: Transaction has been marked for rollback: null]
; nested exception is:
ORABPEL-12511
Adapter Framework unable to create outbound JCA connection.
I tried the below JMS tunings with differnt combination, but no improvement.
<property name="useJCAConnectionPool">true</property>
<property name="maxSizeJCAConnectionPool">500</property>
<property name="retryMaxCount">10</property>
<property name="retryInterval">60</property>
Please let me know if any other logs or any other information is required.
Thanks,
Pershadsorry, I forgot the below things which I tried to tune the JMS.
<property name="retryMaxCount">10</property>
<property name="retryInterval">60</property>
<property name="useJCAConnectionPool">true</property>
<property name="maxSizeJCAConnectionPool">500</property>
Thanks. -
Hi,
We would like to handle incoming messages. The problem appears when we send an e-mail to SAP system. I can see some of SMTP transaction traces in log file, but some of them are not. Also, I cannot see any e-mail notification in SOIN transaction. I applied all the steps respectfully, indicated in OSS note# 455140, but couldn't help us. Please find the handler table, below;
E-posta * * ZCL_MAIL_INBOUND_SYS_CHECK 1
E-posta * ICS CL_APPOINTMENT_REPLY 3
Can anyone give a suggestion about it? Why I cannot see incoming e-mails on SOIN?
Thank you
Orkun GedikI found the solution. Just need a patch.
Best regards,
Orkun Gedik
Maybe you are looking for
-
List of users who have access to multiple mailboxes
Hi, I got the list of around three hundred generic mailboxes Please help me with the command which can help me to get the report of all users who has access on those generic mailbox.
-
As stated, Firefox screen is blurry and unreadable (as if way out of focus). One day, it worked; the next, it did not. Not sure if there was an upgrade as I did not request or accept one. All I know is Firefox is unusable and I've had to switch to an
-
DVD Player: Poor tolerance to less-than-ideal DVD quality?
"Real world" DVDs from rental stores have surface scratches, fact of life AFAIK most DVD players handle most of these fine. (With the odd exception, naturally.) I have had 6 consecutive DVDs that "broken down" on being played using Tiger's DVD Player
-
Disk Utility Verify permissions question
I have always done, since 10.x, repair permissions via disk utility by opening disk utility app, selecting the top most icon: "drive manufacturer and size" name and then underneath: "Macintosh HD" and then under that "my disc drive" name I have alway
-
Report assignments in COPA report for several years
Hello I have a COPA report, which contains of data for 2 or more years. I have setup a report assignment, so it is possible to step into a FI document from the 'Ref doc number' characteristic in the report. Unortunately it does not always finds the r