Why Do We Need Java Adapter module ???
Hi All,
Why Do We Need Java Adapter module ???
What is the Use of it ????
Where we Write the code for this
Regards
Vamsi
Hi Vamsi,
Adapter modules are required to enhance the functionality of SAP XI.
Enhancements like.
1. Converting the payload (not covered with standards)
2. Changing encoding
3. Encryption and decryption
4. Creating and merging of additional attachments
Please follow the links below.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e">How to Create Modules for the J2EE Adapter Engine</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3">Adapter Module Development - Presentation</a>
*Reward points if helpful*
Regards,
Sushil.
Similar Messages
-
Reg :: Exception in custom java adapter module in sap pi
Hi Experts,
I have included custom java adapter module in SAP PI. I get the below error in sender communication channel monitoring.
Error: javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException
I have included in External jar files in EJB project also..Will that cause the above exception?
Kindly suggest your solution.
Thanks
PriyaHi !
have a look
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
and this thread also
Throw Error in Module Adapter EJB
Thanks! -
Why Do We Need Java Webstart For XI
Hi All,
Can Any Body Please Explain me Why We Need Java Webstart For XI.
What is the Use of it in XI.
Please Let me Know
Regards
BabuJava web start is a technology by Sun Microsystems which enables running thick clients developed in Java after they are downloaded from the server and / or cached on the local drive...
XI IR & ID are thick clients developed in Java which communicate with the XI server using EJB based communication and Java web start makes it possible to download / cache them and trigger point to run them...more on Java web start here -->
http://java.sun.com/developer/technicalArticles/WebServices/JWS_2/JWS_White_Paper.pdf -
Why oracle 11g needs loopback adapter???
Hi
i have installed obi11g on my windows 32.
initially i couldnt install as microsoft loopback adapter wasnt configured on my system...
but after configuring loopback adapter on my system i am able to successfully installl.
my question is that why oracle need microsoft loopback adapter,
even though i hav manually assigned the ip address in the network configuration. tcp ip settings..
plz help guyshi mahis,
my question is that why oracle need microsoft loopback adapterIts a pre-requisite for OBIEE 11g to call the IP of the host file.It is defined that way,you can go through the documentation for it.
mahis,please mark points to your previous threads and close it along with this.Follow rules http://forums.oracle.com/forums/ann.jspa?annID=939
By,
KK -
Adapter module in PI 7.1 EhP1 for Falt File Idoc to Idoc xml transformation
Hi Experts,
In PI 7.1 (EhP1) there is a java adapter module that can be added to the file adapter that automatically transforms Flat File representation of IDoc to IDoc XML. Can anyone provide the link to this particular module? Tried searching but could not get the specific module name or parameters.
The same conversion can be achieved using a standard SAP provided ABAP mapping but we need to use the module in this case.
Thanks and regards,
Shiladitya/people/william.li/blog/2009/04/01/how-to-use-user-module-for-conversion-of-idoc-messages-between-flat-and-xml-formats
FYI~~~ -
Adapter Module to terminate module chain processing PI7.1 (File Adapter)
Hi All,
I have a file in a FTP location that needs to be picked up ONLY after a trigger file is found.
I have tried 2 ways using OS commands and BPM but both do not suit my need .
I have now decided to write a java adapter module. This is in PI 7.1.
Folder : \public\cwc
File to be picked up : abc.txt
Trigger file : abc.trg
Polling Interval : 60 secs
1. Module checks for abc.trg in the folder \public\cwc
2. If found, do nothing and process normally
3. If not found, write an error to the log and stop the module chain (callsapadapter) from processing further. The abc.txt file should not be picked up.
Is this possible ? Any code snippets? What command will stop or timeout the communication channel processing?Hi,
What you can do is :
1. If found then send the regular xml file from the adapter module.
2. if it is not found then alter the message so that the log xml file appear as the output of the module.
3.in the IR make a data type such that its is having both i.e. either the regular xml or the log fields in two seperate messages (optional)
e.g.
<File> ... 1. .1
--<RegularFile> .. 0..1
--<logfile> .. 0..1
Dont think of stopping the process by calling some modules.Instead let the process complete by letting the mapping split.
If the Regularxml comes ,then route it to the regular folder , but if the log comes then let the other message go to the log folder.
Regards
Progirl -
Adapter Module for receiver IDOC adapter?
Hi,
I have a scenario where i need to do some custom logging in the receiver adapters. For all receiver file adapters, i have written an adapter module which fulfills this custom requirement but how will i do this in the receiver IDOC adapter as its on the ABAP stack? I cannot write a java adapter module for this.
Is there anyway by which i can write a ABAP adapter mosule and deploy it in the IDOC adapter? Or any other way to achive it. the scenario is such that i need to do the logging before the idoc is posted into R/3 system by the idoc adapter.
Please advice.
Regards,
YashHi Chirag,
Yes i have seen that the module tab is disabled for idoc adapter. I have a fin interface where i need to split a incoming file into an idoc and a file. For this purpose i need to log how many records are received by each adapter and the sum of the line items for audit perspose.
any othr way to do it apart from doing it in message mapping. The req is to do in the adapter engine. -
Converting INVOIC02 idoc to EDIFACT INVOIC message (Using Adapter Module
Hi Friends,
We are sending customer idoc (INVOIC02) from R/3 to external system through PI. We want to generate EDIFACT output file (message type : INVOIC).
Is it possible to convert IDoc message to EDI file format through java adapter module ? Will adapter module support this without using Seeburger adapter ?
kindly clarify, friends.
Kind regards,
Jegathees P.There is an alternative to Seeburger.
DataDirect also has complete EDI-XML conversion by way of deploying a module which is called from an adapter. The range of parameters with the conversion is also quite extensive, allowing tolerance for partners who may have included non-standard EDI qualifiers and such. The XML tags make for easier mapping. StylusStudio XML Suite includes the EDI<->XML adapter so you can try the conversions each way directly in that package. If you are happy with it, you need to then purchase the package from DataDirect. We did this and implemented EDI for X12 and EDIfact, including Orders and Invoices and some other messages. The communications part was not included. We wrote the EDI files and used a separate process to actually send and receive the files. The IDoc <-> EDI mapping was done using the normal graphical mapping of SAP PI. The Stylus Studio package includes the functionality to generate the XSD, which we imported to SAP PI. -
PI 7.1 adapter module issue
I deoplyed my module and worked fine. now i changed some code by adding parameter to module
strModuleKey = moduleContext.getContextData("module.key");
I changed the related things in my communication channel(gave parameters)
Now, i get below error while executing...
java.lang.ClassCastException: class com.sap.aii.af.sdk.xi.mo.MessageContext:library:com.sap.aii.af.sdk.libcom.sap.engine.boot.loader.ResourceMultiParentClassLoader428c6e04alive incompatible with interface com.sap.engine.interfaces.messaging.api.Message:interface:com.sap.aii.af.ms.ifccom.sap.engine.boot.loader.ResourceMultiParentClassLoader2dd7e4d6alive
Followed the below url but in vain..
PI JAVA ADAPTER MODULE PROBLEM
Incompatible with interface - Exception in Adapter Module
Issue on developing Adapter Module
Also if you are using PI 7.1 refer to the blog:
/people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes
Please let me know if u have any other suggestions other than this...
Thanks
PrabhakarHi Venkat,
Yes, you cannot add custom modules to soap adapter.
Please refer below documentation for the same..!!
http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/8c4756224a6fb5e10000000a155369/content.htm
http://help.sap.com/saphelp_nwpi71/helpdata/EN/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
Regards,
Swetha. -
Adapter Module to rename a file at FTP
Hi All
I have to write a Adapter module to change the filename of a file which is at the ftp location.
How can i do this.
Regards
Dheeraj Kumaryou dont need an adapter module for this.
You can easily use dynamic configuration and ASMA to do this.
/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
By the by for the adapter module refer -
How to create modules -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a -
Issue in calling Adapter Module
Hi experts,
We have a File -
> IDoc scenario where the file has got fixed length data. The data is in the following format:
Header xdfsdfefefeswefr
Detail dfdkfereorierwer
Detail fdfkjwoeiefiwere
Detail
Trailer erererewoirwoiwe
We do not have any identifier to identify the header, detail and trailer record.
We have gone for custom java adapter module which inserts H, D, T as the first character of each line in the file to identify the Header, Detail and Trailer nodes.
We added a entry for calling the adapter module under the module tab in file sender communciation channel. The EAR for adapter module has been deployed successfully.
But we are unable to call the adapter module at runtime.
The channle log has no indication wrt to the module being called.
We are on SAP XI 3.0 SP17
If any one has faced a similar issue. Please respond and your help would be highly appreciated.
regards,
YounusHi,
Check this document.Nice document on adding an adpater module at runtime.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c
this forum replies too..
Reg Integration Scenario
Thanks,
Vijaya. -
Cleanly stop a process in an XI adapter module
Hi,
I have a java adapter module that decides whether the process should carry on or not.
When I want to stop the process I throw an UnsupportedOperationException that is reported in Runtime Workbench -> system monitoring.
Are there any other means to stop the process (other exception....) from an adapter module?
Thanks
YannHi,
I have a java adapter module that decides whether the process should carry on or not.
When I want to stop the process I throw an UnsupportedOperationException that is reported in Runtime Workbench -> system monitoring.
Are there any other means to stop the process (other exception....) from an adapter module?
Thanks
Yann -
Receiver Mail Adapter Module Parameters
Hello PI Experts,
Can anyone pls provide me Mail adapter module parameter details for xml to txt file conversion. I have found a few but none of them are working, can you pls provide me some active links.
Thanks,
SriI need MAIL Adapter module transformation parameter for converting my attachment from xml to text file -
I have gone thro few forums and modified my comm channel, but still getting xml file as an output attachment instead of a text file.
Can anyone please suggest me how to change the module parameters to covert from xml file to text.
I have added these module processing - please help.
Processing sequence
localejbs/AF_Modules/MessageTransformBean - Local Enterprise Bean - XML2Plain
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean - Local Enterprise Bean - Mail
Module configuration
XML2Plain - xml.endSeparator - 'nl'
XML2Plain - xml.fieldNames - Field1,Field2,Field3
XML2Plain - xml.fieldSeparator - | |
XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
XML2Plain - Transform.ContentDisposition - attachment;filename="extract_p.txt"
XML2Plain - Transform.ContentType - xml/plain;charset='UTF-8";name="extract_p.txt"
XML2Plain - xml.recordsetStructure - Details
Thanks,
Sri -
Need Help in Creating adapter module for SFTP Sender in NWDS
Hi experts,
I have a scenario where i should write an adapter module for SFTP sender in NWDS.. need your help in achieving this..Hello,
>>i have followed the procedure of FTP but, adapter is not picking the file
Make sure u have written proper expression to pick file.
>>do we have any different adapter parameters for SFTP... the input file is .csv..
I don't think there are any specific parameters needed for SFTP (but in case u are reading file name in AM then u might have to adjust SFTP namespace)
Thanks
Amit Srivastava -
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
Maybe you are looking for
-
Asset Unplanned Depreciation posting for period 12 where ord dep is posted
Dear Experts, I have a requirement where i want to post Unplanned/Manual depreciation for asset for period 12 where i have already posted ordinary depreciation and now when i am trying to change the post key i am getting a message "Enter a depreciati
-
Why does it take hours to import mp4 files into iMovie
I have some home movies I imported from VHS-C and compressed to mp4 files and now I want to start going through them in iMovie but it takes hours just to import a single clip (~575 meg). What can I do to speed this up? Would getting a Mac Pro with lo
-
3.8.0 Master Server file corruption
We had two of three drives fail on the master server and it resulted in file corruption and is unrecoverable. We have a slave server with users who haven't been able to login because they rely on the master to redirect the client. I've had to rebuild
-
Hi! What would be the easiest way to generate a simple password? We're implementing a "User-Login" - the login name is the users e-mail address. At the first time a new password is generated and then its send to the user so he can change it. So - how
-
Missing workbook text elements
Hello, After upgrading to BI7 we are experiencing an issue with the missing text elements. We use workbooks with a sheet to receive the query and then a macro to reformat the query to user display form. The query sheet generally has a text element ar