Java code samples for java mappings
Dear all,
Can you please send me a sample scenario in which you used the java mapping.
How do we assign the source structure,the target structure.
How do we map source->target
Do we give the source and target interface names in execute method)?
if so where do we map the same.
we have one to one mapping in graphical,message mappings which i worked with.
is there any tool for making the same thing in java?
Kindly send me the documents if any on java mapping to [email protected]
Please clarify.....
ref:
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
and
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingSample+Code&
Similar Messages
-
Java code sample for uploading file
Guys can some one give me a java code sample for uploading more than 1 file .
I have a working example but that is only for one file.
thanks
MThrow it away. Go to the [http://commons.apache.org/fileupload] and carefully read both 'User Guide' and 'Frequently Asked Questions' sections.
And please, please also carefully read this article: [http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html]. -
Code Samples for SDK programming in Java
I need a complete set of Code Samples for SDK programming in Java, like the one that is available in VB and .Net.
For Example, if you look at the following directory of machine where SDK is installed,
C:\ProgramFiles\SAP\SAP Business One SDK\Samples\COM DI\VB.NET
we have following Sample programs in C Sharp, VB6, VB.Net
01.BasicOperations
02.MetaDataOperations
03.UsingSBObob
04.SerialAndBatch
05.OrderAndInvoice
06.ObjectsSchemas
07.Permissions
08.LoadFromXML
09.BudgetEditor
10.Messages Service
11.Basic Company Settings
12. Report Layout Service
13.SaveXML
14.ItemCycleCount
15.ApprovalStagesAndTemplateServices
16.Alert Management Service
Iam looking for Samples like what is available above so that we can understand JCO better.Hi Sridharan,
The only JCO samples I know of are posted in the [thread|;.
Regards,
Vítor Vieira -
Adapter module to read excel file -java code required for PI 7.1
Hi PI experts,
I am working on PI 7.1 SP 08.
I am trying to develope an adapter module to read excel file
http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns
but here in this wiki , given java code is for pi 7.0 and it is using jar file from PI 7.0
I tried with using corresponding PI 7.1 files
com.sap.aii.af.lib.mod.jar:
sap.comtcloggingjavaimpl.jar:
com.sap.aii.af.svc_api.jar:
com.sap.aii.af.cpa.svc_api.jar:
com.sap.aii.af.ms.ifc_api.jar:
jave program is not throwing any error in NWDS but After deploying file on server.
i am getting this errot in communication channel
2009-12-15 15:47:08 Information AO: Now calling the Convert Method to convert Excel to XML.
2009-12-15 15:47:08 Error MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file
since i am not a JAVA expert so i am unable to resolve this error
if some one has already deployed this module for PI 7.1, then please provide me java code for PI 7.1
Thanks
sandeep sharmahi,
please try this:
obj = inputModuleData.getPrincipalData();
msg = (Message) obj;
amk = new MessageKey(msg.getMessageId(),msg.getMessageDirection());
XMLPayload xpld = msg.getDocument();
Workbook wb = Workbook.getWorkbook((InputStream) xpld.getInputStream());
xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n"+ "<ns0:"msgType" ""xmlns:ns0=\""nameSpace+"\">";
Cell[] cells ;
Cell[] cellNames ;
cellNames = wb.getSheet(0).getRow(0);
for(int j=1;j<wb.getSheet(0).getRows();j++)
xmldata = xmldata+"<Record>";
cells = wb.getSheet(0).getRow(j);
for(int i=0;i<wb.getSheet(0).getColumns();i++)
xmldata = xmldata"<"cellNames<i>.getContents()">"cells<i>.getContents()"</"cellNames<i>.getContents()+">";
xmldata = xmldata+"</Record>";
xmldata = xmldata"</ns0:"msgType+">";
wb.close();
byte byt[] = xmldata.getBytes();
xpld.setContent(byt);
inputModuleData.setPrincipalData(msg);
Thanks,
Mayank -
Tutorial & Code Sample for Developping Composites with CAF
Do you have tutorials & Code samples for developping composites with CAF like Webdypro for Java as on this SDN site:
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
Thanls, regards, peterTake a look at https://www.sdn.sap.com/irj/sdn/developerareas/xapps?rid=/webcontent/uuid/7b9b3834-0801-0010-6a9a-dc53e0db37f2">the [original link is broken] [original link is broken].
cheers,
Marilyn -
Code samples for SSLEngine?
I am attempting to re-implement the SSL support in our product under the new non-blocking I/O model. SSLEngine seems to be the starting point...but I can't find any code samples anywhere showing it working.
Anybody have any ideas where to look?
There used to be a whole suite of samples in the JSSE...but don't know where they are, now that the JSSE is part of J2SE :(SSLEngine is new in tiger (JDK 1.5), and as such, hasn't been released
publically yet. I believe they are looking at sometime in Q1 2004 for the first
public beta, and ships later in 2004. If you're a licensee, you can get early drops.Yup...I'm currently working with JDK1.5 b30.
Anyway, SSLEngine will eventually have sample code, but nothing has been produced yet.
On the whole, the non-blocking model takes some care to use correctly. The SSLEngine
is pretty straightforward, but it's not as simple as SSLSocket.I'm aware of that - we've already rewritten our product to utilize java.nio. That's why I was
hoping to find some code samples for the new SSLEngine class.
To answer your other (implied) question, the sample
code for JDK 1.4 can be found in the JSSE Reference Guide. See:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#CodeExamples
Thanks for the link...I guess I should have looked in the OLD jdk docs. The 1.5 docs
don't include most of the 'guide' folder from previous releases. -
Source Code Control for Java development in 6.20
I am new to Java development. How do you control source code (versioning/transport) for Java development with the base R/3 is 6.20. I believe Java Development Infrastructure (JDI) is only available in 6.40. Is this the correct statement? Anyone that has work on 6.40 with Java can explain?
Let say we have this setup:
Applications are in 6.20
Portal will be EP 6.0
Do we need Web AS 6.40 to develop Java for Portal with base R/3 of 6.20. Or we can use Developer Studio to create Java accessing R/3 6.20 and display in Portal 6.0. If this is the case, how do you manage transport is you are not using JDI in 6.40.Hi Nablan,
I believe you are development J2EE applications. JDI only runs with WebAS 6.40 which supports J2EE spec. 1.3. The developed J2EE archive will not be able to deploy to WebAS 6.20 which only supports J2EE 1.2 spec. So if you want to deploy the created software build from JDI and deploy it to WebAS 6.20, then the answer is unfortunately no.
But, if you just want the Portal be able to display your application in an iView inside, then maybe you can just develop and deploy your application to the WebAS 6.40 system. Then create an iView in your EP to point to the app in the 6.40 system. That way your app will not need to deploy to WebAS 6.20.
Regards,
Marc -
Any code samples for inputting content into content manager 8.1?
Does anybody know where to find code samples of adding content to the Content Manager
via the Java API?
The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
not 8.1.
It's not clear from the documentation what the Repository and Path are supposed
to be named. Perhaps we had a working example, this might help.
Thanks
DaveDoes anybody know where to find code samples of adding content to the Content Manager
via the Java API?
The only code I can find is the "Content Manager Example Portlet" and it is 7.0,
not 8.1.
It's not clear from the documentation what the Repository and Path are supposed
to be named. Perhaps we had a working example, this might help.
Thanks
Dave -
I just wanted to share with the community there is a huge code base at
koders.com
Over 2 million lines of code....
that has tonz of examples from almost every language. Check it out. It's pretty neat stuff if you have time to search through the code.Choosing between CMP or BMP depends on the business requirements.
If your application has a lesser complex mapping, development time is less or there is no benefit is achieving a greater control over database transactions, CMP would be preferred. However, if you wish to have a greater degree of control over the database transactions and/or the database has complex mappings, it is better to opt for BMP.
As for the code samples, you coild find hundreds of them if you do a Google search.
Regards
xH4x0r -
Error : inavalid option - 'java' in cmdLine for Java
Hi friends,
I have just started working with the "Oracle Discoverer EUL Command Line for Java". I have windows XP as an operating system and version 9.0.4 as a tool.
I have already used -connect, -refresh comands.
when I tried to use -cmdfile with -connect in the following way :
java - jar eulbuilder.jar -connect username/password@database_name_with_domain -cmdfile f:\import.txt
It displays the error
Inavalid option - 'Java'.
I have import.txt file in F: drive and the command in the file is also valid. But the system is not recognizing the -cmdfile option for java.
Pls guide me in above problem.I got the solution from the document itself.
My error was that I was repeating the part
java - jar eulbuilder.jar
again in the file. -
Code sample for rtp server. please!
hi
I need to get a rtp server code, may it simple, in order to learn from it. Did not find anything from browsing. could anyone send me a sample or a link?
thanx a lotHi,
thanks for the link. I have aleready checked that, i should have specified more..
The thing is that these examples require that we have the client IP and port . But in case of a NATed client, I don t see how to get this client IP.
I looked in JMF API desperately for getting client info. But the only thing I get is the Participant class. No IP address nor a port to work with.
'Anyone has a clue, or a code sample of a small server that listen for clients and retrieve dynamically their IP/port? would help a Lot
thanx -
Code samples for using HTTPServices in Cairngorm framework
Hello there,
Does anyone have any samples for retrieving data through
HTTPServices using the cairngorm framework model. All samples on
the web, as far as I have searched, lead only to remote services
mode of communication only.
Any help here would be greatly appreciated.
Thanks,
Arun B
[email protected]I wrote a sample code modifiying the Remote Object examples
.. I got this working now . Please ignore this message, just incase
anyone needs my sample just email me.. -
Code sample for body height on kinect v2
Someone have a good code sample to get the body height on kinect v2?
Regards.have you looked at:
https://social.msdn.microsoft.com/Forums/en-US/eba64c3f-ab99-4ccc-932e-df82740a885d/kinect-height-measurement?forum=kinectv2sdk
Carmine Sirignano - MSFT -
Desperately trying to find patterns with Java code samples
Greetings. Is there anyone who knows where I can find Java patterns, I am particularly looking for template, literator, composite, observer and decorator. I have gone to Hillside and Portland Repository sites, but did not find pattern sample code.
I bought the head first Java book which I love, but I would like to see more sample code. They mention pattern catalogues, and besides the Gof I cannot find any. I really want to look at loads of actual samples to get a real feel how these patterns can be applied. Where can I go please?
Thank you for any and all help.
Peace,You're most welcome - you might check out the Head
First Design Patterns book as well.Yes, that was fun to read! -
Java Code Testing for Macbook Pro
I am taking a Java class and was told Eclipse is the one to use for Mac computers for testing code. Does anyone know which plugin I should download?
Eclipse is not a plugin. It is an IDE.
http://www.eclipse.org/downloads/?osType=macosx
Maybe you are looking for
-
How to print .sql file name in the same file using sqlplus
Oracle 10g on Linux platform. I am trying to print the name of .sql script file in that file but could not. Following is the file: test.sql select '&0' from dual;But instead of printing, it is asking for input: SQL> @test.sql Enter value for 0: Can a
-
My new ipod nano plays videos but there is no sound, why?
My new iPod nano that plays videos has no sound going along with them. It's not a problem with the iPod, (I don't think) because the sound won't play on iTunes either, yet my music in playing just fine both on my ipod nano and in itunes. I dragged an
-
Commenting on Shared PDF not available
Using Adobe Reader 9.3.... I'm trying to beta test this document which I download and can make and mark comments on.. however I can't upload them or post comments anywhere like they are telling me to.. The original author does have it activated on
-
Is there some underlying reason why Apple hasn't added HBO GO and Hulu+ to Apple TV? ROKU is going to take major marketshare if Apple doesn't catch up!
-
Hi, Can I assign different input masks for one field on a presentation? Thanks