Calling proxy  according to jms attribute in Dynamic Configuration

Hello,
I have jms to proxy integration. I defined  additional jms parameters in Adapter -Specific Message Attribute in JMS senderadapter. And I can retrieve this field in dynamics configuration in SXMB_MONI. Process should be continued as such:
If  "DCJMSMessageProperty0" is 1, proxy should be called for invoice,
If  "DCJMSMessageProperty0" is 2, proxy should be called for  Claims.
How can i do it?
Please help
Thanks for your help
Nurhan

Thanks  for your reply, but i think so that i misstold. I mean that i have one jms queue in  ibm websphere mq. In this queue exist multiple messsage format. I defined a addtional  jms message attribut in jms sender adapters  in PI. I have two jms sender adapters.
According to this additional jms message properties should be called different proxy:
If "DCJMSMessageProperty0" is 1, proxy should be called for invoice,
If "DCJMSMessageProperty0" is 2, proxy should be called for Claims.
Also this configuration should be done in jms sender adapter.
Thanks in Advance
Nurhan

Similar Messages

  • How to use the Dynamic Configuration Bean

    Hi experts,
    im currently doing a file to mail scenario.
    i want the name of the input file as the subject of the mail.
    i want to establish this using the Dynamic Configuration bean
    my first question is:
    key.1 <b>read</b> http://sap.com/xi/XI/System/Mail THeaderSUBJECT
    value.1 message.messageID
    this reads the value of the message ID into the attribute THeaderSUBJECT
    but what does this do?
    key.1 <b>write</b> http://sap.com/xi/XI/System/Mail THeaderSUBJECT
    value.1 message.messageID
    when i use this it has no effect atall.
    my second question.
    I have my input filename in the FileName attribute in Dynamic configuration how can i read it into THeaderSUBJECT attribute.
    Appreciate any suggestions.

    Hi Satish,
    Yep i know its possible via an udf in Message mapping but i dont have an MM in my scenario. Since im not parsing thru the input data since its an excel file, so im transferring the file using the following method
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    and in this method if i include an MM it will give me a mapping exception.
    So i have to use this bean somehow and try to accomplish what we do in the udf.

  • Access/set dynamic configuration in client/server abap proxy

    Hi,
    I have 2 question regarding reading/setting dynamic configuration in ABAP proxies:
    1) Is it possible to set dynamic configuration objects in a server abap proxy (SAP --> XI)?
    When looking at the class CL_PROXY_FRAMEWORK is looks as if it is possible. This class has en attribute IF_XMS_MAIN~DY which is a reference to the class CL_XMS_MSGHDR30_DYNAMIC.
    I'm not sure if I'm supposed to try and access the dynamic configuration objects via this class or if I'm supposed to use the GET_PROTOCOL method in some manner as suggested by:
    http://help.sap.com/saphelp_nw04s/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm
    Above link is for client proxies not server, and I've been unable to find any documentation on this for server proxies.
    2) The same question goes for server proxies (XI --> SAP), though now I would like to set some dynamic configuration data.
    This I believe should be done using get_protocol( if_wsprotocol=>ws_header ) as indicated by before mentioned link.
    However in both cases I'm not sure of if it is indeed possible and which road to choose for sure. So a hint or 2 would be really nice.
    Best Regards,
    Daniel
    ps. maybe I should just mention that I am pretty new to the ABAP world, so bear with me.

    The link that you gave does give you an example for both server and client proxies:
    Accessing Protocol Classes for Client Proxies
    In client proxies, you access the protocol class by using the GET_PROTOCOL method. Below is an example for the IF_WSPROTOCOL_PAYLOAD protocol:
    DATA:
    lo_clientProxy      TYPE REF TO co_clientProxy,
    lo_payload_protocol TYPE REF TO if_wsprotocol_payload
    lo_payload          TYPE REF TO if_ws_payload.
    CREATE OBJECT lo_clientProxy.
    Get Protocol Class Using Method GET_PROTOCOL
    lo_payload_protocol ?=
           lo_clientProxy->get_protocol( if_wsprotocol=>payload ).
    CALL METHOD lo_clientProxy->execute_synchronous
                EXPORTING output  = ls_request
                IMPORTING input   = ls_response.
    Use Protocol Methods
    lo_payload = lo_payload->get_sent_request_payload( ).
    Accessing Protocol Classes for Server Proxies (XI Only)
    Within the implementation of a server proxy, you get the protocol class by using the CL_PROXY_ACCESS=>GET_SERVER_CONTEXT( ) method:
    DATA:  lo_server_context   TYPE REF TO if_ws_server_context,
           lo_payload_protocol TYPE REF TO if_wsprotocol_payload.
    lo_server_context   = cl_proxy_access=>get_server_context( ).
    lo_payload_protocol =
         lo_server_context->get_protocol( if_wsprotocol=>payload ).

  • Dynamic Configuration JMS

    Hi,
    i am trying to use dynamic configuration variable DCJMSMessageQueue as a condition for determining the receiver within the Receiver Determiniation. I can see the value in the DCJMSMessageQueue, but the condition is not applied.
    Have anyone tried to use this variable within the Receiver Determination (SP14)?
    Thnx in advance.
    Regards, Erik Hubers

    Hi Erik,
    I'm using JMS Channels and Adapter-specific attributes quite a lot (in my case it's DCJMSCorrelationID).
    So far I never had the requirement to use it in conditions in a Receiver Determination, but I set up
    a Receiver Determination to test it and it worked with SP15.
    Now what was a little strange is that the expression only worked if I set it up in the following way:
    DCJMSMessageQueue = queue:///EVENT_EB5331?targetClient=1
    where my queue name is solely EVENT_EB5331 (I'm using WebSphere MQ in native mode).
    Maybe that solves your problem (I actually copied this value, because it is the way it is written in the DynamicConfiguration
    piece of the XI message).
    There is another issue I had with the JMS Adapter Specific Attributes in SP14.
    The namespace of the attributes was implemented wrong (at least the one for DCJMSCorreleationID). Instead of
    'http://sap.com/xi/XI/System/JMS'
    it was just 'JMS'.
    Now if the condition is - by any reason - evaluated against the correct namespace (the long one)
    this could also be a reason why it is not working.
    Check the values in the DynamicConfiguration and have a look at the Trace.
    You should find something like this in the R E C E I V E R  D E T E R M I N A T I O N part of it:
    <Trace level="3" type="T">...call rule engine for Condition %CL_SAI_SWF_RULE_ENGINE.MSG_GET_SYSTEM
    (MSG=&_MSG&;SYSFIELD="DCJMSMessageQueue";
    SYSNSP="http://sap.com/xi/XI/System/JMS")% = queue:///EVENT_EB5331?targetClient=1</Trace>
      <Trace level="2" type="T">......attachment XI_Context not found</Trace>
      <Trace level="3" type="T">......extracting from attachment: DCJMSMessageQueue =
    queue:///EVENT_EB5331?targetClient=1</Trace>
      <Trace level="2" type="T">......extracting values found: 1</Trace>
    Compare the namespaces there with the one in the DynamicConfiguration.
    If there is a mismatch upgrade to SP15 or open an OSS Message.
    I hope that helps...
    regards,
    Peter

  • Dynamic Configuration is not called in End to end processing

    Hi,
    I am working on scenario Proxy to File. From the source side, they are sending the target file name in the proxy. So for that we are implementing the dynamic configuration.When the proxy is triggered from ECC, the dynamic conf is not called. I am not able to see the Dynamic configuration in SXMB_MONI. But when i send the same payload through RWB, i m able to see the Dynamic conf in SXMB_MIONI and the target file is getting generated.
    Please suggest the solution for this.
    Thanks,
    Soumya.

    Hi,
    I feel the dynamic configuration should be accessed at the runtime and not generated.  We have had similar scenarios where we built the file name at runtime accessing the payload.
    Try using the below UDF for a dummy field on target side and the field carrying file name on source side..
    public String setDynamicFileName(String Key, String Value, Container container)throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        u201Chttp://sap.com/xi/XI/System/Fileu201D,
        u201CFileNameu201D);
    conf.put(key,value);
    return("");
    This should work as long as you are passing a value in source field.
    Thanks
    Amit

  • Dynamic configuration bean in JMS Adapter

    Hello Experts,
    My scenario is JMS(Active MQ) to File.Its just Passthrough scenario and no mapping involved.
    Filename will be coming in one of the JMS Property (say businessId) and I need to set this filename to file adapter.
    I have refered the stefan's blog and used the Dynamic configuration bean module in sender JMS adapter.
    getFilename key.1 write http://sap.com/xi/System/JMS DCJMSMessageProperty4
    getFilename value.1 module.filename
    setFilename key.1 read http://sap.com/xi/System/File FileName
    setFilename value.1 module.filename
    But required filename is not populated in the target File.Any other configuration is missing here?

    Hi Karthiga
    Did you set the ASMA properties in both your sender JMS channel and receiver File channel?
    For the JMS adapter, as shown below, you will need to enter the DCJMSMessageProperty4 into the table
    Configuring the Sender JMS Adapter - Configuring the JMS Adapter in the Integration Directory/PCK - SAP Library
    If you want to set additional JMS message attributes, select Specify Additional JMS Message Properties (Maximum of 10).
    In the table, enter the names of the JMS message properties whose values are to be included in the message header of the PI message.
    The technical names of the additional attributes are DCJMSMessageProperty0, DCJMSMessageProperty1, ..., DCJMSMessageProperty9.
    For the File adapter, you need to check the ASMA FileName attribute.
    Once you have this configured, in your message, you should be able to see that the value is in the DynamicConfiguration section of the SOAP header.
    Rgds
    Eng Swee

  • Dynamic configuration in Sync/Async bridge in JMS

    Hi
    Scenario:
    Portal sending request to JMS MQ and getting Response using sync/Async Bridge.
    I have to written a UDF which will capture the value for cust_uid from request mapping and store it in dynamic configuration
    And when the response comes from JMS MQu2026.this value gets populated in response mapping.
    I have tested the UDF in a dummy Soap2rfc scenario and its working fine.
    But when used in Sync/Async Bridge, the dynamic configuration  fails.
    For Sync/Async Bridge, there are 2 channels 1) Sender JMS 2) receiver JMS.
    The synchronous request is converted to an asynchronous request in the module processor and sent.
    The asynchronous system sends a response to a sender adapter. In the module processor of the sender adapter, this response is forwarded to the module processor of the original receiver adapter, where it is sent as a synchronous response of the waiting synchronous request.
    Please  suggest
    Regards
    Abhijit

    Hi Abhijit,
    Okay, so your data extraction/insertion is working fine for a simple synchronous request responser call.
    I suppose this is working fine because your receiver adapter copies some part of the request message (at least the dc header) to the response message. (But I don't think this always works for all the adapter types). It is not working for the sync-async bridge because there are two unrelated messages in this case.
    In order to copy the dc header from the first message to the second message, I think you can use the DynamicConfiguraitionBean module to store the dc header value in the module data and use this module again to recover it and set it to the second message. The whole process is somewhat complicated, but I will sketch the approach below.
    First, let's call the first use of DCB the store step and the second the recover step. These store and recover steps must take place in the same module sequence so that they can use the module data to pass data from the first message to the second message. Furthermore, the store step must occur after the cust_id value is extracted into the dc header. So, your configuration must be placed in the receiver adapter side. Assuming the request message with the filled dc header coming into the module sequence, the first DCB module can be placed before the ROB module to store the dc header value in the module data. And the second DCB module can be placed after the WRB module to recover the dc header value from the module data and set it the dc header of the response message.
    I hope this will work.
    Regards, Yza

  • IDOC to JMS with Dynamic Configuration.

    Dear Experts,
    IDOC -> SAP PI -> JMS.
    We will receive a value in the IDOC-message, based on which the target queue is to be defined.
    1) So which property in Dynamic Configuration will help me?
    2) Will it be the normal procedure (UDF in Message Mapping and then select the ASMA attribute in receiver channel)?
    I went through: http://wiki.sdn.sap.com/wiki/display/XI/FAQ+J2EEJMS+Adapter (question 2.9 and 2.8)
    But in one thread it was mentioned that such configuration (of queue) is not possible.
    Any idea on how to proceed?
    ~Thanks.

    Hello Stefan,
    Thank you for the response.
                        -----> Company1
    IDOC -> SAP PI   -----> Company2
                        -----> Company3
    We have the above integration in place. Now without ASMA, we will have to create three different JMS Channels; one in each of the Business Service. This would mean that in future if the receivers increase, the corresponding channels have to be increased
    But now I am confused as to what the Q 2.9 in this wiki link means: http://wiki.sdn.sap.com/wiki/display/XI/FAQ+J2EEJMS+Adapter
    ~Thanks

  • Proxy to file using dynamic configuration

    Hi Frnds,
    I  have a scenario ABAP_Proxy-XI-File, here in the proxy I am getting a pdf file with xml as attachment now I need to save the pdf file to the target folder with the name availble in one of the fields of attached xml file.
    I have used Adapter specific attributes option for filename substitution but getting the follwoing error:
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    Please anyone can help me in overcoming this issue.
    Regards
    shiva

    U have a limitation here. At XI u can read only 1 file (pdf or xml). Bcoz receiver file adapter will not support attachment. pdf is required bcoz u need to transfer it to receiver. Xml is also required bcoz the directory name is inside that xml
    The workaround could be creating an adpater module that passes the directory name as well. U should send pdf file with xml as attachment.
    If u have the dir name, then the dynamic configuration code should be like this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,MappedDirectoryName);
    This MappedDirectoryName should be the name passed through payload. The receiver file communiation channel must have dummy dir name
    Regards,
    Prateek

  • Dynamic Configuration from Client ABAP Proxy

    Hello Experts,
    Is it possible somehow to set Dynamic Configuration values to Message Header when calling Client ABAP Proxy from SAP system?
    Best Regards

    I managed to get the dynamic header configuration at least with inbound proxies:
        DATA:
            server_context TYPE REF TO if_ws_server_context,
            proxy_framework TYPE REF TO if_proxy_framework,
            internal_protocol TYPE REF TO if_wsprotocol_internal,
            lo_inb_pxy TYPE REF TO cl_xms_inbound_proxy_plsrv,
            lo_dyn_header TYPE REF TO if_xms_msghdr30_dynamic.
          server_context = cl_proxy_access=>get_server_context( ).
          internal_protocol ?= server_context->get_protocol( 'INTERNAL' ).
          lo_inb_pxy ?= internal_protocol->get_framework( ).
          lo_dyn_header ?= lo_inb_pxy->xmb_message->get_dynamic_header( ).

  • Use dynamic configurations inside an abap proxy

    Hi,
    is it possible to set dynamic configurations inside an abap proxy?
    Inside an abap-mapping I can use "CALL METHOD DYNAMIC_CONFIGURATION->SET_RECORD".
    What's up with an abap proxy?
    Regards
    Wolfgang Hummel

    Hi,
    Not Possible.
    Thanks!

  • ALSB-calling proxy from another proxy

    hello,
    I am calling a proxy service by another proxy service which is listening to JMS queue. The called proxy service is used to invoke a busiiness service.
    I am using tcpmon for testing purpose. If i removed the second proxy and then put a message to JMS it's invoking my business service but if i add the second proxy i am not getting any output.
    For second proxy i am using local transport. Might be the configuration i am giving is not able to pass the message to second proxy.
    I searched a lot but could found anything sustantial !
    Could anybody please help.
    Thanks & Regards,
    Aruna

    If you don't have this yet, put an error handler on the first proxy, at the top level. Log $fault in the error-handling stage. See if you get any good information in the logs. You probably also want to add logging in your second proxy, an entry first thing in the request pipeline, and log $fault in an error-handling stage.
    You should be able to get some kind of hints from the information that gets logged when you do that.
    Meghan

  • My phone has been losing calls and according to the apple store i need to reset it due to a software fault - i have done this and still have the same problems. how do i reset the phone without reinstalling the soft ware fault by way of icloud backup

    my phone has been losing calls and according to the apple store i need to reset it due to a software fault - i have done this and still have the same problems. how do i reset the phone without reinstalling the soft ware fault by way of icloud backup

    Well, it appears that your backup is corrupt, thus causing your issue. So, you'll have to restore as a new device, & not from backup. Follow this by syncing your content back to your phone:
    http://support.apple.com/kb/ht1414
    Do not restore from backup.

  • Need Dynamic attributes for XI adapter to use in Dynamic Configuration ..!!

    Hi Friends,
    We are planning send message to different receivers through XI adapter by using Dynamic Configuration.
    Can anyone please tell me what are the dynamic attributes used for XI adapter.
    In my scenario, I want to pass the Service Number and Path prefix of XI adpater dynamically by using sender ID from Idoc payload.
    I know how to use the dynamic configuration UDF in message mapping. But I don't know the dynamic attributes which we can pass to Service Number and Path prefix of XI adpater.
    Kindly suggest ..
    Thanks
    Deepthi.

    Hi Sourabh,
    >> You need to set these attributes explicitly in the adapter configuration..
    Can you please elaborate on this like how to implement this? Do we need to use any module configuration in the adapter?
    We will use XI adapter only while sending the data directly from IE without using any feautures of AE (like adapters, modules etc). It is like directly sending data from ABAP stack without using J2EE stack. That is the reason we can't use any Modules in XI adpater and it is in disabled by default.
    When I checked in SXMB_MONI.. as you said details are found in
    - <SAP:Attribute>
      <SAP:Name>host</SAP:Name>
      <SAP:Value>10.190.25.16</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>httpDestination</SAP:Name>
      <SAP:Value />
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>path</SAP:Name>
      <SAP:Value>/rcvA/receiver</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>port</SAP:Name>
      <SAP:Value>8210</SAP:Value>
      </SAP:Attribute>
    XI adapter uses mainly three parameters Host, Port and Path.
    I want to pass any two of these values dynamically to achieve my solution. Can you please suggest your solution how we can implement it.
    -Deepthi.

  • Can we call proxy communication channel of type XI in user defined function

    HI ,
    can any body tell whether we call proxy communication (type xi) in an user defined function
    regards
    sandeep

    Hi,
    The Proxy is an abap coding only. 
    Hence it can be called from anywhere in R/3 region.
    But we need to ensure that the SPROXY settings and proper linking between XI & R/3 are established.
    I think, we can get more clarity on this from the Netweaver forum rather in R/3 ABAP.
    Regards,
    Ramani N

