Java engine for SCM 4.0 required for WCL 4.0
Hi,
We need to install WCL 4.0 on our SCM 4.0 system. The details of the system is as below.
SCM 4.0
Kernel 640 patch 155
non-unicode
SUSE Linux (kernel 2.6)/ DB2 8
SAP_BASIS 620 0048 SAPKB62048 SAP Basis Component
SAP_ABA 620 0048 SAPKA62048 Cross-Application Component
SAP_BW 30B 0025 SAPKW30B25 Business Information Warehouse
EA-IPPE 200 0015 SAPKGPIB15 EA-IPPE 200 : Add-On Installation
PI_BASIS 2003_1_620 0007 SAPKIPYH57 PI_BASIS 2003_1_620 : Add-On Installatio
SCM 400 0014 SAPKY40014 Supply Chain Management 4.0
SCM_BASIS 400 0014 SAPK-40014INSCMBASIS SCM Basis 4.0: installation
SCM_EXT 400 0014 SAPK-40014INSCMEXT SCM Extension 4.0: installation
APPINT 200_620 0006 SAPK-20006INAPPINT SAP Exchange Infrastructure 2.0
For WCL we need to install java engine as add-on on the system.
Is it possible to install the java add-on on this host ? or do we need to upgrade our SCM system for installing the java add-on engine ?
Another concern is, if we install (if possible) java add-on on the current SCM 4.0 system, will it be usable with the WCL 4.0 ?
Please let us know on the above issue for any further concerns.
Please help.
With regards,
Mohan
.
Similar Messages
-
How to add abap stack to existing NW Java engine- for XI installation
Hi All,
I am having a netweaver Java Stack installed on my system. I would like to install XI - in order to install Xi ,I guess the system should be ABAP + Java. But since I am having java based engine, I would like to add ABAP stack to it. So, my question how to add an ABAP stack to already existing JAVA/J2ee engine.
So what this process is known as-- Is it upgrading or New Installation. Because I need the guide and CD's for it.
Can any one tell me which Guide(Install/upgrade/Master) wud help me.
Thanks
SHi
check the link www.service.sap.com/instguides>SAP Netweaver 7.0>installation guides there you can find what is the process which involves in installing ABAP+JAVA with PI
Regards
Uday -
Does IC WebClient require a J2EE engine for any of its component
Does IC WebClient requires a J2EE engine for any of its component? What's the need to install j2ee engine on CRM server?
I would appreciate if anybody could give a good answer or any kind of documentation on it.Prakash,
The answer is yes in terms of the J2EE enginge being required. It primarily handles your multichannel access and broadcast messaging for the call center. If you don't install it, then your IC webclient will not work correctly. We are not using the "telphony" features of the call center, but still installed the java piece so that the standard functionality would work correctly.
Good luck,
Stephen -
SAP J2EE engine for configuring Java mail Service.
Hi
I am experiencing following exception when trying to use JAVA mail API.
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 554 <email@ddress>: Recipient address rejected:
Relay access denied
email address above is valid..
I have to use SAP J2EE engine for configuring Java mail Service.
But is does not hav any such access permissions to check....!!Relay access denied
To send mails from SAP system through the mail server which you have configured, SAP server should be permitted to relay through the mailserver. Then only you will be able to send mail to external email address. Otherwise, you will get the above message.
You must contact the mail server administrator and ask him to add the ip of SAP server into the allowed relay list.
If you are using MS exchange server as your mail server and if you have administrative access to the Exchange box, you can do it yourself by following the below steps:
1.Verify that your Exchange computer is not an open mail relay. To do this, follow these steps:
a. Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager.
b. In Exchange System Manager, expand the following object:
Servers\Your_Exchange_Server_Name\Protocols\SMTP
c. Right-click the virtual SMTP server where you want to prevent mail relay, and then click Properties.
d. Click the Access tab, and then click Relay.
e. By default, open relay is blocked. The default settings are as follows:
u2022 The Only the list below check box is selected.
u2022 The Allow all computers which successfully authenticate to relay, regardless of the list above check box is selected.
f. If you must permit a single computer, a group of computers, or a domain to relay through the server, click Add. In the Computer dialog box, click the appropriate selection for the computers you want to relay through the server. Then, type the required information.
Note Enabling access by IP address or by domain name is helpful for users who do not authenticate with the Exchange computer.
g. In the Relay Restrictions dialog box, click OK.
h. Click Apply, and then click OK in the Default SMTP Virtual Server Properties dialog box.
hope this helps you out...
Cheers,
Jazz -
Do we require Java stack for ADS?
Hello Experts
i am planning to work on Adobe forms on ECC6. Since it is our ECC system we don't have ABAP stack to that.
i went through some ADS documentation which says to add java hostnames and port numbers to the ADS Comm channel. also it seems from the architecture that ADS runs into the java stack.
hence do we require java stack for running ADS or we can install a patch of the same.
Thanks in advance.
Regards
RajeevHello,
the ADS is a JAVA Webservice >> You need the Java stack.
Please use the search function!
Best regards,
Dezso -
Hi.
I've been looking at the options of 3D engines for Java. Obviously, the first place I looked was at Java3D. But I've heard that it can be slow at times - I also happen to think it is a good, high-level API.
I've looked briefly at products such as gl4java, VTK and Jazz3D.
I'd like to know some pro's and cons for Java3D, and the above, and other, engines.
What I need is X3D support, and the ability to draw shapes over a background image, and of course, for this to be fast : )
I'm hoping you can give me some idea as to which APIs are better.
thanks
jamesThere are others too...
A JOGL-based scenegraph-API like xith3d...has no website i assume, but here's a thread about it:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1060308805
Openmind (mentioned before, but here's the link):
http://www.mind2machine.com
jPCT (a little different from the others, because it does software and hardware rendering...anyway...):
http://www.jpct.net
and a thread about it:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=3D;action=display;num=1061478645
There are even more, but most of them are rather outdated and unsupported. Hope this helps. -
Dear All
We have installed solman 4.0 and configured system monitoring for abap systems which is working fine, but we have to configure Central System Monitoring for SAP Entrprise Portal. if anybody knows do help me.
Thanks in advance
pntHi All,
i have configured GRMG for JAVA systems for IR, ID, AE in my PI 7.1 system...........
now how to define MTE class for these components in RZ20 because it is showing no MTE methods defined..........So how to configure CCMS Alerts for the Adapter Engine............
Plz help guys............... -
Latest PATCH for java engine 2004s_SR1 ( 7.00, SP-Number: 06)
hello,
I have installed NW 2004s_SR1 in a clustered environment.
I am looking for "Latest <u><b>PATCH for java engine</b>"</u>.
Current j2EE version details are as:
Specifies the version of the system
<b>Cluster-Version: 7.00 PatchLevel </b>
Build-On:Saturday, March 04, 2006 16:23 GMT
Perforce-Server:
Project-Dir:JKernel/NW04S_06_REL
JKernel Change-List:10168
Build machine:SAPInternal
Build java version:1.3.1_12-b03 Sun Microsystems Inc.
<b>SP-Number: 06</b>
Source-Dir: D:\make\engine\NW04S_06_REL\builds\JKernel\NW04S_06_REL\archive\dbg
Does any one has idea about it..(exact path & file names)
Regards
Sunil Kulkarni
PS: Rewarding points will be given for helpful answer.Hi Sunil,
Below are the components you need to install for updating the j2ee server..
ADOBE DOCUMENT SERVICES 7.00
BI META MODEL REPOSITORY 7.00
BI UDI 7.00
DI BUILD TOOL 7.00
J2EE ENGINE BASE TABLES 7.00
J2EE ENGINE CORE TOOLS 7.00
JAVA LOG VIEWER 7.00
JAVA SP MANAGER 7.00
LIFECYCLE MGMT TOOLS 7.00
SAP CAF 7.00
SAP CAF-UM 7.00
SAP IGS 7.00
SAP J2EE ENGINE 7.00
SAP J2EE ENGINE CORE 7.00
SAP JAVA TECH SERVICES 7.00
SAP SOFTW. DELIV. MANAGER 7.00
SAP STARTUP FRAMEWORK 7.00
SAP TECH S 7.00 OFFLINE
SAP VIRUS SCAN INTERFACE 7.00
SAP_IKS_7.00
UME ADMINISTRATION 7.00
First update the JSPM version and then use the updated JSPM to upgrade the above components.
The sequence of installlation will be taken care by
JSPM itself..
There are two suggestions I would like to make.
1. If you upgrade j2ee Engine ,please upgrade other usage types EP , XI etc if any to the same SP level.
2. Please stick on the SP06 as it is the most stable version available with maximum hotfixes as other SP's have lot of problem in some component or the other. From SP07-SP09 none of them are stable and SP10 is relatively new and so bugs also would be new!!..
the follwing is the path in the service market place where u can find all the components listed.
Support Packages and Patches"-->SAP NetWeaver" --> NETWEAVER" -->SAP NETWEAVER 2004S" -->Entry by Component" -->Application Server Java
Hope the above info is usefull...
Regards,
Ramesh Parameswaran -
Creation of a database engine for mobile devices using j2me
am trying to develop a database engine for mobile devices.. it is to develop a miniature version of the DBMS that
can be deployed on a mobile phone..I have to develop my own code for performing tasks such a s creating a table,
inserting values into it, selecting from it etc..
I limited my self to develop the software so that it can perform 3 functionalities of create, insert,select..
I should be taking the details such as table name and its parameters from the user and then should be able to
create a suitable data structure for it(i tried to develop a class)...
Usage of RMS package helps me partially in this.. I did that and ll be doing that..
I got stuck while developing the code for creation of a table.. I am facing problems in creating a dynamic data
structure for a table and also to use such data structure else where in my project..
I need help in developing an algorithm for this..
I would be very grateful to u all if u help me out in developing the code for this project..I'm sorry for the amount of time it took me to get back. Derby is an open source database written entirely in Java. I do not know if it can support resource constrained devices like MIDP compliant, but may work okay with CLDC.
But outside of Derby being a solution, let me give you a few ideas off the top of my head.
Set up a database server in a separate thread. This server will really be your controller for RMS access.
Since RMS is just a big sequential 'pipe' you will have to think of data as 'frames' - (starttable) (tableID) (tablename) (data) (tablename) (data).....(endtable).
When you need to write additional data, just append it to the end of the RMS object.
When you need to retrieve data, thing are more complex.
1. Read in all data, looking for your particular tableID. This may be made much easier using RMS filters - (I'm not sure, I've never used them)
2. Once start of table of interest is found, stick the data elements in either a java vector or array until you reach the table end identifier. I think vector will be a better choice - trust me. (I think its available in J2ME...)
3. Package this into a do while loop until the element you are searching for is read. If you need to do some sorts on the data or something else that requires the all the data to be present then you need all the data for that particular table. One thing will always be clear. The first data you grab will always be some start table identifier and the last data you grab will be an end table identifier. We just don't know which table because of how we put stuff in the RMS resource.
This provides you a few positives as well as negatives:
Positive:
1. Fast data writes, no need to search for a particular table before accessing it, nor do you need to search for an index in that table.
2. When looking for data, data may* be found without searching through the entire table. This is accomplished with RMS filters or logic test within the RMS read loop.
Negative:
1. Slow when all data of a table is needed (i.e. compute sums or averages of entries). The entire RMS database must be read to ensure all the entries are searched. An example of how this is a problem is as follows: You have 5000 entries in you RMS database resource and you are looking to compute the average of a value in some table. When you first wrote the data to the table, it was done sequentially and no other data for that table exist. But we can't tell if that's the case, so we have to read through all 5000 entries to make sure we looked for every piece of data.
Beacuse of this issue, this database structure, performance may be fine for 50K - 100K entries (depending on table element size), if the reading requirements don't force full data reads. Otherwise, 25K may be an upper limit.
I hope this helps.
Edited by: estarkey on Mar 17, 2009 9:15 PM
Edited by: estarkey on Mar 17, 2009 10:01 PM -
Solution Manager systems RAM requirements - problems with the Java Engine
Hello,
I am about to install SAP Solution Manager 7 on a WIndows 2003 Server x64 but I need to know what the RAM requirements are? I have been having problems with the Java Engine starting and it seems to time out, I have heard that this is a very RAM hungry process and it might be why?
Many thanks for your help in advance,
OmarHello Omar,
To size SAP Solution Manager 7.0 EHP1 we recommend to use the SAP Solution Manager Quicksizer Tool at:
http://service.sap.com/sizing-solman
Here you find information on how to use the tool, how to collect input data for E2E Scenario Sizing, on SAP E2E RCA Sizing, Introscope Tuning, Wily Enterprise Manager Cluster Setup for E2E RCA Scenario and BI Aggregation Strategy in E2E Scenario.
Please find more information about installing Solution Manager in:
http://service.sap.com/instguides -> SAP Solution Manager
I hope this information helps.
Thanks,
Mark -
Adobe Photoshop CS6 provides no engine for debugging
Hello,
I've been trying to diagnose a problem with my wife's copy of CS6 Web and Design premium. Basically it's unable to run any JSX script that requires the Debug engine. I receive the error message 'Adobe Photoshop CS6 provides no engine for debugging' - trying it on Illustrator also gives a similar error. Persisting by clicking the 'play' button brings up a popup error message that says 'Unable to Run Script' or something similar.
Note that if I hack our JSX script to bypass the debug engine it works fine - except certain PSDs will cause CS6 (and my older copy of CS4) to crash, so this is only a stopgap measure. Disabling OpenGL on CS4 seems to prevent crashing but it's not an option on the wife's copy since she's a full-time artist and I'm not.
This is what I've had to change -
$.level = 2; // debug level: 0-2 (0:disable, 1:break on error, 2:break at beginning)
debugger; // launch debugger on next line
Changing the $.level = 0 lets me continue without issue.
This problem does NOT exist on my laptop using the same installer downloaded from Adobe.com. (I use trial version for testing, she uses her serial no.)
Is it possible this problem persists because I uninstalled an old copy of Photoshop CS5 (standalone installation) AFTER installing CS6 Web & Design (multiple programs)?
I've tried uninstalling and reinstalling CS6, but the problem persists.
Please help, our jobs rely on this. >.<
Worst case scenario I'll copy the entire install folder over from my laptop to try and fix the problem but I'd rather not have to since we're currently working in different countries and I can only use Remote Assistance to help.The problem is the SCRIPTS work - the debugging engine is what's missing for some reason. Even if there's a way to just cleanly uninstall everything so I can start from scratch without formatting the hard disk would be a good solution. (since apparently I think I missed some files somewhere on the last uninstall)
-
How to Generate a Java file for a JSP Page
Hi ,
I am using weblogic11 .
I am working on a JSP page which nearly consists of 4000 lines of code.
I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
Please let me know how can i genertae Java file for the jsp pages ??JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.
-
Do I need to have a JAVA Stack for normal ECC 6.0 ?
Hi together,
we want upgrade our R/3 4.7 to ECC 6.0.
Do I need JAVA deployment on my ERP system as part of the upgrade?
What funktions are in the JAVA Stack for ECC?
best regards,
Carsten SchulzJust as advise:
I would highly avoid any dual stack installations nowadays. You can install the J2EE engine on the same host but use a different SID so you have two separate instances.
Markus -
Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?
Hi,
Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
It's enough if the API works with MySQL and/or Oracle.
Just to demonstrate what i'm looking for:
Suppose you've created sql file "c:/test.sql" with several script lines:
-- test.sql:
insert into TABLE1 values(3,3);
insert into TABLE1 values(5,5);
create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
Then the java API should look something like:
// Dummy java code:
String driver="com.mysql.jdbc.Driver";
String url= "jdbc:mysql://localhost:3306/myDb";
SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
Thanks.No such a API, but it's easy to parse all sqls in a file, then run those command:
For instance:
import java.sql.*;
import java.util.Properties;
/* A demo show how to load some sql statements. */
public class testSQL {
private final static Object[] getSQLStatements(java.util.Vector v) {
Object[] statements = new Object[v.size()];
Object temp;
for (int i = 0; i < v.size(); i++) {
temp = v.elementAt(i);
if (temp instanceof java.util.Vector)
statements[i] = getSQLStatements( (java.util.Vector) temp);
else
statements[i] = temp;
return statements;
public final static Object[] getSQLStatements(String sqlFile) throws java.
io.IOException {
java.util.Vector v = new java.util.Vector(1000);
try {
java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
FileReader(sqlFile));
java.util.Vector batchs = new java.util.Vector(10);
String temp;
while ( (temp = br.readLine()) != null) {
temp = temp.trim();
if (temp.length() == 0)
continue;
switch (temp.charAt(0)) {
case '*':
case '"':
case '\'':
// System.out.println(temp);
break; //Ignore any line which begin with the above character
case '#': //Used to begin a new sql statement
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
break;
case 'S':
case 's':
case '?':
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
v.addElement(temp);
break;
case '!': //Use it to get a large number of simple update statements
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
String part1 = temp.substring(1);
String part2 = br.readLine();
for (int i = -2890; i < 1388; i += 39)
batchs.addElement(part1 + i + part2);
for (int i = 1890; i < 2388; i += 53) {
batchs.addElement(part1 + i + part2);
batchs.addElement(part1 + i + part2);
for (int i = 4320; i > 4268; i--) {
batchs.addElement(part1 + i + part2);
batchs.addElement(part1 + i + part2);
for (int i = 9389; i > 7388; i -= 83)
batchs.addElement(part1 + i + part2);
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
break;
default:
batchs.addElement(temp);
break;
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
br.close();
br = null;
catch (java.io.FileNotFoundException fnfe) {
v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
Object[] statements = new Object[v.size()];
for (int i = 0; i < v.size(); i++)
statements[i] = v.elementAt(i);
return statements;
public static void main(String argv[]) {
try {
String url;
Object[] statements;
switch (argv.length) {
case 0: //Use it for the simplest test
case 1:
url = "jdbc:dbf:/.";
if (argv.length == 0) {
statements = new String[1];
statements[0] = "select * from test";
else
statements = argv;
break;
case 2:
url = argv[0];
statements = getSQLStatements(argv[1]);
break;
default:
throw new Exception(
"Syntax Error: java testSQL url sqlfile");
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
//Please see Connecting to the Database section of Chapter 2. Installation in Development Document
Properties properties = new Properties();
Connection con = DriverManager.getConnection(url, properties);
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
//Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
// stmt.setMaxRows(0);
stmt.setFetchSize(10);
final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
ResultSet rs;
for (int i = 0; i < statements.length; i++) {
if (statements[i] instanceof java.lang.String) {
String temp = (java.lang.String) statements;
switch (temp.charAt(0)) {
case 'S':
case 's':
case '?':
System.out.println(temp);
rs = stmt.executeQuery(temp);
if (serializeFlag) {
// serialize the resultSet
try {
java.io.FileOutputStream fileOutputStream = new
java.io.FileOutputStream("testrs.tmp");
java.io.ObjectOutputStream
objectOutputStream = new java.io.
ObjectOutputStream(fileOutputStream);
objectOutputStream.writeObject(rs);
objectOutputStream.flush();
objectOutputStream.close();
fileOutputStream.close();
catch (Exception e) {
System.out.println(e);
e.printStackTrace();
System.exit(1);
rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
rs = null;
// deserialize the resultSet
try {
java.io.FileInputStream fileInputStream = new
java.io.FileInputStream("testrs.tmp");
java.io.ObjectInputStream objectInputStream = new
java.io.ObjectInputStream(
fileInputStream);
rs = (ResultSet) objectInputStream.
readObject();
objectInputStream.close();
fileInputStream.close();
catch (Exception e) {
System.out.println(e);
e.printStackTrace();
System.exit(1);
ResultSetMetaData resultSetMetaData = rs.
getMetaData();
int iNumCols = resultSetMetaData.getColumnCount();
for (int j = 1; j <= iNumCols; j++) {
// System.out.println(resultSetMetaData.getColumnName(j));
/* System.out.println(resultSetMetaData.getColumnType(j));
System.out.println(resultSetMetaData.getColumnDisplaySize(j));
System.out.println(resultSetMetaData.getPrecision(j));
System.out.println(resultSetMetaData.getScale(j));
System.out.println(resultSetMetaData.
getColumnLabel(j)
+ " " +
resultSetMetaData.getColumnTypeName(j));
Object colval;
rs.beforeFirst();
long ncount = 0;
while (rs.next()) {
// System.out.print(rs.rowDeleted()+" ");
ncount++;
for (int j = 1; j <= iNumCols; j++) {
colval = rs.getObject(j);
System.out.print(colval + " ");
System.out.println();
rs.close(); //Let the resultSet release its open tables at once.
rs = null;
System.out.println(
"The total row number of resultset: " + ncount);
System.out.println();
break;
default:
int updateCount = stmt.executeUpdate(temp);
System.out.println(temp + " : " + updateCount);
System.out.println();
else if (statements[i] instanceof java.lang.Object[]) {
int[] updateCounts;
Object[] temp = (java.lang.Object[]) statements[i];
try {
for (int j = 0; j < temp.length; j++){
System.out.println( temp[j]);
stmt.addBatch( (java.lang.String) temp[j]);
updateCounts = stmt.executeBatch();
for (int j = 0; j < temp.length; j++)
System.out.println((j+1)+":"+temp[j]);
for (int j = 0; j < updateCounts.length; j++)
System.out.println((j+1)+":" +updateCounts[j]);
catch (java.sql.BatchUpdateException e) {
updateCounts = e.getUpdateCounts();
for (int j = 0; j < updateCounts.length; j++)
System.out.println((j+1)+":"+updateCounts[j]);
java.sql.SQLException sqle = e;
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" +
sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
catch (java.sql.SQLException sqle) {
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" +
sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
stmt.clearBatch();
System.out.println();
stmt.close();
con.close();
catch (SQLException sqle) {
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" + sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace(); -
Error in Java Mapping for Single XML conversion
We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Synchronous Scenario).
(ECC -> PI -> Legacy CRM)
Client has provided a WSDL with Single Node of XML and asking us to pass the whole structure as an single string along with all the nodes of data structure. To perform mapping we are using Java Mapping.
Message which we are getting after Java Mapping:
Input
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject">
<ITEM>
<sSlsOrderCode>1001</sSlsOrderCode>
<sDlrCode>A250</sDlrCode>
<sRejectReason>Z2</sRejectReason>
<nCircleCode>2</nCircleCode>
</ITEM>
</ns0:MT_SOReject_Sender>
Output
<?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp><?xml version="1.0" encoding="UTF-8"?><ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"><ITEM><sSlsOrderCode>1001</sSlsOrderCode><sDlrCode>A250</sDlrCode><sRejectReason>Insufficient Stock Balance</sRejectReason><nCircleCode>2</nCircleCode></ITEM></ns0:MT_SOReject_Sender></stringinp></MT_Trg>
Is ther any way from which we can convert > as u201C>u201D and < as u201C<u201D. Required result is as follows
Required Output
<?xml version="1.0" encoding="UTF-8"?><MT_Trg xmlns:ns="urn:Test_File_to_File"><stringinp><?xml version="1.0" encoding="UTF-8"?><ns0:MT_SOReject_Sender xmlns:ns0="http://MTSINDIA/TC/SalesOrderReject"><ITEM><sSlsOrderCode>1001</sSlsOrderCode><sDlrCode>A250</sDlrCode><sRejectReason>Insufficient Stock Balance</sRejectReason><nCircleCode>2</nCircleCode></ITEM></ns0:MT_SOReject_Sender></stringinp></MT_Trg>
We are using following Java Code for the same.
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import org.w3c.dom.Text;
import com.sap.aii.mapping.api.*;
import com.sap.aii.mapping.api.StreamTransformation;
public class SingleStr implements StreamTransformation{
* @author user
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public static void main(String args[]) throws Exception {
FileInputStream inFile =
new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
FileOutputStream outFile =
new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
SingleStr xml = new SingleStr();
xml.execute(inFile, outFile);
System.out.println("Success");
public void setParameter(Map param) {
Map map = param;
public void execute(InputStream in, OutputStream out)
throws com.sap.aii.mapping.api.StreamTransformationException {
try {
//************************Code To Generate The XML Parsing Objects*****************************//
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transform = tf.newTransformer();
//Document doc = db.parse(in);
Document docout = db.newDocument();
Element root = docout.createElement("MT_Trg");
root.setAttribute("xmlns:ns","urn:Test_File_to_File");
docout.appendChild(root);
Element stringinp = docout.createElement("stringinp");
root.appendChild(stringinp);
BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
StringBuffer buffer = new StringBuffer();
String line="";
while ((line = inpxml.readLine()) != null)
buffer.append(line);
String inptxml=buffer.toString();
Text srcxml = docout.createTextNode(inptxml);
stringinp.appendChild(srcxml);
DOMSource domS = new DOMSource(docout);
transform.transform((domS), new StreamResult(out));
} catch (Exception e) {
System.out.print("Problem parsing the file: " + e.getMessage());
e.printStackTrace();
Please help!!We are using following Java Code for the same.
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import org.w3c.dom.Text;
import com.sap.aii.mapping.api.*;
import com.sap.aii.mapping.api.StreamTransformation;
public class SingleStr implements StreamTransformation{
public static void main(String args[]) throws Exception {
FileInputStream inFile =
new FileInputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Input.XML");
FileOutputStream outFile =
new FileOutputStream("C:/Documents and Settings/user.HR0102WILT00033/Desktop/Output.XML");
SingleStr xml = new SingleStr();
xml.execute(inFile, outFile);
System.out.println("Success");
public void setParameter(Map param) {
Map map = param;
public void execute(InputStream in, OutputStream out)
throws com.sap.aii.mapping.api.StreamTransformationException {
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transform = tf.newTransformer();
//Document doc = db.parse(in);
Document docout = db.newDocument();
Element root = docout.createElement("MT_Trg");
root.setAttribute("xmlns:ns","urn:Test_File_to_File");
docout.appendChild(root);
Element stringinp = docout.createElement("stringinp");
root.appendChild(stringinp);
BufferedReader inpxml = new BufferedReader(new InputStreamReader(in));
StringBuffer buffer = new StringBuffer();
String line="";
while ((line = inpxml.readLine()) != null)
buffer.append(line);
String inptxml=buffer.toString();
Text srcxml = docout.createTextNode(inptxml);
stringinp.appendChild(srcxml);
DOMSource domS = new DOMSource(docout);
transform.transform((domS), new StreamResult(out));
} catch (Exception e) {
System.out.print("Problem parsing the file: " + e.getMessage());
e.printStackTrace();
Please help!!
Maybe you are looking for
-
I have what I would consider a difficult question. I called Apple Care and after she spoke to a senior advisor,the representative ended up saying it wasn't possible. Having said that, I'm sure this is not a difficult question for people with networki
-
Base Benefits Special Calcuation Routine: How to use it?
I'm a tech that has been asked to look at setting up a Leave Plan with the requirement that the employee work 2000 hours in the past 52 weeks before they qualify. I would like to set up a calculation that would do the rolling 52 weeks (they qualify a
-
Hi everyone, We're preparing for a GroupWise to Exchange 2013 migration. I'm currently coming up with the Exchange environment design and have a few questions about how best to set up the DAG(s) and CAS HA for our environment. I've been using the siz
-
Dynamically creating a component
Hey, Does anybody know how to accomplish the following task: I'm getting a name of a component as a string from and XML. for example 'Label' or 'Textbox'. I then want to create an instance of that component. as the following shows var cType:String =
-
I cannot validate my question because my password is being rejected.
THE USER NAME IS CORRECT. I TYPED THE SAME PASSWORD . IN UPPER AND LOWER CASE) THEY WERE BOTH REJECTED.i am desperate for an answer to my question but until i can validate the question - nothing will happen.