JCo Client Programming and Error Handling
Hi all,
I was wondering if anybody could help me out with some advice on error handling when writing code to send messages to SAP via a JCo Client, particularly IDocs.
I understand from my reading that IDocs are always sent asyncronously to the SAP system from JCo, using JCO.Client.send(). So it is possible (and I have some test code working to do this) to force an exception with say a malformed IDoc, and catch the exception in my code.
But due to the asyncronous nature of the send functionality for IDoc, I cannot see any way of getting back any "business level" exceptions (e.g. Order Number does not exist, Unknown Material, etc.)
So my question is, is it possible to receive any of these type of error messages when sending IDocs to an SAP system using JCo? Perhaps by setting up a JCo Server with the correct error/exception listeners to receive these messages - but are they even sent out in the way?
If not what is the process for handling them?
It is of course possible to look in the SAP system using txn WE02 and see the problem/error but that does not help me to propagate this back to the sending application or to maintain state alignment between the two apps.
Any advice much appreciated!!
Chris
Hi Anil,
you should check on those trheads:
<a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=3104772�">https://www.sdn.sap.com/irj/sdn/thread?messageID=3104772�</a>
<a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=579794򍣒">https://www.sdn.sap.com/irj/sdn/thread?messageID=579794򍣒</a>
Regards,
Gianluca Barile
Similar Messages
-
The server deploy EJB but I run EJB Client program,The error msg is can't find JNDI
Hi all:
I am using Weblogic 6.1/SP2. I use the console to start
server and deploy EJB jar,from the msg I see my EJB jar
been deployed. When I run EJB Client program, the error
msg is can't find JNDI name t3://URL:11003.....
I check my ejb-jar.xml amd weblogic-ejb-jar.xml are fine.
Last week I did deploy EJB and ran the client both
suceessful. Any ideas, Thank you.Sabha:
Thank you for your help info, I soloved the problem.
The problem is the ejb jar was deleted(I don't why)
then System Admin to deploy EJB jar from Admin console.
After that everything is fine.
"Sabha" <[email protected]> wrote:
Run weblogic.Admin -url ... LIST to see whether the JNDI name is there
. or
you can view the jndi tree of the server from the console (right click
on
server name) and check whether the ejb home is bound to the correct jndi
name.
-Sabha
"Matthew Shinn" <[email protected]> wrote in message
news:[email protected]..
Hi Albert,
I would double check to make sure the EJB was indeed deployed (check
server log). What message did you see that leads you to believe itwas
successfully deployed? Also, verify the JNDI name you are lookingup in
your client matches the JNDI name for the EJB. If this doesn't solve
the problem, please post the error message and stack trace you are
seeing on the client.
- Matt
Albert Pi wrote:
Hi all:
I am using Weblogic 6.1/SP2. I use the console to start
server and deploy EJB jar,from the msg I see my EJB jar
been deployed. When I run EJB Client program, the error
msg is can't find JNDI name t3://URL:11003.....
I check my ejb-jar.xml amd weblogic-ejb-jar.xml are fine.
Last week I did deploy EJB and ran the client both
suceessful. Any ideas, Thank you. -
For IDOC monitoring, analysis and error handling in ALE & idoc
Hello...experts..can u please tell me about idoc monitoring,analysis and error handling..and can u please tell as per interview point of view in this area..if availble can u send material about this...
thx
Message was edited by:
durga kottapalliHi,
Reprocessing IDocs with errors
Outbound (BD88)
Once the error has been determined and corrected it is not necessary to resend the IDoc again. You simply resend the IDocs that have already been generated.
Using the IDoc overview screen you need to take note of the following for each IDoc that was not processed:
Error number: 2, 4, 5, 25, 29
Error number: 30 (Execute Check IDoc dispatch to process)
IDoc number
Using the Error number, the IDoc number and the transaction BD88 , with the required message type you can resend the IDoc. Match the error number with this transaction and execute the function for the IDocs incorrectly processed.
Just check the below link, u will get all IDOC related Interview questions
http://www.allsaplinks.com/idoc_sample.html
http://www.allsaplinks.com/
http://www.sappoint.com/abap.html
http://www.sap-img.com/
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
http://www.sappoint.com/abap.html
http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sap-img.com/
http://www.allsaplinks.com/
Regards,
Suresh.
Message was edited by:
SureshKumar Ramamoorthy -
Mapping and Error handling in Seeburger Adapters ?
Hi,
1. In B2B integration part of PI.Whats the way of doing mapping in XI mapping editor and error handling in the mapping ?
2. Do you think SEEBURGER BIC mapping designer is must for developing maps ? cant we develop same maps in XI mapping editor?
Thanks and regards,
Ram.
Edited by: Ramakrishna kopparaju on Sep 30, 2008 12:27 PMWhats the way of doing mapping using seeburger adapters
The standard mappings are part of Seeburger Suite and if any additional mapping has to be accommodated, then custom mapping could be developed in Seeburger BIC Mapper tool. This has to deployed on adapter engine then. The other mapping is the normal XI mapping (message, java, xsl) which could be performed based on business logic.
error handling in the mapping ?
The easiest way is to raise Alert based on the errors in mapping.
Regards,
Prateek -
Proxies - Queueing and Error handling features ???
My understanding is that you can have synchronous and asynchronous proxies. Do proxies have a queueing mechanism, and do they provide reprocessing and error handling features ???
Thanks in advance.Hi,
The error can happen due to application error, may be incorrect data or or wrong type of data.
Or system error, in case the call to SAP XI is not successful.
Youc an use fault message for the same.
If you want to catch these exceptions in SAP itself and send alert then you can either use standard FM for raising alert.
More here:
http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/a1/082589fc4246f09793039d5fb01a17/content.htm
First configure CCMS in XI System:-
/people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i
For Monitoring in the CCMS:-
http://help.sap.com/saphelp_nw04/helpdata/en/4d/6272376d3bfa2be10000009b38f8cf/frameset.htm
Go thro' this link for configuration scenario:-
/people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
Inbound ABAP Proxy Trace and error handling
Handling Exceptions
ABAP Server Proxies - Fault Handling
Exception handling in integration processes
ABAP Proxy and fault messages
/people/bhanu.thirumala/blog/2006/02/07/abap-proxy--xml-to-abap-transformation
regards
Aashish Sinha
PS : reward points if helpful -
Interface tables, Seeded program and error Table
Hi can any one let me know the interface tables, Seeded program and error tables for
1) On hand_quantity Interface
2) Sub inventory transfer conversion
Version: 11.5.10
DB: 10g
Thanks & Regards,
pallisHi Pallis,
Pl.refer following links for sub-inventory transfer.
Inventory API interface transaction loading
http://khalidmehmoodapps.blogspot.in/2010/08/inter-org-inventory-transfer.html
http://khalidmehmoodapps.blogspot.in/2010/08/inter-org-inventory-transfer.html
HTH
sanjay -
Transaction and Error handling in Mediator 11g
Hi Experts/Gurus/All,
We have following scenario in Mediators :-
For Inbound Interfaces :-
M1-->M2-->M3
M1 calls M2 and M2 calls M3
There are 3 mediators, Mediator#1(M1),Mediator#2(M2) and Mediator#3(M3)
M1 performs a FIle Read and do a ABO-->OAGIS conversion
M2 performs routing
M3 performs a OAGIS -->ABO(JDE E1) conversion.
Now,we are in middle to decide the Fault Handling Mechanism for this case.
M1 is Asynchronous , M2 is Synchronous and M3 is also Synchronous.
Question is :
1. M1 will start a new Transaction,Do M1 will propogate the same transaction to M2 which,as being Synch,propogates the same transaction to M3 ?
2. How will the commit and Roll back will be taken care of?
3. What if M1 errors out?
4. Whatif M2 errors out?
5. What if M3 errors out?
In question 3,4 and 5:
What will happen will the Full Transaction ? If M3 erros out,would the Entire Transaction Propogated by M1 will be roll back?
Also ,How about Error handling in this case:
Do I need to create seperate fault-policy.xml and fault-binding.xml for M1,M2 and M3 ?
Another Scenario is of OUTBOUND interfaces :-
M1-->M2-->M3
M1 calls M2 and M2 calls M3
However , M1,M2 and M3 are all Asynchronous.
In this scenarios how would I handle following :-
1. If M2 Errors out,I need the entire Interface which comprises of M1-->M2-->M3 to roll back?
2. If M3 Errors out,I need the entire Interface which comprises of M1-->M2-->M3 to roll back?
3. Seperate Transactions means I have to create seperate fault-policy.xml and fault-mapping.xml to handle errors?Hi,
You could create a package, and use the OdiSqlUnload to export the data into a flat file (csv) from snp_check_tab, then amend it. Then create an interface to load the data from the flat file to your tables, either via external tables or SQL Loader.
Question is, why are you amending data going from source to target? there surely has to be something wrong with the Architecture (especially if you are getting errors in production). If you amend data, so that it is different in source as it is in target, then when it comes to regression testing, this will never match.
The errors should go be fixed at source, and either you, or the business should have access to do so.
Cheers
Bos -
Alerts and Error handling in BPM Async/Sync Bridge
Hello All,
I am developing an Async/Sync Bridge in BPM for sending a request from ECC webservice asychronously to a front end application synchronously using BPM Async/Sync Bridge. I get a response from the front end to PI and stays there.
It wont be send back to ECC. What are the possibilities of error handling required in this type of scenario.
Thanks
Deno. I get a response from the front end to PI and stays there.
Then it should mean that the BPM design is faulty...did you have a send step at the end which closes the Async-Sync Bridge by sending the message to original sender?
In SXMB_MONI --> For BPM message processing there will be a link called PE...click it...check the graphic workflow...see till where the message has processed.
error handling
include your Sync send step whithin a Block....this block will have an Exception Branch....in this exception branch you can have your Exception handling logic...like raise alert, cancel process etc.
Regards,
Abhishek. -
Client ABAP proxy error handling. Please help!
Hi Experts,
I have following scenario:
SAP ECC (ABAP Client Proxy) -> PI(XI)-->(SOAP) Third party web service System
This is Asynchronous.
What will happen when ABAP client Proxy in ECC sends data to PI but PI is down?
Will the message be queued in ECC? Can the queued message be processed automatically when PI is UP later?
Please help.
Thanks & Regards
GopalHello Gopal,
Correct, it should be an automatic entry into the queue!
refer below for a detailed understanding!
/people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies XI: Reliable Messaging u2013 EOIO in ABAP Proxies
/people/krishna.moorthyp/blog/2005/12/23/monitoring-for-processed-xml-messages-in-abap-proxy Monitoring for Processed XML messages in ABAP Proxy
Weblog to send Response from RFC to File in Asyn Mode Using Proxy [original link is broken] Weblog to send Response from RFC to File in Asyn Mode Using Proxy
/people/michal.krawczyk2/blog/2009/06/20/pixi-abap-proxies-say-goodbye-to-executeasynchronous-method PI/XI: ABAP Proxies say goodbye to Execute_Asynchronous method
/people/krishnakumar.ramamoorthy3/blog/2008/11/02/error-handling-framework-for-abap-proxies--part-1 Error handling framework for ABAP proxies - Part 1
/people/krishnakumar.ramamoorthy3/blog/2008/12/19/error-handling-framework-for-abap-proxies--part-2 Error handling framework for ABAP proxies - Part 2
Regards,
Jilan -
JMS adapters and error handling
Dear all,
1. I have a scenario in which XI will be getting messages from Two JMS servers located in different locations. The messages from the two servers have no relation but XI has to check if messages are present in any of the servers and poll them. So can anyone suggest me a better approach. I can use two sender adapters and use a BPM. Is there any other way to do it avoiding BPM?
2. How do I delete the message from the JMS Queue once it is processed?
3. In the Reciever side I have to send messages to two different target systems based on a condition. From the sender side a field (value) is passed which will check these conditions. If the value contains one of the target system names, the message has to go to that particular system and if the value contains both the target system names, the message has to go to both the target systems. I think this can be done in BPM but please recommend an approach for this.
4. I need to do error handling both in the adapter side and in mapping level. Kindly give suggestions for the same.
Expecting your replies soon,
Harikumar. SHi ,
Refer to following blogs ,
JMS Adapter
http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20the%20content%20conversion%20module%20with%20the%20xi%203%20j2ee%20jms%20adapter
/thread/217893 [original link is broken]
JMS adapter -Message format pre-requisites
/people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
/people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
Thanks ,
Suvarna
Award pts if ans helps . -
Customized error messages and error handling?
Hi All ,
how can we Customized error messages?
and how we can do error handling in Sibel Analytics ?The ADF Developer Guide has a section about "Handling and Displaying Exceptions in an ADF Application", this will explain how to display errors in a new page.
All you need to do is have the navigation to this page use the dialog framework. -
Applescript and error handling
Hi,
is there something like error-handling for applescript in general or just limited to special actions/functions like "try" ?
i want to optimize my applescript app just for the case that it could be needed.
Best regards
fidelTo elaborate a bit, error handling in a 'try' block is implemented with the 'on error' statement. The simplest use is something like this pseudo-script :
try
{script steps that might produce an error}
on error
{script steps for the error condition}
end try
'on error' optionally will return information about the error. Most widely used are the error message (text) & the error number:
try
{script steps that might produce an error}
on error errMsg number errNum
{script steps for the error condition using the variables errMsg and/or errNum}
end try
The second form allows you to detect & handle specific errors. -
Transformationstep and error handling
Hello,
SAP library says:
Transformationstep -> exception exists for system error
-> generated for permanent system error.
My idea was: If I have an error in a mapping embedded in a transofrmation step, this should generate a system error which I can handle with an exception.
So I have created a BPM with such a block with a transform step with an exception .
Then I started the BPM with a message which results in a mapping error.
The error is shown in the SXMB_MONI, but the process continues , in SWI1 transaction the mapping error is not shown.
No exception is triggered.
This is not what I expected!
Mapping error is NO permanenent error?
Any ideas are welcome!
Regards
DirkHi Bhavesh,
Just ensure that there is a mapping error and check then if the BPM goes into the exception block
Yes, that´s what I did.
Mapping error is shown in SXMB_MONI .
"RuntimeException in Message-Mapping transformatio" (RedFlag)
No doubt, an error!
But the process continues w/o using the exception!
So from SXMB_MONI clicking on the PE link to the BPM monitor shows me that the process is reaching the end using all the steps after the block. And in the technical view of BPM all lamps are green!
In SXMB_MONI I can see that the sync/async bridge of this BPM reachs the step for the response closing the S/A bridge at the BPM end with a cheq.flag.
So, I have a block with an exception defined.
The first step in the regular branch of the block is connected to the exception.
This step (transform step) runs into mapping error .
System ignores exception branch!
So, what can I do wrong?
Regards
Dirk -
Html client - promise operation error handling
I use a lot of promise operations and they all work fine. However, I noticed when simulating an error (web api or service is 404 or something else goes wrong), the error function does not fire. The screen just hangs on loading and
I have to refresh the browser. The error function at the end of the promise operation does not execute or is not reached. Everything works fine if the web api is up and running. How do you handle these types of errors
to avoid a hanging screen?
msls.promiseOperation(callSomeFunction).then(function success(results) {
// do something
}, function (error) {
msls.showMessageBox(error.message, { title: error.title });
Hi Hessc,
Everything works fine if the web api is up and running. How do you handle these types of errors to avoid a hanging screen?
Similar code below to handle error:
myapp.commitChanges().done(function () {
msls.showMessageBox("Changes saved successfully.");
}, function (error) {
msls.showMessageBox(error.message, { title: error.title });
Best regards,
Angie
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Which is the best way to handle alerts in XI and Why:
AlertFramework in the runtime workbench, CCMS etc?
Also which of the options provides the functionality to view all alerts in Solution Manager?
Basically we want to set up the systems so that the support after go live can deal with errors quickly and efficiently even if they are not XI experts...Hi Ricardo Mendez ,
As I know, we can create alerts in XI to gine a mesasge which inform the particular person about the error occured in the maping objects(not only in mapping, but in other cases also ).
To define the Alert use Tcode ---> ALRTCATDET
To check the alert messages -
>ALRTINBOX
You can use the following links to get more.
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
http://help.sap.com/saphelp_nw2004s/helpdata/en/9c/34193cb4f5131de10000000a11405a/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/8a/3e2d4105f8d92be10000000a1550b0/content.htm
/people/sap.india5/blog/2005/12/06/xi-ccms-alert-monitoring-overview-and-features
Regards
sreeni
Maybe you are looking for
-
Add layers from other psd file and retain text layers (Batch processing)
I want to batch process a large number of portraits adding text info from the filename (year_name_number.jpg) to existing text layers. I want to make a template psd file containg the correct labeled text layers formatted and adjusted (With bleding ef
-
Illustrator CC preferences points vs: inches issue
I received a pdf carton dieline from a box printer, opened it in Illustrator CC and saved it as Illustrator CC file. The ruler unit is in points. I went to preferences and changed the units to inches and the ruler is still showing points. I closed an
-
How to prioritize the execution of tables in crystal
Hi, I have two tables Table.A and Table.B, what I want is to run Table.A first and then followed by Table.B. Is there a way I can achieve this?
-
After Form Personalization getting problem
Dear All, I did one form personalization, it's working fine. But the problem is .. At the time of closing that form it's asking Do you want to save? with out changing any filelds. Just i opened that form and queried records, then i tried to close tha
-
Well i heard from a couple of my friends whos using N96 that life timer dsnt work properly. he was in a cal for 15 mins, aftawrds when v try the 92702689 code the phone says that he has used the phone for 15 hours. And d same thng hapnd with sum otr