JMS Sender Adapter with constant values

Hello Friends,
My scenario is,
1. I am having 6 Sender JMS CCs with different Queues
2. One Inbound Proxy to post the data into R/3
Sender (JMS) -
> XI -
> R/3 (Inbound Proxy)
Note: There is no Message Mapping used.
Problem:  When my sender JMS adapter picks the data from JMS Queue then before sending it to Proxy I want to add some more data (lets say a kind of header info) along with the original data.
Reason: Based on this additional data I will process my data in proxy in 6 different ways.
Regards,
Sarvesh

You can use the DynamicConfigurationBean to set constants to the message header:
http://help.sap.com/saphelp_nw04/helpdata/en/45/da2239feb22e98e10000000a155369/frameset.htm
The configuration would be something like this:
key.0 insert http://sap.com/xi/XI/System/ABC XYZ
value.0 123
Regards
Stefan

Similar Messages

  • XI JMS Sender adapter EOIO with serialized messages

    Hello
    I have a customer question.  They would like to use a JMS sender adapter with quality of service EOIO.  There will potentially be multiple messages in a MQ Series queue at the same time, but they want XI to pick up these messages in the correct order.  Is this possible?  The documentation for JMS sender adapter lists the following:
    "Specify the Processing J2EE Cluster Server (Cluster ID).
    This specification stops queue-jumping in the JMS queue. The valid cluster ID is located on the J2EE server – Administrator under Server."
    Does this relate?
    Thank you,
    Harold

    > I have a customer question.  They would like to use a
    > JMS sender adapter with quality of service EOIO.
    > There will potentially be multiple messages in a MQ
    > Q Series queue at the same time, but they want XI to
    > pick up these messages in the correct order.  Is this
    > possible? 
    Yes. Just choose <i>Exactly-onces-in-order</i> for Quality of Service.
    > The documentation for JMS sender adapter
    > lists the following:
    > "Specify the Processing J2EE Cluster Server (Cluster
    > ID).
    > This specification stops queue-jumping in the JMS
    > queue. The valid cluster ID is located on the J2EE
    > server – Administrator under Server."
    When you choose EOIO, the processing can be done by one J2EE server node only. So put the cluster ID of the required server note here.
    Regards
    Stefan

  • JMS Sender Adapter EOIO with different messages in Queue to RFC

    Dear Colleague,
    In one of my scenarios i am using JMS Sender Adapter and Websphere MQ series.
    In my MQ Series Queue i get different Messages with Different Structures.
    for e.g in my MQ Series Queue Q1 i have M1, M2, M3 coming in Order.
    Now i need to doa  Mapping of M1 to a Standard BAPI  B1 call through RFC at the reciever side.
    Now i need to doa  Mapping of M2 to a Standard BAPI B2 call through RFC at the reciever side.
    Now i need to doa  Mapping of M3 to a Standard BAPI B3 call through RFC at the reciever side.
    We are aware that on Receiver side we can have multiple Recievr Determinations.so i can send it to 3 different BAPIs.
    Question:
    But how do i split the Messges which are coming out of MQ series Q from JMS to 3 different Mapping Structures as we knwo that we do not 'Multiple Sender Interface Determinations' from Determined based on the Message which is coming in.
    Hope i have been clear in making myself understand about the problem given above.
    I have alos given below the same in a bit Graphical Form.
    MQ Series --> M3, M2, M1(Messages) --> JMS Adapte(EOIO) --> M1(Message) -> RFC -> B1(Bapi)
                                                             --> JMS Adapte(EOIO) --> M2(Message) -> RFC -> B2(Bapi)
                                                             --> JMS Adapte(EOIO) --> M3(Message) -> RFC -> B3(Bapi)
    Is it possible to achieve the above result. Answers fo the solution are most welcome. These can be also from the new Netweaver Release Versions. If we have the solution to these in New version we will implment the New Netweaver Releases.
    Thanks & Warm Regards
    Venugopal

    Dear Kai,
    if i have 3 MQ series Queues then how are we going to maintain the flow of the Messages in the same order in which has come into MQ series queues.
    this mesans to say that all the Message come in Parallel out from JMS or MQ side and will be mapped onto Reciever side.
    But in my case i wil need to have M1 first M2 second and M3 third.
    This means to say that M1 recived and acknowledged then M2 should come and acknowledged and then M3 should be acknowledged.
    How this will be possible with your solution of making 3 MQ series Queues.
    Please do let me know.
    Thanks
    Venugopal

  • Handling large messages with MQ JMS sender adapter

    Hi.
    Im having trouble handling large messages with a MQ JMS sender adapter.
    The messages are around 35-40MB.
    Are there any settings I can ajust to make the communication channel work?
    Error message is:
    A channel error occurred. The detailed error (if any) : JMS error:MQJMS2002: failed to get message from MQ queue, Linked error:MQJE001: Completion Code 2, Reason 2010, Error Code:MQJMS2002
    The communication channel works fine with small messages!
    Im on SAP PI 7.11, MQ Driver is version 6.
    Best Regards...
    Peter

    The problem solved itself, when the MQ server crashed and restarted.
    I did find a note that might could have been useful:
    Note 1258335 - Tuning the JMS service for large messages or many consumers
    A relevant post as well: http://forums.sdn.sap.com/thread.jspa?threadID=1550399

  • Problem in JMS Sender Adapter

    Hi All,
      I am trying to Pick two different XML types of Messages from a Single Queue.
    For Example :- Despatch Advice and Replishment Proposal.
    Queue Name is : - JMS_XI_Sender
    SAP XI is not allowing me to create two different sender agreements for the same communication channel.
    Service :- BS_JMS
    Interface : - Despatch_Advice_OB
    CC :- JMS_SENDER
    and
    Service :- BS_JMS
    Interface : - Replishment_Proposal_OB
    CC :- JMS_SENDER
    Can any one tell how can SAP XI will differentiate these two messages and sends to two different receivers.

    Hi Rama,
    I am using XML Despatch Advice and Replishment Proposal types .
    Basically I do have one sender which will post Two types of XML messages in to one single MQ Queue.
    SAP XI/PI has to pick that message and then needs to check what is the Value in the "Message Type" Tag .
    I do also have two different Interfaces and Mappings and Two different Receivers.
    Depending on the value in Message Type SAP XI/PI has to check for the Particular Interface and Mapping, finally needs post the message to Particular Receiver
    You need to have defined two different sender agreements with two different Communication channels.
    In the JMS adapter Sender configuration you can mention the Queue name to pick the message . After picking the message the JMS sender adapter need to map it to the correct message type - it is defined by message interface defined in the sender agreement .
    Please let us know if you need any further calrification.
    Regards,
    kishore

  • JMS sender adapter issue for encrypted message

    Hello Folks,
    We have JMS to AS2 interface facing issues when JMS sender channel read the encrypted files placed in MQ queue, messages size is
    increasing to almost double when it reaches PI.
    When sending an encrypted message from MQ to AS2, message is showing in success flag but inbound file size is increasing almost double the size, when compared to message size placed in the MQ Queue. When partner is decrypting the message he is getting total garbage values. But it working fine for unencrypted messages,we are getting the same size as it is in MQ queue.
    Can you please trrough some light on the issue not getting excatly issue is in MQ or JMS sender adapter.
    Kind Regards
    Praveen Reddy

    Hi Praveen,
    the issue seems to be with your encryption/decryption mechanism rather then JMS adapter. if you have encrypted file in JMS queue then channel only pick the file and sent to target (i am assuming there is no tranformation). So it will not alter the file size.
    Please check how the file is encrypted before it places in JMS queue.
    regards,
    Harish

  • File Sender Adapter with FTP protocol

    Hi,
    I implementet a file sender adapter with FTP protocol. There is a problem: the sender processes the files even if they're in use by another application.
    I.E. If another application put files (via ftp) in the sender work directory (that is on ftp), the sender processes those files before their transfer is completed.
    I don't want that this sender in a communication channel in PI 7.1, imports files in the system when they aren't completed yet.
    There are some ways to block sender before it processes incompleted files (in an ftp)?
    Thanks
    Matteo

    Hi,
    File sender adapter provides a check for NFS mode
    +Check this
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.+
    Other approach can be to apply OS level checks
    Regards
    Suraj

  • JMS Sender adapter configuration

    Hi,
    I have a problem in configuring my JMS sender adapter. My source structure is in the form of a FIXED lenght file.
    Its structure is as follows:
    Rec ID                       Required                 Loop repeat 
    SHC                               R                              1
    SCO                               R                              1
    SAM                               O                              n
    SCD                               R                              1
    SCP                               O                              n
    LTX                                 O                              n
    SCC                                O                             n
    SUM                               R                              1
    where R indicates Required record type
              O indicates Optional record type
    1 indicates the record type occurs only ONCE in a record
    n indicates the record may occur 0 to unbounded times in the record.
    This is how I have defined my record set structure in the Module tab of the JMS adapter configuration.
    SHC,1,SCO,1,SAM,,SCD,,SCP,,LTX,,SCC,*,SUM,1
    The problem with this configuration is that the adapter expects the input file in this format
    SHC
    SCO
    SAM
    SAM.
    SAM
    SAM
    SCD
    SCD
    SCD
    SCD
    SCP
    SCP
    SCP
    SCP
    LTX
    LTX
    LTX
    LTX
    SCC
    SCC
    SCC
    SCC
    SUM
    Whereas my input file format has the following structure
    SHC
    SCO
    SAM
    <u>SAM</u>
    SCD
    SCP
    SCC
    SCD
    SCP
    <u>SCP</u>SCC
    SCC
    SCD
    SCP
    SCC
    <u>SCC</u>
    Could please tell me how I can handle this in my adapter config. I have gone through the following How To guide "How to ...Use the Content Conversion Module within the XI 3.0 J2EE JMS Adapter" but dont find how I can do this.
    Cheers.

    HI,
    Please see the below content conversion parameters
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Regards
    Chilla

  • Failed to generate Alert for JMS Sender adapter

    Hi Folks,
                  My scenario is JMS to IDOC..
    I have configured the Alert rules and the alerts are working fine for the Integration engine errors.. and apart from the alert rule there is one more alert rule configured for capturing the alerts of the adapter engine..
    When i provide the queue name as invalid one .. i am able to receive the alerts for the same via alert rule of adapter engine..
    When I force to make the channel to error with the invalid headers of RFH2 (with correct queuename) the channel status is showing error ..but interestingly no alert for the same...
    Now My question here is how to test the generation of  the alerts by forcing the JMS sender channel to error. ? 
    I already checked the report SXMSALERT_LOGREADER for verification but no luck..
    Can some one throw light on this?
    Forgot to mention i am using IBM MQ ...
    Regards
    Rajesh
    Edited by: Rajesh on Jul 8, 2010 10:08 AM

    Hi Raj,
             Thanks for your reply...I am fetching the RFH headers using UDF via Dynamic config only..
    Apart from the configurations errors mentioned for alerts(as i am success in this case)...I am testing if there any data related errors like wrong RFH Headers for JMS sender adapter though the channels showing error status in this case ...but its not throwing the alerts...
    I want to know whether the alert will be triggered for this or not...if not why ..as it should..
    if yes i am unable to get.. what troubleshooting can be done for this...
    if you have any other cases (aprt from config issues)for alert trigger...and also apart from RFH headers case..can u pls share..so that i will try the same..
    MY only question here is why the adapter not trigering the alerts when wrong RFH Headers are sent along the message..but showing the channel status as red..(is it a bug ?)
    Thanks in Advance
    Rajesh

  • Cant do a file get from external server using file sender adapter with ftp

    Hi all,
    Up until now our company has only used the file sender adapter with ftp protocol to get a file from our XI server for processing and input the file into an integration process
    I have a requirement to do an ftp file get from an external server
    From our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...).  So all firewall issues and communications are fine
    Unfortunately I cannot currently pull files from the external server using the XI file adapter with ftp protocol from the XI development server AWB017
    FTP Connection Parameters: External server name using port 21, Data Connection is Passive, No security, I supply a userid and password
    Processing Parameters: Processing Mode is Archive (I tried test but this did not work either)
    No messages appear in the RWB
    Is there something else that I need to set up in order for the external ftp get to work via the XI file adapter?
    Regards,
    Mike

    Thanks for your responses.
    I have found the error messages in the File Adapter Monitor
    Scenario 1
    When I prefix the source directory with a forward slash, eg <b>/Folder/Subfolder</b> the error message is as follows
    <b>EST: Error: Error connecting to ftp server 'ip address': FTPEx: /Folder/Subfolder: The system cannot find the path specified</b>
    Scenario 2
    When I DO NOT prefix the source directory with a forward slash, eg <b>Folder/Subfolder</b> a different error message is returned
    <b>Error: Retrieving file 'FILENAME.XML' failed unexpectedly: FTPEx: Folder/Subfolder: The system cannot find the path specified</b>
    At least in this scenario the adapter has been able to identify the file on the external FTP site but cannot retrieve it
    Questions
    I thought that the backslash prefix for the source directory was mandatory but I am receiving an error in each scenario
    I receive the same error message whether the Processing Mode is 'Archive' or 'Test'
    The logs on the external ftp server seem to indicate that I am simply connecting, sending username and password then quiting straight away. I am not issuing any commands that they can see
    I thought that being a Sender adapter it would inherently execute a Pull or Get command
    To recap, from our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues, communications, userid and password are fine
    Has anyone experienced these issues?
    Please advise on next course of action?
    Regards,
    Mike

  • File Sender adapter with File content conversion

    Hi
    I'm having problems picking up a flat file that has some junk characters in the file.
    I'm usign a file sender adapter with file content conversion. The adapters shows the following error-
    Conversion of complete file content of  to XML format failed around position 0: sun.io.MalformedInputException
    this is the sample data with junk char's -
    A20099201009999009999060815160505051700130008151vÿÿÿÿ³  r 0OK0476                     31N016227241915840IV  00840 ÿÿÿ ÿ ÿÿÿÿÿÿÿÿ ÿ ÿÿÿ             
    There is not much in the file content conversion. This is a fixed length file, I'm just pickign it up & passing it to an inbound proxy. All my processing is in the proxy.
    I'd appreciate any suggestions.
    Thanks
    Rachana

    Hi Rachana,
    Do you use a specific "encoding" like UTF-8 or ISO-8859-1 in your Sender CC?
    To be simple, Encoding is linked to country, you can find all "iso-nnnn" via google or some of them in sap help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Moreover, with your source file opened thanks to Notepad (for instance), use option "save UNDER", you will the encoding use by your file
    Mickael

  • Content conversion in XI using JMS Sender Adapter.

    Hi,
    I have scenario where i will get fixed length flat file from MQ and i need to create an IDOC.
    The flat file structure is like below.
    HEADER001002003 (Occurs once)
    DELIVERY0000111112222  (Min - 1 and Max - Unbounded)
          Detail33333344444455555  (Min - 1 and Max - Unbounded)
    NOTE -- Detail record is sub level record of DELIVERY.
    I would like to do content conversion in JMS SENDER ADAPTER.
    Did anybody worked on similar scenario?
    I would appreciate ,if anybody provides info on how to do it.
    Regds,
    Jagdish.

    Hi
    Please have a look at these threads..u get an idea abt the content conversion.
    JMS Adapter: Content Conversion
    https://forumsn.sdn.sap.com/click.jspa?searchID=2171243&messageID=3319704
    JMS Adapter Content Conversion
    JMS Content Converrsion
    Hope these help you!

  • JMS sender adapter is not picking up message from MQ

    Hi Experts,
    I have configured the JMS sender adapter for getting message from Websphere MQ. In RWB the adapter and the communicaiton channel all looking good. The trace file tells me the connection to the queue has been established.
    But the problem is this JMS sender adapter is not picking up message from the Queue defined on the MQ site.
    Any Idea what could be wrong?
    Thanks!
    Jason
    Jason

    Hi,
    1) Can you activate the JMS adapter again ( edit save and activate it )
    2) Check whether the right Queue is addressed.
    Regards
    Agasthuri Doss

  • Doubts in JMS Sender adapter configuration (SonicMQ JMS Provider)

    Hi All,
    I am doing a TIBCO--> XI integration using JMS sender adapter. Adapter status is as follows..
    <b>"Sender channel. Details: (No detail information set.)"</b>.
    XML Msg in TIBCO-ems queue which JMS adapter access is as follows.....
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Studdetails xmlns:ns0="http://abc.com/xi101/XSLTmap">
       <Records>
          <student_ID>
             <fname>abc</fname>
             <lname>efg</lname>
             <DOB>11/09/1980</DOB>
             <marks>
                <science>90</science>
                <maths>78</maths>
                <lang>80</lang>
             </marks>
          </student_ID>
       </Records>
    </ns0:MT_Studdetails>
    <u>My Queries...</u>
    what will be the Msg selector entry for my JMS sender Adapter? Is it MT_Studdetails???
    My sender adapter is green in RWB Adapter Monitor, but I am not able see my msg in SXMB_MONI. why it is so??
    regards,
    Raks

    Hi,
    Did you follow the how-to guide available at SAP Marketplace to deploy the JMS Adapter. If so, i believe the information given in that guide is incomplete.
    Once you have installed the JMS Driver, you must deploy the Java libraries on the J2EE server so that the JMS adapter can access the required Java classes at runtime.
    If you use MQSeries 53x.xxx, you must enter the following JAR files in aii_af_jmsproviderlib.sda.
    com.ibm.mq.jar
    com.ibm.mqbind.jar
    com.ibm.mqjms.jar
    connector.jar (use the JAR file from the J2EE client directory)
    and if ur question is, "Where do I get the Java Library from "
    The required Java libraries are product-specific and can be obtained from either the product vendor or other providers.
    And i guess the 4 jar files should be enough. Just remember to add these 4 jar files to 'provider.xml' file inbetween the <jars>..</jars> tag.
    Follow the instructions as per the guide,
    https://websmp205.sap-ag.de/~sapdownload/011000358700003994312004E/HowTo_ConfigExtAdapters.pdf
    But just remember to have all the 4 jar files in aii_af_jmsproviderlib.sda
    Regards,
    Abhy

  • NameNotFoundException in JMS Sender Adapter

    Hi,
    I am doing JMS to File Scenario.
    In the JMS Sender Adapter, I am getting the following error.
    Channel error occurred. Detailed error (if any) : com.sap.aii.adapter.jms.api.connector.ConnectorException: Error looking up connection factoryQueueConnectionFactory, for profile: ConnectionProfile of channel: JMS_Senderon node: 215438950 having object id: 8a69f5589d733e01b34a6dd53c6c4acf: javax.naming.NameNotFoundException: QueueConnectionFactory in QueueConnectionFactory not found at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createConnectionFactory(JndiConnectorImpl.java:134)
    Can someone let me know why this error is happening and the solution ?
    Thanks in advance,
    Neena

    Hi Neena,
    What JMS server are you using?
    This seems the parameter settings in JMS sender is incorrect. check this link for vendor specific details
    http://help.sap.com/saphelp_nw04/Helpdata/EN/c1/739c4186c2a409e10000000a155106/content.htm
    Hope the JMS drivers were installed properly!!!
    Regards
    Suraj

