Monitor for processed xml messages
Hi all experts,
I'm a newbie. My work duty is PI/XI trouble shooting, and it's difficult for me currently.
I input tcode:sxmb_moni, and list all errors. After I double click a Interface, I see any xml. Although I have some programmer experience, but I can't understand what it mean yet.
Who can tech me, or give me a reference link to study?
Thanks a lot
Hi,
For XI monitoring and Troubleshooting you should go through the couple documents available on SDN.
That will help to give the corrective direction.
In SXMB_MONI, when you will double click on the failed messages, you will see 4 sections.
1. Left-top section indicates the Request /Response of message
2. Left-bottom section will drilled down the reqest/Response tree to further indepth details.
3. Right-top section indicates the processing log of the message along with trace details.
4. Right-bottom section will be based on the left side topic selected from the tree structure.
(Initally you will get error details in case of failures.)
XI Production Errors -- Steps to refer it in SXMB_MONI.
/people/prashanth.azharuddin/blog/2006/11/24/some-errors-in-an-xi-production-environment
/people/michal.krawczyk2/blog/2006/01/02/xi-sxmbmoni--controlling-access-to-message-display
/people/sukumar.natarajan/blog/2007/06/05/message-monitoring-overview-in-xi-with-sp20-sp12-in-70
Troubleshooting
Search various blogs for the troubleshooting based on the scenarios - file/soap/http/proxy etc.
THanks
Swarup
Similar Messages
-
No show message in monitor for processed XML messages
Hi,
I get the document 'VALIDANTING A CONNECTION BETWEEN SAP R/3 AND SAP XI WITH RFC' and following the steps until step 9 it's ok but I can execute the step 10 I get 2 problem:
First Problem - I dont know where see the ABAP code STFC_CONNECTION, How do you know?
The Second Problem is the step 11 the system not show message and the documentation show message.
Please Help-me.
Any Ideas ?
Regards.
Mattos.Hi, Ashish thanks for anwser my doubt.
So, the step 10 is "10. Refer to the following ABAP code snippet for executing the STFC_CONNECTION programmatically
instead of using the user interface shown above.
Call STFC_CONNECTION to send/receive request/response to/from XI***
DATA: v_msg_text(80) TYPE C. "Message text
CLEAR v_msg_text.
CALL FUNCTION 'STFC_CONNECTION'
DESTINATION 'XI'
EXPORTING
requtext = 'REQUEST_TEXT'
EXCEPTIONS
communication_failure = 1 MESSAGE v_msg_text
system_failure = 2 MESSAGE v_msg_text.
IF SY-SUBRC NE 0.
**Write your code here**
ELSE.
**Write your code here**
ENDIF."
and the setep eleven is "11. Check the Integration Engine monitor for the processed XML messages (SXMB_MONI):
Shows Sender Interface:"
But I not see messege in my Monitor.
Other doubt in step 5 the document order to create the RFC_Sender Communication Channel, this configuration have the parameters PROGRAM ID (mandatory), we dont have any idea what input there, Can you Help-me? How can find this parameters? in document we have the exemple INTEGRATION_SERVER.
Thanks.
Regards,
Mattos. -
Use of BPM for processing XML message
I have got a requirement for updating X-number and X- status into the SAP system from a non SAP system. I am getting the message which contains both these values in the form of xml and using HTTP and should be posted as 2 different IDOCs at the SAP system.
But the requirement is to post the X-number first and once it is updated X-status should be posted based on the number.
Assuming that X-number is available first and the status next in the non SAP system can we use BPM and if so how what needs to be done to make sure status doesnt update before number.Hi,
Proceed as follows:
1) Receive the X-message
2) have a transformation step....and map only the x-number into the target IDOC
3) have a synchronous send step....why a sync send....because in that you can get the confirmation for success/failure of your x-number upload....this is only if you want a confirmation...this will make sure that your x-number is updated first.....
4) now if you do not want to have a response back then...have a transformation step to map the x-status to your IDOC...then have a async send step...
5)
a)If sync send used: then you can have a condition like check the status of upload of x-number and if successful then send the x-status.
b) if failure then you can resend the x-number message.
c) if async send then you can directly send your x-status message.
Steps 3, 5(a), 5(b) can be avoided if async commn is used. If you want that your BPM runs somewhat faster then you can avoid the transformation steps....instead you can use the mappings in the respective interface detemination.
Regards,
Abhishek. -
What is the payload structure has to be used for AQ to process XML messages.
Hi Experts,
We have an IBM MQ and Oracle AQ has to be be linked to that.
MQ always contains XML messages and same message will come to AQ.
Now I want to create AQ. What is the payload structure(object) has to be used for AQ to process XML messages.
Please help me.
Thanks.Hello,
using XML type data in AQ you have to define a special AQ payload type
(corresponding to MQ): QUEUE_PAYLOAD_TYPE = 'SYS.MGW_BASIC_MSG_T'.
An example template for enqueueing looks like (you have to transform
from XMLTYPE to the MGW payload type):
DECLARE
queue_options DBMS_AQ.ENQUEUE_OPTIONS_T;
message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
message_id RAW(16);
v_message SYS.XMLType;
v_clob CLOB;
v_payload SYS.MGW_BASIC_MSG_T;
v_text_body
SYS.MGW_TEXT_VALUE_T;
BEGIN
v_message := SYS.XMLType.createXML('<SAMPLE>hello world</SAMPLE>');
v_clob := v_message.GETCLOBVAL();
v_text_body := SYS.MGW_TEXT_VALUE_T( NULL, v_clob );
v_payload := SYS.MGW_BASIC_MSG_T( v_header, v_text_body, NULL );
DBMS_AQ.ENQUEUE( queue_name => 'my_queue',
enqueue_options => queue_options,
message_properties => message_properties,
payload => v_payload,
msgid => message_id);
END;
Kind regards,
WoG -
Problem in JAXB for processing XML files
hello
I have been working on a project where i need to process data in XML format. the flow goes thus
I have 28 data elements that i need to represent as a XML so i compile the schema files and generate the class files for each of the tags and thus i can use the get and set methods to read and write to a XML file respectively(example getName and setName)......
Now the problem is that my coding is done if i change my xml file and add say 2 more tags how do i handle it in my code.........
1>Do i have recomplie the schema file and generate new class files every time the xml structure changes. can i avoid this recompiling process and use a one time genrated class files even if the xml structure changes.
2>Now i have hard coded the get and set methods for processing the xml file if i add new tags to my xml i wouldnt have the get set methods for the new tags in my code(say i add a new tag as Phone then i wouldnt have the codes getPhone and setPhone called in my code and this tage was added after the coding was done)........how do i handle this situation. Is is possible that i can get and set data without using these methods and use some sort of a dynamic way of getting and setting data.............
3>Any other approach available to meet the above requirements other than JAXB.
Please help for the above problem
Thank youhi,
i had written a xml and schema to validate.
my xml would be
<output>
<table>
<row>
<column></column>
<column></column>
</row>
</table>
<document>
<properties>
</properties>
<contents>
</contents>
</document>
<table>
<row>
<column></column>
<column></column>
</row>
</table>
<document>
<properties>
</properties>
<contents>
</contents>
</document>
<table>
<row>
<column></column>
<column></column>
</row>
</table>
<document>
<properties>
</properties>
<contents>
</contents>
</document>
</output>
schema should validate : each table should contain atleast one row element and each row element should have atleast one column. similarly, each document should have atleast one properties and contents element.
if any of these things occur. for ex: if there is no row element in table, i need to delete the table tag. similary if there is no properties/content or both element in document it should delete the corresponding document from the xml.
i tried for table if there is no row element am getting the line number of the </table> tag, based on that am deleting the table element. if there is no properties tag and contents tag is there. am getting the line number for <contents>start tag, with which i could not able to delete the whole document.
can anybody plz help me out for this requirement -
Table Names of Processed XML Messages
Hi ALL,
We are facing space problem in PRD box with one of our client, due to increase in large number of Messages .
Our basis tryed to do archiving, but endup with no luck.
Could any one tell us in which tables processed idoc xml messages will get stored.
.Any help is highly appreciated.
Kind Regards,
VijayHi,
you should not delete XI Message directely from database table. Please schedule archive or delete jobs. If you never define which interface should be archived, it could NOT be done afterwards. This is also documented clearly on the help.sap.com. What you could do is delete the old messages to free table space. You could configure now interface which should be archived, in this case the message processed in XI in future could be archvied.
XI message is actually stored in different tables,
SXMSPMAST, SXMSPMAST2 XML Message master Table, contains runtime information on XML messages processed by XI; in this table you can find all the information that is visible in SXMB_MONI.
SXMSCLUP XI Message Payload Tabelle
SXMSCLUR XI Message Payload Tabelle
SMPPREL3 this table contains information about interfaces; here you can find information on sender (party, service, interface and namespace) and receiver (party, service, interface and namespace) as well as information on maps (their GUID and name as well as namespace).
SXMSPFRAWH Performance Head Data, Audit Log,
SXMSPFRAWD Performance Data, Audit Log
There are could be more tables used to store information about XI messages, as I mentioned don't modify database table by your own risk. You will not get support by SAP, it could cause fatal error.
regards,
Hai -
Batch Number field in IDoc for Process Orders (message type LOIPRO01)
Hello PP experts,
Just wanted to ask if anyone of you have worked with message type LOIPRO01 (IDoc for process orders)
There is a segment-field in this IDoc E1RESBL-CHARG which has description of "Batch Number"
We tried to assign a Bath Number for an Order (using t-code COR2 --> "Goods Recpt" tab under "Receipt" section), generated an IDoc for this order, but upon checking the E1RESBL-CHARG field of the IDoc it is not populated with the Batch Number.
The material in the process order is FERT, so technically we're trying to assign a Batch Number in one of the process orders for a Finished Goods material type, so not on the component level.
Can anyone here verify:
1. is the E1RESBL-CHARG field of IDoc LOIPRO01 intended for the Product Batch Number? If Yes, how do we populate that for in the IDoc? --> Do I need to have a Reservation/Dependent Requirement for the Product for the Batch Number to be populated in the IDoc?
2. If E1RESBL-CHARG can not be populated for a Product that has no Reservation/Dependent Requirements, Do I have any option of populating this field with just the Batch Number assigned to the Process Order of that product?Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB. We need batch from AFPO and just created a lookup using the Process Order Number as import param
-
MonitorFor Processed XML Messages
Hi Eveybody,
I have a little problem with my message. I uploaded my xml with Transaction CG3Z from my directory to SAP system. I saw the xml in AL1. After a few minute it disappears and when I go to SXMB_MONI and I execute for check the process.
The status is in Red Flag, the error is Transaction IDX1: Port ER6, client, RFC
destination contains errors.
Could you help me please?
In advance thank you,
Mohamed R.Hi,
I did also that.
I receive now another error: Runtime error RFC_NO_AUTHORITY has occurred
Anybody know this runtime ?
Thank you,
Mohamed R.
Edited by: rahhaoui mohamed on Feb 6, 2009 3:15 PM -
Urgent help for processing XML stream read from a JAR file
Hi, everyone,
Urgently need your help!
I am reading an XML config file from a jar file. It can print out the result well when I use the following code:
===============================================
InputStream is = getClass().getResourceAsStream("conf/config.xml");
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = br.readLine()) != null) {
System.out.println(line); // It works fine here, which means that the inputstream is correct
// process the XML stream I read from above
NodeIterator ni = processXPath("//grid/gridinfo", is);
Below is the processXPath() function I have written:
public static NodeIterator processXPath(String xpath, InputStream byteStream) throws Exception {
// Set up a DOM tree to query.
InputSource in = new InputSource(byteStream);
DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
dfactory.setNamespaceAware(true);
Document doc = dfactory.newDocumentBuilder().parse(in);
// Use the simple XPath API to select a nodeIterator.
System.out.println("Querying DOM using " + xpath);
NodeIterator ni = XPathAPI.selectNodeIterator(doc, xpath);
return ni;
It gives me so much errors:
org.xml.sax.SAXParseException: The root element is required in a well-formed doc
ument.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endO
fInput(XMLDocumentScanner.java:790)
at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocument
Scanner.java:418)
at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifi
cations(XMLValidator.java:712)
at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultE
ntityHandler.java:1031)
at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityRead
er.java:168)
at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:18
2)
at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:19
7)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
atch(XMLDocumentScanner.java:686)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
java:195)
at processXPath(Unknown Source)
Thank you very much!
Sincerely Yours
Davidorg.xml.sax.SAXParseException: The root element is required in a well-formed document.This often means that the parser can't find the document. You think it should be able to find the document because your test code could. However if your test code was not in the same package as your real (failing) code, your test is no good because getResourceAsStream("conf/config.xml") is looking for that file name relative to the package of the class that contains that line of code.
If your test code wasn't in any package, put a slash before the filename and see if that works. -
Adapter type for inbound xml message XI3.0 SP10
Hi,
We are using XI3.0 SP10 and are about to set up a scenario where we will receive an xml to process. Up until now we have only received simple flatfiles to process.
My question is, can I use adapter type "File" to process this inbound xml file? And are there any special considerations I should be aware of, that is different from processing an textfile?
At the moment I have started to set it up as follows:
Adapter Type: File
Transport Protocol: FTP
Message Protocol: File Content Conversion
Adapter Engine: Integration Server
Transfer Mode: Binary
File type: Binary
Thanks,
FredrikHello,
Yes you can but you don't need "File Content Conversion".
Choose "File" and well done.
Regards,
Chris -
How to restart correctly processed XML messages
Folks,
Is there a way to resend already successfully processed message in XI (SXMB_MONI shows checkered flag). The requirement is to re-send PO or Invoice due to the customer demand.
All inputs deeply appreciated.
Thank you.Sandeep,
Is there a way to resend already successfully processed message in XI (SXMB_MONI shows checkered flag).
Go through this blog from Michal -
/people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages
You can perform this even in PRD, but it is not at all recommended ... ideally, such messages should be sent from the source.
Hope this helps.
Regards,
Neetesh -
Hi experts,
In my scenarios, I read data from files in folder A, archive these files to folder B,and outbound to http service(BID). I actived all in my scenarios in ID/IR.
Now I put one file to folder A, and found lots of files in folder B. (add 1 file every second), but I do nothing.
Now I had a try in test configuration. I found a red square in "Receiver Determination"
Runtime error
Error while refreshing the XI runtime cache
It's strange I have no message for my scenarios at any time, even I don't find my service/interface name/interface namespace in "Monitor for Processed xml messages" (tcode:sxmb_moni). Of cause, I find nothing in RWB.
Please help me,and thanks.Hi,
Check this links
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c0332b2a-eb97-2910-b6ba-dbe52a01be34&overridelayout=true
Error while refreshing the XI runtime cache
Error while refreshing the XI runtime cache
Regards
Ramesh -
To Monitor inbound and outbound messages for ECC 6.0 business system
Hi Guys,
I am working on ABAP proxy. I want to monitor the flow of Inbound and Outbound messages for my Business system (ECC 6.0).
XI server is on a different system.
I understand that SXMB_MONI is used for tracking XML messages. What kind of tracking can we do by this transaction in our Business system and the XI system?
And how do I know whether the outbound XML message sent is lying in the Sending Business system or in the XI system?
When I am testing my interface, there is a fault message generated. How do I know whether the fault message is being sent to XI?
Thanks,
James.James,
Go to SXMB_MONI in your sending system.
Here you will find a message ID fro your Message.
Go to XI, --> SXMB_MONI -->Monitor For Processed XML messages --> Advanced Selection Crieteria and use the Message ID here to see if the Message has hit XI or not.
Likeiwse it can be traced in the target system as well.
The basic point, The messages will have same Message Id on your R3 and on XI.
Regards
Bhavesh -
Monitor Integration process log in BPM
Hi
I am practising the following BPM
/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
and I wanted to know how to monitor integration process log in BPM.
To monitor Integration process I logged, into transaction SXMB_MONI_BPE ->Process Selection->Selected corresponding integration process (in Service Field) - and Clicked Execute as suggested in the blog
But I get the message work item doesn't exist ??
What do I need to do in this case ??
Thanks,
KiranSAKHARDANDE ,
Go to sxmb_moni-->Monitor for processed xml message --> In the view box there is standard and process. Select Process for checking the messages of BPM.
Else as in the weblog mentioned go to SXMB_MONI_BPE ->Process Selection->Select corresponding integration process (in Service Field) ->Execute->Select work item. Select your service which you have used in ID.
If you dont find anything then first see whether you see your message in sxmb_moni or not? If not then check your file sender communicaiton channel in adapter monitoring.
Regards,
---Satish -
Hi,
In NW2004s PI7, under oracle 10g, windows 2003server...
I would like to export XML messages in excel automatically everyday... do I need some ABAP program or scripts to do that ...
I know how to do manualy..
SXMB_MONI
Monitor for processed XML messages
Execute
spreadsheet
and export to file...
The same above procedure i like to do automatically....
Regards
Thank in AdvanceThanks you so much your reply... sound like very easy basically is not
Very strange, when I go SXMB_MONI all messages are displayed, but when I check SE16 Table: SXMSPMAST2 none of message there... also I treid SE38 to run program... I got ABAP dump error...
I check in SQL to display that table still no entries...
(here is that info. I found out)
Table:XI_AF_MSG has more then 25 fields match with moni records
Table: SXMSPEMAS has more then 3 fields
Table: SXMSPMAST has more then 5 fields
I am not sure I am right track or not
any ohter idea
Maybe you are looking for
-
Anyone know how to transfer Nokia N8 message to No...
I got my Nokia N8, but all the message I sync into the Nokia Suite. However, I going to buy a Nokia's Windows Phone, how can I transfer all the message to Windows phone from the Nokia Suite? Solved! Go to Solution.
-
I have bought the newest 13' retina mac book. But the keyboard failed 3 times the first day!! I was really upset about that. Some discussions on the website show chrome may be the problem. But after I unstall the chrome, the problem still exists. And
-
Safari 5.1.1 on Lion 10.7.2 freezing when trying to add bookmark
After quite painless update to Lion 10.7.2 and moving MobileMe to iCloud I have started normally use Safari, but quickly found that Safari 5.1.1 freezes every time I try to add bookmark. Anyone experiences the same issue?
-
What are the versions of Oracle major_minor
Hello all, This is my first posting (sorry for the stupid quest.) How do I find out the real version of Oracle Server 7.3.x for Windows NT. Example... I am running Oracle Server 7.3.4... I look on oracle-ftp.oracle.com in "/server/patchsets/wgt_tech/
-
Printing from CS3 to Epson R2400
I've been very happily printing from Photoshop CS3 to the Epson until today and now it just point blank refuses to do so. Connections between the printer and computer are ok because it prints from other software programs. But when I try to print from