JMS to File Scenario
Hi All Experts,
I want to perform JMS to File Scenario but i am unable to figure out what will my message be(that is, the format and type of the message like xml, txt etc.) on the sender side and where will it reside so that it gets picked up and gets posted to the Integration Server. Kindly provide me the detailed settings of the configuration of the sender JMS adapter as well.
Hi Arkesh,
For JMS scenarios, you have first install the Drivers. Go through these document to know "How to install & Configure the JMS Drivers".
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f
You need to create the Queue manager, Queue at the MQ side and use that Queue name in the channel configuration for receiving the message.
In the below mentioned blog you will find how to configure the sender & recevier JMS adapter.
How to use SAP's WebAS J2EE's JMS Queue in Exchange Infrastructure
Regards,
Sarvesh
Similar Messages
-
JMS to File Scenario with no mapping
Hi Experts,
My requirement is sending the flatfile data to target system.It is just pass through scenario.
Source adapter is JMS - >SAP PI ---> File to Target.Data at source side is binary data and its nt XML.PI has to pass the csv data to target as a file without any modification.I am not sure of source structure here.Payment information are coming from source which is of TITO format.
My Question is
1)Will sender JMS adapter accepts binary data ?
2)What configuration i need to make to achieve it?
3)Does any mapping required for this scenario?Since its just pass through scenario.
Please provide your suggestion.
Regards,
KarthigaHi Karthiga,
Check the responses below.
1. Will sender JMS adapter accepts binary data ?
Yes it should accept binary data.
2. What configuration i need to make to achieve it?
There are many examples on SCN for passthrough scenarios.
3. Does any mapping required for this scenario?Since its just pass through scenario.
No mapping or ESR objects are required for his scenario.
Rgds
Charan -
Acknowledgement for JMS to File scenario
Hi,
I want to receive an acknowledgement that a file has been successfully written at the target and wonder if and how an acknowledgement could deliver this information.
I've read that the receiver File adapter cannot generate a transport acknowledgement but will deliver one when requested.
I've seen the blog where you define this in a BPM.
I've also read that possibly the REQUEST message can contain an acknowledgement flag but I do not know hoe to set this in the SENDER JMS channel.
So how do i do this? Am I still limited to a BPM or is there another way (without BPM) in which I can request this acknowledgement?
Thanks
Tom> I've also read that possibly the REQUEST message can contain an acknowledgement flag but I do not know hoe to set this in the SENDER JMS channel.
>
> So how do i do this? Am I still limited to a BPM or is there another way (without BPM) in which I can request this acknowledgement?
This is not possible. BPM won't help you, as the ack message was only between BPM and file, but not in full message flow.
A sender JMS adapter cannot request an ackk message. -
Hi
I have gone through all the previous posts on this topic. But I am still not clear. Can anyone give me the step by step procedure for JMS to file scenario?Hi Arthi,
I configured similar kind of scenario in my project.
Here JMS is sender, File is receiver. here mq i used is Webshpere of JMS complaint
SLD
one third party business system would be enough for this scenario.
IR
1. Create a datatype similar to the structure of the message that is residing in WebsphereMQ
2. Create messagetype (one datatype, message type would be enough)
3. create two interfaces, outbound for jms and inbound for file
4. create message mapping and interface mapping.
ID
1. Import BS and create 2 comm channels
2. one jms sender, one file receiver
3. in jms sender, select WebsphereMQ( select the appropriate mq vendor)
defualt values appear for queue connectionfactory and and queue class
give ip address of the system on which MQ is installed, its port by default it is 1414, give queue manager name, channel name, and queue name. Remember all the characters shuld be in upper case only. select transport protocol as tcp/ip and jms complaint. give the userid and password of the system on which this MQ is installed. all these details u can get from MQ team.
4. create file receiver com.channel
5. remaining steps like sender, receiver agreement and interface, reciever determination can be created.
let me know if you have any doubts in this.
Regards,
Ravi. -
Hi All:
I need to create one JMS to JDBC Scenario. For Sender side i.e JMS what I need to do.
Like I dont have any messaging System like MQ series etc. I have JMS client and I know how to use JMS adapter, but where should I create Queue? In there any way like we can
create Test queue in XI and can send the data from JMS client to that Queue?
Also if the and Messaging Sysytem that I can download as a trial version please let me know with the required setting in XI.
Thanks & Regards,
Farooq.Hello Farooq,
Instead of creating a queue in visual admin, I would suggest you to use the default queue provided by XI.
Please have a look at the parameters(Sender/Receiver):
Select the <b>Transport Protocol as 'Access JMS Provider with JNDI'</b>
JNDI Lookup Name of QueueConnectionFactory: jmsfactory/default/QueueConnectionFactory
JNDI Lookup name of JMS Queue: jmsqueues/default/sapDemoQueue
Name of JNDI Initial Context Factory: com.sap.engine.services.jndi.InitialContextFactoryImpl
JNDI Server Address: <Host Name of your XI server>:<J2EE Port>
JNDI Logon User and Password are not mandatory.
Please note that you will not be able to monitor the sapDemoQueue. However you can test your scenario by doing a File to JMS scenario first and then a JMS to File scenario.
Before granting points please let me know if this helped you out.
Thanks,
Pritish -
How to configure a full JMS Sender Adapter Scenario
Hi guys,
I have to do a JMS -> PI (7.1) -> File scenario, I never used JMS Adapter, and I'd like to tell you what I have done, and what I think is missing.
First I went to the NetWeaver Administrator ->Configuration Management ->Infrastructure ->JMS Server Configuration-> Create ->JMS Queue.. and I created a new Queue from a Virtual Provider (SAP JMS Provider).
The first thing I didn't know how to configure it is which transport protocol I have to choose in the CC adapter (SonicMQ JMS Provider, WebSphere MQ, etc..)
But I also don't know is if there's something missing on the NWA, to create, modify, etc. I read this slide: (https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05b2347-01e7-2910-ceac-c45577e574e0) where was shown how to create a SAP standard queue, and I also read all the documentation from help.sap.com (all the JMS basics and explanation) but I still don't know how to fully configure the CC and how to trigger the messages.
Please, if you need further information I can give it.
Thanks in advance.
JuanHi,
did you try this blog from William?
/people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
Regards,
Michal Krawczyk -
File to File scenario Error: Module Exception
Hi guys,
I'm setting up a very simple file to file scenario in XI 3.0
After doing all the set ups in Desing and configuration. In the Adapter Monitor, I'm getting the following error for the SENDER File Adapter:
Sender Adapter v1014 for Party '', Service 'BS_File_transfer':
Configured at 16:00:16 2008-02-20
Last message processing started 16:06:01 2008-02-20, Error: Module exception java.lang.ClassCastException found last retry interval started 16:06:01 2008-02-20
length 5,000 secs
Does anyone migth no what could be the problem? There are very simple mappings, 1 to 1, no conversion of any kind.
Thanks
FelipeRaj,
Please note that the Scenario that I'm setting up it is simple FILE to FILE scenario.
The error showed in the Adapter Monitor is this one:
Sender Adapter v1014 for Party '', Service 'BS_File_transfer':
Configured at 19:15:28 2008-02-20
Last message processing started 19:24:23 2008-02-20, Error: Module exception java.lang.ClassCastException found
last retry interval started 19:24:23 2008-02-20
length 5,000 secs
The JDBC Driver error (what I told you, relates to the driver, connection, etc)
Sender Adapter v0915 for Party '', Service 'BS_File_sinMM':
Configured at 19:03:51 2008-02-20
Processing Error: Loading jdbc driver 'oracle.jdbc.driver.OracleDriver' failed: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Found in negative cache
Loader Info -
ClassLoader name: [service:com.sap.aii.adapter.jdbc.svc]
Parent loader name: [Frame ClassLoader]
References:
service:com.sap.aii.af.cpa.svc
service:com.sap.aii.af.ms.svc
service:com.sap.aii.af.svc
service:com.sap.aii.adapter.xi.svc
library:com.sap.aii.af.lib
library:com.sap.aii.messaging.runtime
library:com.sap.xi.util.misc
common:service:iiop;service:naming;service:p4;service:ts
common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:com.sap.security.core.ume.service;service:connector;service:dbpool;service:keystore;service:security;service:userstore
library:ejb20
library:sapxmltoolkit
library:com.sap.guid
library:com.sap.tc.Logging
library:jms
Resources:
C:\usr\sap\DEX\DVEBMGS04\j2ee\cluster\server0\bin\services\com.sap.aii.adapter.jdbc.svc\aii_adapter_jdbc_svc.jar
Loading model: {parent,local,references}
Available JDBC drivers:
No deployed JDBC Drivers found
Still here...
Felipe
Edited by: Felipe Andres Contreras on Feb 20, 2008 11:24 PM -
I have one requirement .which is JMS XML file should convert to Flat file
HI Gurus,
My Scenario is
sender SAP ---> receiver MF( Mainframe) ..
I have one requirement i will get IDOC from SAP sender pass throw PI to Mainframe... which is recevier's JMS XML file should convert to Flat file...
plz guide me any related suggestion and related links .... how to achieve..
Thanks in advance..>
> My Scenario is
> sender SAP ---> receiver MF( Mainframe) ..
>
> I have one requirement i will get IDOC from SAP sender pass throw PI to Mainframe... which is recevier's JMS XML file should convert to Flat file...
>
Where is MQ coming in to picture here, You receiving data from SAP and sending Main Frame system,as per your post.
so we can SAP->PI-->MAINFRAMES.most of the times we sent data to main frame system in the form of test files,so you can use receiver adapter file and use file content conversion.
thats it.
Regards,
Raj -
Idoc-xi-file scenario. how to display file in html format
I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
In idoc-xi-file scenario....... how to display file in html format ??
Thanks in advance
KumarHi Vijayakumar,
Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
Regards
Kumar -
IDOC-XI-FILE Scenario: Error in ABAP Mapping
Dear All,
I am working on IDOC-XI-Flat FIle scenario in which I am using ABAP Mapping as per document "How To Convert an IDoc-XML
structure to a flat file and vice versa in XI 3.0".
I created one customized Idoc for this. The Idoc is reacing XI but its flat file is not getting created. Its giving me following error:
<SAP:Stack>Error in mapping program Z_ABAP_MAPPING_PACKING_LIST (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference.</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
I have also gone thru threads posted for the same topic earlier but still I am not been to resolve this error.
Please help me out in resolving this error.
Regards,
N.JainHI,
Log saying that, u have problem in the mapping program.
i.e Z_ABAP_MAPPING_PACKING_LIST
the problem is due declaration of data.
i hope that, you have some methods.
those are declared under intialization section in mapping program.
please use start of selection before the method.
other wise, it will come under intilization section.
warm regards
mahesh. -
How to use a existing Business Service in IDoc-File Scenario
Hi Experts,
I am new to XI.
I am working on a IDoc to File scenario where in i am importing the CREMAS.CREMAS03 IDoc from the R/3 System.
When i try to create a Business Service in Configuration Scenario Object in Integartion Directory, i get a message saying "SAP system ID ER1 and client 800 already exist in service | CLNT800ER1".
Can i reuse this Business Servie in my Configuration Object?
If yes, can you please guide me How to go about it?
Thanks for the effort.
Cheers
Gaurav RaghavU may directly use it.
Just select the business service wherever required. It is not necessary that the Business Service is present in ur configuration scenario. But if u still want it, u may add it using "Add to Scenario" option from other configuration scenario or from Objects tab
Regards,
Prateek -
Hallo Everybody,
In one of the requirements,for the interface design which involves IDOC-FILE scenario we have a req as:-
Multiple IDOCs would be sent from SAP R/3 to SAP XI. Each IDOC can have 0-4 segments and for each segment a file needs to created.
The files needs to be FTPed to a location, only if all the IDOCs have been processed successfully.
Requirement:
1) Even if a single IDOC fails,the files should not be FTPed. --> How do we handle this in XI.
2) We need to send a notification from XI, in case any IDOC processing fails.
3) How do we check in XI, if all the IDOCs have been processed successfully.
Please suggest me with some good stategies to resolve this issue.
Appreciations and Rewards in line.
Regards,
YounusHi
Are you planning to use BPM as it suits your requirement.
To collect the idocs in small bunches refer
Collecting IDocs without using BPM
1) Even if a single IDOC fails,the files should not be FTPed. --> How do we handle this in XI.
BPM will allow you to wait for the time all IDOC are processed
2) We need to send a notification from XI, in case any IDOC processing fails.
BPM exception handling will allow this functionality even to the exact field you want to send notification
3) How do we check in XI, if all the IDOCs have been processed successfully.
Set Acknowledgment for IDOC's
refer
Posting multiple IDocs with Acknowledgement
Thanks
Gaurav -
In idoc to file scenario, if XI system is down where do idocs pile up?
In idoc to file scenario, if XI system is down where do idocs pile up (get stuck)
what tcode can I use to reprocess it?Sender System ,Check BD87 .. you will see alll the IDOCs in Yellow state ..
You can reprocess all the IDOCs in go from there .. if only they are in yellow state ...
regards
PS -
Regarding receiver determination problem in IDOC-XI-XML file scenario
Dear All ,
In IDOC-XI-xml file scenario , I have configured SLD , IR . But in ID , after file adapter , reciever agreement configuration when I am doing receiver determination configuration I am not able to insert mapping program in configuration overview of receiver determination as I am not getting "New Specific" option in mapping .
Can anybody suggest what could be the reason behind this .
Thanks in Advance
PrabhatHi PRabhat,
In RCVR determination, you need to select the party & service (as appropriate) save the obeject
then refresh the configuration overview of recr det.
then you can see the partner/service
then you can open it & add the necessary objects.
Regards
Vishnu -
FIle Content Conversion Problem in IDOC-XI-File Scenario
Dear All,
I am doing IDOC-XI-FILE scenario.
I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
The output xml version generated by Reciever file adapter is as below :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
</ns0:MT_SITE_MASTER>
Plz provide me the code I have to write in the file content conversion .
Thanks in advance
Regards
PrabhatIf u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier. Then use the Suppress Logic for the Current Date.
So it will look like this-
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
<CURR_DATE>
<CURRENT_DATE>20051105</CURRENT_DATE>
</CURR_DATE>
</ns0:MT_SITE_MASTER>
So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
CURR_DATE.fieldFixedLengths - 0
CURR_DATE.fixedLengthTooShortHanling - Cut
And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
Hope this solves ur problem.
Regards,
Moorthy
Maybe you are looking for
-
My songs that I bought on my iPod disappeared after I synced it
Last night I had bought songs off iTunes with an itunes gift card. I bought it on my iPod. I then plugged it into the computer and it said it needed to be restored. I then restored it and all my new songs were gone! It is syncing my old songs now.
-
"Export classes in frame x" in AS3: how does it work?
My steps: 1. I have some beefy classes 2. I want my SWF to show a preload anim while it loads these classes 3. Using the "Export classes in frame: " option, I move my classes to frame 10 4. I put a stop(); on the first frame and test w/ the bandwidth
-
Is there and App for the iPad that will show mu GPS position on a world map, even if I'm at sea? Thanks, Tomac
-
In valid Date set in the column
Hi I am facing a problem with the in valid date getting set at the time of updating the record. The problem is , I am fetching the record for update and sending the created date fetched along with other values and the updated date is set to the syste
-
Uccx 9.0 expected wait time returns a -1 value
Guys I am trying to use the expected wait time feature in UCCX, however the value returned is -1 each time this step is executed. All the other feature such as average wait time etc all works, its just the expected wait time that doesnt. Any ideas pl