Maybe you are looking for

  • Validate Terms of Payment in MIRO against vendor master

    Dear All, I have a requirement to Validate Terms of payment in MIRO with Vendor master data. I am using INVOICE_UPDATE  BADI to check if Terms of payment in MIRO is same as Vendor master table LFB1, However I also need to check days which is not in L

  • Functions in File ring popup position should be improved

    Hello, one of the welcome new features of CVI2013 is the ring control Functions in File in the toolbar allowing to quickly jump to a function. Unfortunately, if there are several functions in a file, "quickly" is limited: In this case the ring contro

  • Could anyone explain this to me

    I don`t understand the two code that have bolded and how come he need to subtract ten . Could anyone rewrite this two code in more easier way. import java.io.FileReader; import java.io.BufferedReader; import java.io.*; import java.lang.*; public clas

  • Overprint option

    Hi, Is there any option available to set overprint for selected frame? We have encountered a problem in the overlayered image frame on the tinted background. In output-preview mode in PDF shows knockout result for the overlayered image frame. SS

  • I have CS5 a client uses CS5.5 please help...

    I have CS5 but my new client uses CS5.5 is there any way to open their files in CS5 or is there any way they could save it another way on their machine so I can open it in CS5. I do not want at all to upgrade to CS5.5 right now. Is there any other wa