PI 7.4 Single Stack - OS Command and Java Mapping Trace
Hi,
Since ABAP stack is not avilable how to use the OS command and also want to know how to check the trace for java mapping since sxmb_moni is not avilable.
Please send me some link for 7.4 or 7.31 single stack document.
Thanks
Jignesh shah
Jo Jignesh,
Please see the document below.
Mapping Trace in SAP PI 7.31 Single Stack
Regards,
Jannus Botha
Similar Messages
-
Wanted to confirm my understaing for ABAP and JAVA mapping.
Am I correct in my assumption that these mapping techniques can be used only if input and ouput is in XML format ?
So if XI is receiving a flat comma separated text/non-XML file or an IDOC for that matter and output is NOT in XML format, say again flat text file or IDOC, I cannot use above two techniques?
All the docs I have read suggest that 'Execute' method is called when XML file/data is received, paresed using DOM/SAX/JAXB (for Java mapping) or IXML lib (for ABAP mapping) and then create a output XML file.
-Thanks in advanceHi Bob,
Here you have a code sample for deescaping. I have have written this code a couple of time ago. The incoming file can be any text format. It might be XML, but not necessarily.
The main method is not reqired, but good for testing.
Regards
Stefan
* Created on 28.09.2005
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
package sample;
import com.sap.aii.mapping.api.*;
import java.io.*;
import java.util.Map;
public class Deescaping implements StreamTransformation{
public static void main (String[] args) {
try {
InputStream in = new FileInputStream(new File("in.xml"));
OutputStream out = new FileOutputStream(new File("out.xml"));
Deescaping change = new Deescaping();
change.execute(in, out);
} catch (Exception e) {
e.printStackTrace();
public void setParameter (Map map) {
public void execute (InputStream in, OutputStream out)
throws StreamTransformationException {
try {
int c;
while ((c = in.read()) != -1) {
if (c != '&') {
out.write(c);
} else {
// ampersand
String help = "&";
boolean exit = false;
// check the next 5 chars, if there is a ';'
for (int i = 0; i < 5 && !exit; i++) {
c = in.read();
if (c == -1) {
exit = true;
} else {
// another ampersand?
if (c == '&') {
out.write(help.getBytes());
help = "&";
i = 0; // check the next 5 chars
} else {
help = help + (char) c;
if (c == ';') {
exit = true;
if (help.equals("&")) {
help = "&";
if (help.equals("<")) {
help = "<";
if (help.equals(">")) {
help = ">";
if (help.equals(""")) {
help = """;
if (help.equals("'")) {
help = "'";
} // for
out.write(help.getBytes());
} // while
out.flush();
} catch (Exception e) {
throw new StreamTransformationException(e.getMessage(),e); -
Hello friends,
Can any one know that how to create a XSLT and Java Mapping file(Jar File).
I am not able to find any of the example so if you create a example or find some where please let me know on that How to create such files...
Thanks...
Gaurav JainHi,
I am trying to invoke a Java Extension Function from a XSLT. I added both the class file and the XSLT file to a folder, then zipped the entire folder and uploaded into the Archive for my Interface MApping.
The CLASS gets loaded but the runtime engine gives an error when calling the JAVA Function.
Here is what it says:
Creating mapping sequence with 2 steps. --- Creating Java mapping Deliveries/stringHandler --- Creating mapping sequence with 2 steps. --- Creating XSLT mapping Deliveries/test1 --- Using MappingResolver with context URL /sapmnt/XD1/global/xi/mapping/http%3A%2F%2Fwolterskluwer%2Ecom%2Fxi%2F wk_midas_deliveries%2Ftest/cd2e6820267511d9cb52c3c5143c3524/ --- Loaded class Deliveries.stringHandler --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND(MappingRuntimeException.java:91) at com.sap.aii.ibrun.server.map.RUMappingJava.instantiate(RUMappingJava.java:168) at com.sap.aii.ibrun.server.map.RUMappingJava.execute(RUMappingJava.java:41) at com.sap.aii.ibrun.server.map.RUSequence.execute(RUSequence.java:50) at com.sap.aii.ibrun.server.map.RURunner.run(RURunner.java:58) at com.sap.aii.ibrun.server.map.RUManager.run(RUManager.java:66) at com.sap.aii.ibrun.sbeans.map.MappingRequestHandler.handleRequest(MappingRequestHandler.java:67) at com.sap.aii.ibrun.sbeans.map.MappingServiceImpl.processFunction(MappingServiceImpl.java:83) at com.sap.aii.ibrun.sbeans.map.XMappingServiceObjectImpl0.processFunction(XMappingServiceObjectImpl0.java:24) at com.sap.aii.ibrun.sbeans.map.MappingServiceKey.processFunction(MappingServiceKey.java:10) at java.lang.reflect.Method.invoke(Native Method) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.invokeBean(RFCDefaultRequestHandler.java:83) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:50) at com.inqmy.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:69) at com.sap.mw.jco.JCO$Server.dispatchRequest(Unknown Source) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.run(Unknown Source) at java.lang.Thread.run(Thread.java:513) --
Please tell me what is the problem?
Thanks for your time
A -
SAP PI 7.3 Single stack- Set tracing and logging
Hi experts
We have configured a SOAP to SOAP sync scenario in SAP PI 7.3 single stack(Java Only).
I have sent some test messages from WSNavigator to PI .
But when i checked messages in adapter engine, it is showing*"Unable to retrieve payload or you don't have sufficient authorization to view the content" I am able to monitor payloads of Async messages.
How can we set Logging and trace levels in Single stack PI? I couldn't find any options in RWB os NWA.
Thanks,
DhanishHello Dhanish,
As it was stated by Kenneth in his post, if you would like to see payload of a synchronous message in Message Display Tool (e.g. from Runtime WorkBench), you should set value of property messaging.SyncMessageRemover.removeBody of J2EE service XPI Service: Messaging System to 'false'. Please note that this affects only synchronous messages in final states (DLVD and FAIL).
Regarding the second part of your question - logging. In PI 7.3, you can persist the message in Adapter Framework in two ways - stage it or log it. Staging allows you to edit/restart the message later from the stage where the message was persisted and is relevant for asynchronous messages; logging allows you to only display the logged message and is relevant for both synchronous and asynchronous messages. Please also note that staging affects performance of message processing more greatly than logging, extensive staging (e.g. staging on several processing stages) can even be a reason of performance degradation for processed messages, so if you only need to display details of the message on different processing steps in Adapter Framework, logging should be sufficient. Both staging and logging can be configured using properties xiadapter.stage.conf (for staging) and xiadapter.logger.conf (for logging) of J2EE service XPI Adapter: XI.
Regards,
Vadim -
When do we go for ABAP mapping and Java mapping
Hi friends,
At present I am working on graphical mapping in XI ,can you guys give me with an example or scenario when do we use ABAP mapping , Java mapping or XSLT mapping.
Thanks in advance
Sud<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums</a>
I have standard XSLT mapping programs available for my scenarios, so use XSLT mapping. Similarly with Java mapping, For most scenarios, message mapping does the job too well. Abap mapping similarly is used to leverge existing ABAP base. If message mapping becomes confusing and hard to follow with too many functions, I go for Java mapping (just my way). I havent used ABAP mapping thus far.
Discussing ABAP mapping
ABAP mapping is developed in ABAP work bench. ABAP mapping needs to be transported to integration server and XI does not support this transport and have to do with ABAP transports.
Customers who can develop mapping program on SAP web AS and can transport them there can use ABAP mapping
*ABAP mapping programs cannot access the value table
*Since ABAP mappings are executed on ABAP stack SAP does not provide any ABAP mapping programs
*ABAP mapping programs must exists with one single version in IS, unlike JAva and XSLT mapping that can have multiple versions of mapping program
Regards,
Priya
priya k
null -
Give me description for ABAP and XSLT and JAVA Mapping
i want detailed description for XSLT AND ABAP,JAVA Mapping and where they require coding and some examples for this items and differences for these mappings and message mapping and some examples which shows difference between these items
Hi,
Java mapping:
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
ABAP Mapping:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
XSLT mapping
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
ABAP XSLT mapping
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
Regards
Vijaya -
Hello -
I have a java mapping and a message mapping implemented in one interface.
Java mapping basically adds a header and does nothing else.
Message mapping has all the mapping. Its not complex but straight.
I have the Message mapping first and then the Java mapping in the Interface Mapping.
what happens is i could see the headers written through Java mapping in my output xml file which is good but i cannot view the message mapping output in the file.
Any ideas.
Thanks,
TirumalHi
I am generating the headers in the java mapping using this:
public void startDocument ()
throws SAXException {
write("<?xml version='1.0' encoding='UTF-8'?>");
write("<!DOCTYPE cXML SYSTEM 'http://xml.cxml.org/schemas/cXML/1.1.008/cXML.dtd'>");
Maintain Order at Runtime is checked in the Interface Determination.
Ok, in the interface Mapping Editor i get 2 messages:
1.
11:09:48 Start of test
Call method execute of the application Java mapping com.sap.xi.tf._Orders_MM_
Java mapping com/sap/xi/tf/_Orders_MM_ completed. (execute() of com.sap.xi.tf._Orders_MM_
Call method execute of the application Java mapping com.sap.aii.mapping.api.SampleWithSaxParser
Java mapping com/sap/aii/mapping/api/SampleWithSaxParser completed. (execute() of com.sap.aii.mapping.api.SampleWithSaxParser
Executed successfully
11:09:48 End of test
2. XML not well formed
None of the above messages seem to be of Message Mapping don't know why its not getting written in the output.
Thanks,
Tirumal -
Can someone give me an example of how to start and stop UNIX processes from a java program. I know I need the Runtime object. Thanks in advance!
Since kill is a built in shell command, you need to
call it from a script. It can't be called directly
because there is no executable called kill in unix.Wrong.
$ ls -l /usr/bin/kill
-rwxr-xr-x 1 root root 14904 Aug 29 2002 /usr/bin/kill -
UNIX Pipe(tail command) and java
I want to read from a LOG file, which is being appended periodically. I have written a java program which can process on the addition made to the LOG file and display the result (as soon as something is added to the LOG file)
My prgram works fine if I use:
tail -500 input.LOG | java myprogbut when I use:
tail -f input.LOG | java myprognothing is displayed on the screen.
Wat could be the solution? So that myprogram keeps on processing the updated file and displays the result on the screen as soon as LOG file is appended with new data?
Here is my JAVA code: It reads a line and store it into an ArrayList.
ArrayList alBuffer = new ArrayList();
try{
InputStreamReader reader = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(reader);
String strLine;
int count = 0;
while((strLine=br.readLine())!=null){
System.out.println("<NEWLINE("+count+")>:"+strLine);
alBuffer.add(count,strLine);
++count;
}catch(Exception exc){
System.out.println("EXCEPTION WHILE READING");
exc.printStackTrace();
}Thanks,
SumitNeeded something similar and I came up with this, not much of a change from your existing code.
BufferedReader IN = new BufferedReader(new FileReader("log.txt"));
EXECUTE = true;
String line;
while(EXECUTE){
line = IN.readLine();
if(line != null){
//do something with the text......
else{
try{
Thread.sleep(500);
} catch(Throwable t){}
}For a tail you do not want the EOF or a null to stop the reader, instead, if you read a null or EOF from the buffered reader you just ignore it, sleep for a while and try again. This saves you having to read through the file again or use the mark method!!
Hope this helps......
/P/ -
Hello
Folks
I have business requirement as below.
X is a FMCG (Fast moving consumer Good) company. Need to take the financial transaction from customers per day 1 Million.
When X company takes an electronic cash (Credit card). It need to communicate with X1 (Bank with legacy system).
My question:
Ideally what kind of mapping makes my Integration process an error free. Say less monitoring work. Less support.
Basically I am looking for a RUGGED mapping process.
Thanks in advance for your answer and co-operation
Regards
Ashok BabuHi Babu,
<b>Ideally what kind of mapping makes my Integration process an error free. Say less monitoring work. Less support.</b>
Thats depends upon ur requirement.Best is to use Graphical mapping as it is easy to use and not that much complex compare to other mappings.But some in some complex scenario..JAVA/XSLT maaping is useful....
Check here the mapping performance...
/people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
regards
BILL
Use a Good Subject Line, One Question Per Posting - Award Points -
PI 7.1(dual stack) and PI 7.31(Single stack) -
Friends,
I have a proxy to proxy scenario - Proxy --> PI --> Proxy
We have two servers PI 7.1(dual stack) and PI 7.31(Single stack)
i did the development in ESR and my ESR is pointing to PI 7.1, when i execute the scenario i receive one error message "receiver could not be determined", i ensured that all my input is correct, still i get the same error message.
the expectation is my scenario should point to PI 7.31, Can some one help me where and what settings i need to make in-order to make it work.
Please Note: All my data is correct and i read some scn forums wherein they asked to refresh the cache , i have refreshed the cache also still the problem persists.
Thanks in advance!Iñaki Vila
Communication component in ID is the same as sender side.
could you share your sender configuration?
Did you mean Tcode - SXMB_ADM and under that Sender/Receiver configuration
Krupa Rao Atluri
In ID steps are correctly defined.
I spoke to my colleague he hinted that at RUN TIME we want to point to PI7.31, he mentioned config change needed in SXMB_ADM
any further inputs from any one could be useful. -
Archiving and Deleting of XML Messages in SAP NetWeaver PI 7.31 single stack
Hello my XI friends!
Need step by Step Guide to Archiving
and Deleting of XML Messages in
SAP NetWeaver PI 7.31 single stack
Similar to these instructions
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0afdd69-a8a7-2d10-7e9a-cbf6fa21c5a7?quicklink=index&overridelayout=true
Regards,
RinazPlease check the below blog for archiving java only-(XMLDAS)
http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/11/16/aae-archiving-in-sap-pi-711-with-xmldas
For deletion there is standard delete job..
https://help.sap.com/saphelp_nw73ehp1/helpdata/en/48/b2e0036b156ff4e10000000a42189b/frameset.htm
Message was edited by: Hareesh Gampa -
Differences between dual stack and single stack Java system copies
Hi
Can any body please provide step - by -step procedure.
Thanks in advance
Edited by: Kobby bryant on Apr 13, 2008 10:39 PMHello Koby,
Dual stack is ABAP+Java instance.
Single stack or Standalone is just Java instance. There is no ABAP part.
Using the installation wizard, you could select the desired option and the installation is performed accordingly.
If you are looking for any specific info, please provide the details.
Regards,
Snehal -
How to put a single stack item to an album?
Maybe a silly question, but I can't find out how to put a single item from a stack into an album. When I drag a stacked item to an album, the entire stack appears in the album. This is not what I want, I want to get the single item in the album.
I know I can make a single stacked item in an album to be the albumpick. But this is not enough. Sometimes I need to put two items from the same stack into this album.
Koen
Message was edited by: Koen van DijkenKoen van Dijken wrote:
Would this be as designed, and so a wrong use of stacks by me?
It is as designed but I don't think what you want to do is a particularly wrong use of stacks. I can see using stacks as a way to reduce clutter in the browser but still wanting to be able to get to individual images in the stack to use..
What is interesting is the wording in the Aperture users guide concerning stacks:
Dragging Stacks
You can drag an entire stack to a new location, *and you can drag specific images within a stack to a new location*. When a stack is closed, dragging the stack moves the entire stack. *When a stack is open, you can drag individual images to new locations in the Browser*. You can also drag images into a stack. If you drag an image within a stack into a different project, however, the entire stack moves to the new location.
(emphasis added)
So the first part sounds like you should be able to drag an image out of the stack to an album, the second just mentions dragging an image out of the stack in the browser.
And in way you can do this, the only thing is what you end up doing is unstacking the image you drag out. Not exactly what you would want to do.
I think it should be OK to place individual stack items into albums and have them remain in the stack. Any reason this would be a bad idea? -
Step by step to disable Folder Redirection for a single user - Windows 7 and SBS 2011 Essentials
OK...I got chewed (by someone I have a lot of respect for) for pounding on an old thread, so I'm starting a new one. I've got the Windows 7 Value Pack Plugin for SBS 2011 Essentials and Folder Redirection is working for everybody. What I'm looking for is
exactly how to go into Group Policy and disable the FD for a single user. I'm not looking for quick, incomplete answers. If you don't have time to give me the 'For Dummies' version, don't bother. Sorry, but I've done all the Googling I can stand for one day
and I'm over it! (and a little grumpy)
Thanks in advance!
Wayne S. CompTIA A+ CompTIA Network+ Microsoft MCP... I've got the Windows 7 Value Pack Plugin for SBS 2011 Essentials and Folder Redirection is working for everybody. What I'm looking for is exactly how to go into Group Policy and disable the FD for a single user. I'm not looking for quick, incomplete
answers....
Hi Wayne,
Here's what I'd do.
1) create a Security Group in your AD environment. Call it 'Folder Redirection Members' or something like that. Put all the user accounts in your AD environment who you want to have their folders continue to be redirected to the server, do not include the
one user who you wish to exclude. in other words, you're going to use a specific security group to target the Folder Redirection policy (right now, it's Domain Users, which is everyone).
2) Edit the Group Policy that the W7PP created in your AD environment. It's likely called "W7PVP Folder Redirection". Start with verification under the Settings tab, expand Folder Redirection beneath User Configuration states that
Policy Removal Behaviouris set to Restore Contents. Then proceed using the Editor, to make adjustments under the Scope tab; verify membership in Security Filtering. Remove Domain Users,
add in Folder Redirection Members (or whatever you named your group in step 1).
3) on your workstation that your user you are applying the change to disable folder redirection, Log on to the domain account while connected to your network, elevate a command prompt, and perform a 'gpupdate /force' command and then reboot your computer.
Folder redirection configuration should be removed from the system and redirected contents should be restored back to your local path. Verify with inspection of the My Documents or other folders.
Hope this helps. Keep in mind, no warranty implied or expressed in this advice.
Try not to be so darn grumpy. :-/
Jason Miller B.Comm (Hons), MCSA:Win7, MCITP, Microsoft MVP
Maybe you are looking for
-
My yahoo messenger window does not open in my yahoo email page when the icon is clicked on
The yahoo messenger chat window opens in other web browsers, but not in yours anymore. I have tried everything to no avail. Please sort it out for me.
-
Digital Signatures- either disable reader abilities or any other work around
I am fairly new to acrobat I have designed a form that uses a JavaScript that looks at individual fields to verify if the information is good. I also require two signatures along with these correctly entered fields before I consider the form "good to
-
Hi can any one tell me what are seeburger adpaters and how actually is it used in EDI based intergrations
-
Downloading my old library to new hard drive?
Hi guys, I'll say sorry in advance, I'm a new user and completely useless with a computer. Here's my problem, My hard drive recently packed in on me, so I had to buy a new one. I'm currently downloading Itunes again and was wondering if there is any
-
Potential "Ghost Order" Situation/Refund
Hello, I recently ordered a WD - My Passport for Mac 500GB External USB 3.0 Portable Hard Drive - Silver (SKU:9028486) from Bestbuy.com. I placed the order around 9:00am Central Time for Store Pickup at the Lewisville, TX store located at 2601 S Stem