Maybe you are looking for

  • Macbook will not boot up after running Software Update (Couldn't fix it)

    Hi there, I also have been experiencing some problems after running Software Update (Security update + Java) a couple of days ago. Similarly to Jandaf (http://discussions.apple.com/thread.jspa?messageID=9000023) I have only the gray start up screen +

  • Apple Mail, Photo Browser, Attachments and Yosemite

    OK, Help.  Anytime I want to insert a photo from my iPhoto Library into Apple Mail via Photo Browser in  Yosemite Mail, it crashes. My preferred method - Via add attachments - Finder/Pictures/Iphoto library doesn't work anymore. It now says Open iPho

  • Using WMV on a Website Won't Work...

    I'm trying to open a video on a website (no, not that kind of video...) and it uses WMV. So I have tried downloading it for Mac and it doesn't work. I also tried Flip4Mac and VLC but nothing is working. How do I download something to get this video t

  • Import Purchase Process

    Dear Gurus, Can anybody explain the Import purchase Cycle Process with details. Like, what need to happen at the stage of PR, PO, GR, IV and how to make set-off entry of CVD etc. Thanks inadvance. Regards, Venkat

  • How to stop updates to contacts from happening on all family members' iPhones?

    We recently upgraded our LGENV2 phones to iPhones (one iPhone 5, two iPhone 4ss, and one iPhone 4).  Three of us transferred our contacts to our phones at the Verizon store.  One of us used Backup Assistant to backup the contacts, then downloaded the