Problem with Dynamic Configuration in XSLT mapping..!!

Hi friends,
Working first time with xslt map.I am doing a Idoc to File scenario in which I need to pass Idoc number as the file name dynamically. Right now I am just trying to send some constant value 'ABCD' to go in dynamic attribute filename.
I used the code which has been provided over here.
[http://help.sap.com/saphelp_nw04/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/frameset.htm]
I just changed the "Directory" with "FileName" in the code. It is not generating the dynamic attribute http://sap.com/xi/XI/System/File
This is my xsl code. Please suggest me If iam doing anything wrong.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:map="java:java.util.Map" xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration" xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
     <xsl:output indent="no"/>
     *<xsl:param name="inputparam" select = "ABCD"/>*
     <xsl:output method="text" encoding="utf-8"/>
     <xsl:template match="/">
          <!-- change dynamic configuration -->
          <xsl:variable name="dynamic-conf" select="map:get($inputparam, 'DynamicConfiguration')"/>
          *<xsl:variable name="dynamic-key" select="key:create('http://sap.com/xi/XI/System/File', 'FileName')"/>*
          <xsl:variable name="dynamic-value" select="dyn:get($dynamic-conf, $dynamic-key)"/>
          <xsl:variable name="new-value" select="concat($dynamic-value, 'subfolder\')"/>
          <xsl:variable name="dummy" select="dyn:put($dynamic-conf, $dynamic-key, $new-value)"/>
          <!-- copy payload -->
          <xsl:copy-of select="."/>
     </xsl:template>
     <xsl:template match="/">
Waiting for your answers.
Thank you.
Deepthi.

Hi Stefen,
I tried the way you suggest but still I couldn't able to see the Dynamic Configuration attribute in SOAP document. I tried for Idoc number and even tried by passing just a value 'abcd' like below.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:map="java:java.util.Map" xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration" xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
     <xsl:output indent="no"/>
     <xsl:output method="text" encoding="utf-8"/>
     *<xsl:param name="inputparam"/>*
                *<xsl:param name="new-value">*
  *<xsl:value-of select="/WMMBID01/IDOC/EDI_DC40/DOCNUM" />*
  *</xsl:param>*     
     <xsl:template match="/">
          <!-- change dynamic configuration -->
          <xsl:variable name="dynamic-conf" select="map:get($inputparam, 'DynamicConfiguration')"/>
          <xsl:variable name="dynamic-key" select="key:create('http://sap.com/xi/XI/System/File', 'FileName')"/>
          <xsl:variable name="dummy" select="dyn:put($dynamic-conf, $dynamic-key, $new-value)"/>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:map="java:java.util.Map" xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration" xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
     <xsl:output indent="no"/>
     <xsl:output method="text" encoding="utf-8"/>
     *<xsl:param name="inputparam"/>*
                *<xsl:param name="new-value" select="abcd">*
   *</xsl:param>*     
     <xsl:template match="/">
          <!-- change dynamic configuration -->
          <xsl:variable name="dynamic-conf" select="map:get($inputparam, 'DynamicConfiguration')"/>
          <xsl:variable name="dynamic-key" select="key:create('http://sap.com/xi/XI/System/File', 'FileName')"/>
          <xsl:variable name="dummy" select="dyn:put($dynamic-conf, $dynamic-key, $new-value)"/>
Any suggestions please.
Thanks
Deepthi.

Similar Messages

  • Problem with dynamic configuration in PI 7.0 (SP 21)

    We're trying to set a dynamically configurable parameter (UrlParam in plain http adapter) in a java mapping and when calling,   via proxy, getting the following error returned<br />
    <p />
    <br />
    &lt;?xml version="1.0" encoding="utf-8" ?&gt;<br />
    - &lt;asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"&gt;<br />
    - &lt;asx:values&gt;<br />
      &lt;SYSTEMFAULT href="#o284" /&gt;<br />
      &lt;/asx:values&gt;<br />
    - &lt;asx:heap xmlns:xsd="http://www.w3.org/2001/XMLSchema"<br />
    xmlns:abap="http://www.sap.com/abapxml/types/built-in" <br />
    xmlns:cls="http://www.sap.com/abapxml/classes/global" <br />
    xmlns:dic="http://www.sap.com/abapxml/types/dictionary"&gt;<br />
    <br />
    - &lt;cls:CX_AI_SYSTEM_FAULT id="o284"&gt;<br />
    - &lt;CX_ROOT&gt;<br />
      &lt;TEXTID&gt;F63AFF63DBE4BB4786A7F52CC4167145&lt;/TEXTID&gt;<br />
      &lt;PREVIOUS /&gt;<br />
      &lt;KERNEL_ERRID /&gt;<br />
    - &lt;INTERNAL_SOURCE_POS&gt;<br />
      &lt;PROGID&gt;95&lt;/PROGID&gt;<br />
      &lt;CONTID&gt;3304&lt;/CONTID&gt;<br />
      &lt;/INTERNAL_SOURCE_POS&gt;<br />
      &lt;/CX_ROOT&gt;<br />
      &lt;CX_STATIC_CHECK /&gt;<br />
    - &lt;CX_AI_SYSTEM_FAULT&gt;<br />
      &lt;CODECONTEXT /&gt;<br />
      &lt;CODE&gt;PLAINHTTP_ADAPTER.ATTRIBUTE_MISSING_PARAMS&lt;/CODE&gt;<br />
      &lt;ERRORTEXT /&gt;<br />
      &lt;LANGUAGE /&gt;<br />
      &lt;/CX_AI_SYSTEM_FAULT&gt;<br />
      &lt;/cls:CX_AI_SYSTEM_FAULT&gt;<br />
      &lt;/asx:heap&gt;<br />
      &lt;/asx:abap&gt; <br />
    <p />
    <br />
    The java code in the mapping is as follows:<br />
    <br />
    The java code in the mapping is as follows:<br />
    /*<br />
    Created on 07-Jun-2010<br />
    *<br />
    To change the template for this generated file go to<br />
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments<br />
    */<br />
    package uk.gov.communities.finance; <br />
    <br />
            import java.io.InputStream;<br />
    import java.io.OutputStream;<br />
    import java.util.Map;<br />
    <br />
    import com.sap.aii.mapping.api.DynamicConfiguration;<br />
    import com.sap.aii.mapping.api.DynamicConfigurationKey;<br />
    import com.sap.aii.mapping.api.StreamTransformation;<br />
    import com.sap.aii.mapping.api.StreamTransformationException; <br />
    <br />
    /**<br />
    @author Mark<br />
    *<br />
    To change the template for this generated type comment go to<br />
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments<br />
    */ <br />
    <br />
    public class PaymentGatewayRequestMap implements StreamTransformation {<br />
            /** This Map parameter is for the Method setParameter() */<br />
            Map param=null;<br />
            /** This method should be used while the Class implements<br />
    StreamTransformation interface<br />
             *<br />
    @param param - A Map object<br />
             */<br />
            public void setParameter(Map param){<br />
                    this.param=param;<br />
            }<br />
    <br />
    /**<br />
    This method will be called by XI to execute Java Mapping. <br />
    @param in - The InputStream which has the source message from CRM <br />
    @param out - The OutputStream which has the target message to ProFinance <br />
    */ <br />
    public  void execute (InputStream in, OutputStream out) throws
    StreamTransformationException { <br />
    String urlParamOne = null; <br />
    try{ <br />
    DynamicConfiguration dynCon = (DynamicConfiguration)param.get("DynamicConfiguration");  <br />
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP","myValueHere"); <br />
    String response = ""; out.write(response.getBytes()); <br />
    } <br />
    catch(Exception e){<br />
                            throw new RuntimeException(e.getMessage());<br />
                    }<br />
            }<br />
    }<br />
    <p />
    <p />
    <p />
    Looking at the call in SXMB_MONI there's no sign of the dynamic configuration stage anywhere but we are seeing the following in the response message:
    <p />
    <br />
    &lt?xml version="1.0" encoding="UTF-8" standalone="yes" ?&gt;<br />
    -&lt !--  Call Adapter <br />
      --&gt;<br />
    - &lt;SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"&gt;<br />
    &lt;SAP:Category>XIAdapter&lt;/SAP:Category&gt;<br />
      &lt;SAP:Code area="PLAINHTTP_ADAPTER"&gt;ATTRIBUTE_MISSING_PARAMS&lt;/SAP:Code&gt;<br />
      &lt;SAP:P1 /&gt;<br />
      &lt;SAP:P2 /&gt;<br />
      &lt;SAP:P3 /&gt;<br />
      &lt;SAP:P4 /&gt;<br />
      &lt;SAP:AdditionalText /&gt;<br />
      &lt;SAP:ApplicationFaultMessage namespace="" /&gt;<br />
      &lt;SAP:Stack>Dynamic Header - Missing Message Attributes: Fields/Parameters&lt;/SAP:Stack&gt;<br />
      &lt;SAP:Retry>N&lt;/SAP:Retry&gt;<br />
      &lt;/SAP:Error&gt;<br />
    <p />
    <br />
    Please note, we have set this up on another PI system (7.0 sp 12) and it works as required.
    <p />
    <br />
    Many thanks
    <p />
    <br />
    Andreas

    Hello , let me clarify:
    - There's a graphical mapping which has a user defined function with the following code:
    DynamicConfigurationKey dynKey =DynamicConfigurationKey.create(
    "http://sap.com/xi/XI/System/HTTP",paramName);
    DynamicConfiguration dynCon =(DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    dynCon.put(dynKey, paramValue);
    return paramValue;
    - The above UDF has paramName set to UrlParamOne via a constant and paramValue set a per an element in the incoming structure.
    - Incidentally, a Java mapping is then called (although not relevent) to clear the xml produced from the mapping. This is a requirement for our customer who don't want the HTTP body set. The code is as follows:
    Created on 07-Jun-2010
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package uk.gov.communities.finance;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    @author Mark
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class PaymentGatewayRequestMap implements StreamTransformation {
    /** This Map parameter is for the Method setParameter() */
    Map param=null;
    /** This method should be used while the Class implements
    StreamTransformation interface
    @param param - A Map object
    public void setParameter(Map param){
    this.param=param;
    This method will be called by XI to execute Java Mapping.
    @param in - The InputStream which has the source message from CRM
    @param out - The OutputStream which has the target message to ProFinance
    public void execute(InputStream in, OutputStream out) throws StreamTransformationException {
    try{
    String response = "";
    out.write(response.getBytes());
    catch(Exception e){
    throw new RuntimeException(e.getMessage());
    Many thanks
    Andreas

  • Problem with Dynamic Configuration in SOAP-AXIS adapter..!!!

    Hi ,
    Idoc> XI>SOAP-AXIS
    I am doing a scenario where I need to pass the URL dynamically in SOAP-AXIS adapter by taking the SNDPRN of Idoc.
    If SNDPRN = 100 , message has to go to  http://10.190.25.16:8210/file/receiver
       SNDPRN = 200 , message has to go to  http://20.180.26.16:8210/file/receiver
    It is working correctly when I tried for single receiver. When I' tried to use DynamicConfiguration, it is coming in SOAP document but it is not working and not passing to correct channel.  According to this note 1039369, I mentioned the following modules.
    AF_Adapters/axis/AFAdapterBean  --->                 afreq
    AF_Adapters/axis/HandlerBean      --->                  xireq 
    AF_Adapters/axis/HandlerBean      --->                  dc
    AF_Adapters/axis/HandlerBean       --->                 remover        
    AF_Adapters/axis/HandlerBean       --->                 trp
    AF_Adapters/axis/HandlerBean        --->                xires       
    AF_Adapters/axis/AFAdapterBean    --->               afres
    xireq ->  handler.type-> java:com.sap.aii.axis.xi.XI30OutboundHandler
    dc    ->  handler.type-> javasap.aii.axis.xi.XI30DynamicConfigurationHandler
    dc   --->   key.1 --->      write http://sap.com/xi/XI/System/SOAP TServerLocation
    dc    --->          location.1  --->         context
    dc     --->         value.1      --->        transport.url
    remover    --->  handler.type    --->   java:com.sap.aii.axis.soap.HeaderRemovalHandler
    remover     ---> namespace    --->      http://sap.com/xi/XI/Message/30
    trp         --->     handler.type   --->    java:com.sap.aii.adapter.axis.ra.transport.http.HTTPSender
    trp           --->  module.pivot  --->     true
    xires     --->    handler.type   --->    java:com.sap.aii.axis.xi.XI30OutboundHandler
    and I am getting the below error in SOAP-AXIS channel
    Error Axis:    error in invocation: java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Error MP:     Exception caught with cause java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Error           Exception caught by adapter framework: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage: java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Kindly let me know if anyone has any idea what might be wrong?
    Thanks
    Deepthi

    I have a similar problem. I also like to add some header fields to my message und that's way I'm trying to use the AXIS adapter. (Axis adapter FAQ question 30) Unfortunately I'm getting exactly the same error message:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Deepthi, you wrote that you have missed one jar file. Can you remember which file it was?

  • Problem with Dynamic table having row map.

    Hi,
    I need to create a table dynamically based on following inputs:
    a.)Name and number of columns will be decided dynamically at run-time.
    b.) Each row will contain a map of column values ,which will be dynamically generated by some other class.
    In the same way multiple tables need to be created dynamically.
    I tried created table for the same as following:
    RichTable tb=new RichTable();
    tb.setId("trs");
    tb.setValue(UICredRowList.getMapListforRows());
    for(Iterator itr=header.iterator();itr.hasNext();)
    String headerKey = (String) itr.next();
    RichColumn myCol = new RichColumn();
    ExpressionFactory efact = FacesContext.getCurrentInstance(). getApplication().getExpressionFactory();
    ValueExpression valExpr1 = efact.createValueExpression( elContext1,"#{row["+headerKey+"]}",Object.class);
    resolveExpression("#{row["+headerKey+"]}") ;
    myCol.setId("tc1");
    myCol.setSortable(false);
    myCol.setWidth("250");
    myCol.setHeaderText(headerKey);
    RichOutputText rot1 = new RichOutputText();
    rot1.setValueExpression("value", valExpr1);
    myCol.getChildren().add(rot1);
    tb.getChildren().add(myCol);
    Here when I checked the column value from Expression I am getting value as null.
                        Can someone help me how can I handle this type of table.Example will be highly appreciated.
    Thanks in Advance
    Sunil

    Which JDeveloper version do you use, if you use 12c or 11R2 you should find this option when you drag and drop the table to auto generate columns dynamically.

  • Problem with audio configuration

    when i turned on Itunes on on my computer it had this message: Problem with audio configuration. Audio/video playback may not operate properly. How do I fix it?

    I reinstalled iTunes & QuickTime as per giterdone response to rpestow on 12 November
    instructions at: http://docs.info.apple.com/article.html?artnum=93698
    Thanks giterdone

  • Problem With Cutom Configuration with Object Type

    Dear Guru's
    I am working WebUI, I am facing a problem with Custom Configuration.
    1. The initial requirement to control the visibility for a dropdown event in ERP Quotation.
    2. To this i copied the default configuration to custom configuration with custom Object type and Subtype.
           CONFIG KEY: ZPJQTN
           OBJECT TYPE: ZOTYP_CONFIG
           OBJECT SUB TYPE:  ZSTYPE_CONFIG1
    3. I have created customm fields in enhancement.
    4. Now i chosen my new configuration (ZPJQTN,ZOTYP_CONFIG,ZSTYP_CONFIG1), when i click Show available fields, the custom fields are not showing. Instead the created fields are available at other configuration.
    5. I am able to control the visibility for the standard available fields.But i am not getting the custom created fields
    (Note:  I have created the Object type and Object sub type as follows: SPRO->CRM->UI Framework->Define Object Types
    Object type: ZOTYP_CONFIG Callback class: ZCL_CONFIG_CALLBACK
    Redifned the method: IF_BSP_DLC_OBJ_TYPE_CALLBACK~GET_OBJECT_SUB_TYPES
    Coded as below:
      data: lv_subtype type bsp_dlc_object_sub_type.
      lv_subtype = 'ZSTYP_CONFIG1'.
      append lv_subtype to result.
      lv_subtype = 'ZSTYP_CONFIG2'.
      APPEND lv_subtype to result.
    Now Please suggest me how to achieve this.
    Also please let me know, whether i am following the correct procedure for controlling the visibility.
    Thanks in Advance,
    S.Meganadhan.

    Hi Harshit,
    I added custom fields using AET only.
    I am able to see the field got added in the structure. I am able to access GET and SET methods of the field.
    But the problem is, it is not getting saved. Am i missed any configuration step?
    Please suggest me.
    Thanks in advance,
    Regards,
    S.Meganadhan.

  • After Effects won't close/Problems with dynamic links

    When I quit After Effects the icon still shows up and it says that it is still open, even force quit will not work. Also having problems with dynamically linked files between after effects and Premiere pro. Rendering in Premiere doesn't work unless I go to AE, save the project, then go back to Premiere. I have OSX Mavericks 10.9.2, a late 2012 mac pro, and AE CC 12.2.1.5

    Kevin: would appreciate further thoughts on this.
    I am using Pr2014, version 8.0.0 I am using AE2014, version 13.0.2.3. When I was on earlier versions of each, I had no problem importing AE comps into Pr. I'd choose import in Pr, then select the AE project, then select the comp. But with my new and improved versions of AE and Pr, I keep getting "importer reported a generic error."
    I also tried to go the other way. I selected in Pr the clips I wanted to work on in AE, and then tried "replace with AE comp" but got the "generic error" message again..
    Finally, I attempted to create a Dynamic Link from Pr via the File menu, but with each of the options from there, I got "failed to connect to AE Dynamic Link"
    Any advice you can share, would be most welcome.

  • Can't run itunes because it has detected a problem with audio configuration

    What does that mean and how do i fix it? I had Itunes installed on my computer for ages but I had to have it restored because the firewall was playing up and since i have tried to reinstall itunes it has been saying that there is a problem with audio configuration---any ideas?

    Some people have found the following works:
    Completely uninstall Quicktime (NOT iTunes) using ALL the method in this article:
    http://docs.info.apple.com/article.html?artnum=93698
    Turn off antivirus/anti spyware
    Go to Control Panel>Add/Remove Programs>Change or Remove Programs
    Select iTunes, then click on Change, then select Repair.
    Restart computer

  • ITunes has detected a problem with your configuration

    I recently tried to use my iTune player and when I click the shortcut to open it, the following error message appears:  "iTunes has detected a problem with your configuration.  Audio/Video playback may not operate properly."  The program shows up on my desktop, but when I select something to play, nothing happens.
    I use Windows 7.  It did work previously, and I do not know of any specific change made to my computer that could have caused this.  I am not sure when it developed since I have not tried to use iTunes for a week or more.  I checked the community forum and there were similar problems 7 years ago, but could not find any solution (One link to a solution is not longer good.)

    Hello LouisvillePS
    Start with the troubleshooting in the article below to resolve issues with start. You can use Safe Mode to start up to see if it still pops up as well as testing in a new user on your computer.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/dl1614
    Regards,
    -Norm G.

  • XSLT Mapping with Dynamic Configuration for Mail Adapter

    Hi Guys,
    I am wondering if somebody can help me please.
    I have a requirement in which I need to pick up the file from FTP and email it to the user as an attachment with the same file name and content.
    I know it is possible via 3 method either by deploying adapter module or via XSLT or JAVA Mapping.
    I preferred XSLT Mapping because it is easier to use and we don't need to compile the code like JAVA Mapping.
    I have done the XSLT Mapping but the only problem I am facing is that how to copy the file name which we get it from Dynamic Configuration to the Mail ContentDisposition.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:map="java:java.util.Map"
      xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration"
      xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
    <xsl:output indent="no" />
    <xsl:param name="inputparam"/>
    <xsl:template match="/">
    <!-- change dynamic configuration -->
        <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/File', 'FileName')" />
        <xsl:variable name="dynamic-value"
            select="dyn:get($dynamic-conf, $dynamic-key)" />
        <xsl:variable name="dummy"
            select="dyn:put($dynamic-conf, $dynamic-key, $new-value)" />
        <!-- copy payload -->
    I tried many option but unfortunately none of them worked.
    <Content_Disposition>attachment;filename="$inputparam"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-conf"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-key"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-value"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dummy"</Content_Disposition>
             <Content_Disposition>
                attachment;filename=
                <xsl:value-of select="dynamic-key"/>
             </Content_Disposition>
    I really appreciate if someone can please provide some guidance.
    Thanks,

    Hi,
    Yes u r correct it will show error in operation mapping.. bcoz u cannot check the DynamicConfiguration in Operation mapping...
    It will throw Exception..
    The parameter to UDF depends on ur requirement.... Let us know ur requirements exactly...
    If u r doing for file to file means no UDF required,, just check ASMA on both sides....
    Babu

  • How to send mails to dynamic receivers using XSLT mapping

    Hi All,
    I have a problem with the mail attributes in xslt mapping. I have a condition on a source field, based on which the "TO" attribute should vary.
    For Example :  If ROOT/HEADER/XYZ = 001 then receiver should be some abc email id
    If ROOT/HEADER/XYZ = 002 then receiver should be
    pqr email id.
    Can anyone help me out of this
    Thanks in advance.
    Regards,
    Lakshmi.

    Hi Lakshmi,
    you have to create an appropriate mapping for this. As said, the mentioned mail package format will be your message. The message will be analyzed by the mail adapter and after this the TO field will be filled with the correct value you will use. The structure inserted into the content fields will be send in the mail body or, if set in the configuration, as an attachement of the mail (as far as i know (-; )
    Example:
    Original structure:
    <ContentStructure>
      <ValueA>ID1</ValueA>
      <ValueB>XYZ</ValueB>
    </ContentStructure>
    Extract of an XSLT-Mapping (as an example, you can use the mapping type you prefer):
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <Subject>Subject</Subject>
      <From>namea(at)company.com</From>
      <To>
        <xsl:choose>
          <xsl:when test="ContentStructure/ValueA='ID1'">
            nameb(at)companyb.com
          </xsl:when>
          <xsl:when test="ContentStructure/ValueA='ID2'">
            namec(at)companyc.com
          </xsl:when>
        </xsl:choose>
      </To>
      <Reply_To />
      <Content_Type>text/plain</Content_Type>
      <Content>
        This is the content.
      </Content>
    </ns:Mail>
    If you try something like this, you will be able to set the TO email address dynamical.
    Rregards,
    Lars

  • Dynamic configuration in ABAP Mapping

    Dear All,
    I have requirement to use the filename's name in the mapping to the target message.
    e.g: Filename is Victor.303, i need to take this 303 and map it to the target message.
    I understand i can get that value using dynamic configuration in Adapter-Specific Attributes.
    But all the samples are using Java code used in UDF.
    How to do the same in ABAP Mapping?
    I tried:
       record =  dynamic_configuration->get_record( namespace = 'http://sap.com/xi/XI/System/File'
                                                        name = 'FileName').
    But record-value return blank.
    Best Regards,
    Victor.

    Dear Prateek,
    I changed my code with:
      DATA: record TYPE mpp_dynamic.
      CALL METHOD dynamic_configuration->get_record
        EXPORTING
          namespace = 'http://sap.com/xi/XI/System/File'
          name      = 'FileName'
        RECEIVING
          record    = record.
    but record-value still return as blank.
    I have doubt in this, do i need to populate the FileName in the dynamic configuration (in the graphical mapping) first before i can get the value in the ABAP mapping? or System should filled it and i just can use it directly in the ABAP mapping?
    How we know what is the available name and namespace in that dynamic configuration-->get record??
    (e.g: my case is FileName, and in the link that you gave is ERROR.)
    Any link for this?
    Best Regards,
    Victor.

  • Oracle 9i, Rel.2 - Problems with dynam statement and cursor

    Hello,
    I have the following problem with Oracle 9i, Release 2:
    I have a SQL-statement, which I create with the help of a configuration table. That means I don’t know how this statement looks at runtime. It could be look like this:
    SELECT Att1, Att2, Att3
    FROM Tab1
    or this…
    SELECT Att1, Att2
    FROM Tab1
    or this…
    SELECT Att1
    FROM Tab1
    etc.
    That means I don’t know in advance how many columns will be in the select-clause.
    Here my code snippet until here:
    v_query_str := 'SELECT ' || v_select_clause_str
    || ' FROM cb.' || v_table;
    ,,v_select_clause_str" willl be created dynamically
    ,,v_table" is as well from the config-table
    Now I want to iterate through the result of the query and do further processing.
    For this reason I wanted to use a cursor, iterate through the rows and save every value of each row in an own variable (but I don’t know the number of columns!!!).
    But how can I open a cursor and iterate through it without knowing the number of columns???
    The following code is NOT working:
    TYPE t_dataColumnComp IS TABLE OF VARCHAR2(200);
    a_dataColumnComp t_dataColumnComp;
    --here I create the query…
    v_query_str := 'SELECT ' || v_select_clause_str
    || ' FROM cb.' || v_table;
    OPEN c_tempAtt FOR v_query_str;
    LOOP
    FETCH c_tempAtt INTO a_dataColumnComp; --THIS DON’T WORK
    EXIT WHEN c_tempAtt%NOTFOUND;
    FOR i IN 1..a_dataColumnComp.COUNT
    LOOP
    DBMS_OUTPUT.PUT_LINE(a_dataColumnComp(i));
    END LOOP;
    END LOOP;
    CLOSE c_tempAtt; --close cursor variable
    Regards
    Homer

    You will need to use DBMS_SQL to handle this since the number of columns in the result set is not known until runtime.
    See here for an example of using DBMS_SQL:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:235814350980

  • DB2 problems with Dynamic SQL

    Does anyone out there use dynamic SQL with DB2? If so, are the sql statements causing a PreparedStatement to be executed on DB2. I posted this question similarly before, but never resolved it, and it is killing me. I have to resolve this ASAP!
    Here is the problem: My DB2 Admin says that EVERY TIME I access the database, my Java app is causing the database to create a PreparedStatement. However, I'm using Statement objects exclusively, with dynamic SQL. He says that DB2 needs an "access path" for the client, and that it converts the Statement to a PreparedStatement, as this is the only way to get this "access path". He says the only solution is either stored procedures or SQLJ, which will do the binding in advance, and increase performance tremendously. However, I am STRONGLY opposed to using SQLJ, and if we do stored procedures, we'd have to write one for every possible SQL statment! I KNOW there is a better solution.
    Is anyone out there having these problems with JDBC and DB2? Surely someone out there uses DB2 and JDBC and either has these problems or can confirm that something is incorrectly configured on the database side.
    Any help would be great. Thanks, Will

    Now I'm wondering if maybe the PreparedStatements are ONLY being called on the database when I call getConnection(), and not when I call executeQuery() or executeUpdate() from the Statement object. I just can't see why the database would have to make an access path for every SQL statement executed, but I could see it creating an access path for every connection requested. Any thoughts on that theory?

  • Problems With System Configuration

    System Configuration is altered and not repairable. Selective startup is persistent. Normal startup is selected, but the Apply button is greyed out, inaccessible, and system always remains in Selective startup. As a result, Current User profile is probably
    corrupted. Windows Store will not install (services are corrupt, SFC and DISM did not work). Outlook profile was deleted, needed to be reinstalled, and can not receive mail. Excel math engine totals values higher than actual amounts. IE automatically signs
    into all Microsoft accounts (reset to default settings worked for a log on, but automatic sign in resumed afterwards).
    Are there any solutions?
    Office diagnostics produced the following report.
    Diagnostic Results
    None of the Microsoft Office Diagnostics found any problems.
    More resources
    Setup Diagnostic — File corruption or altered file
    The Setup Diagnostic repaired problems with your installation of Microsoft Office. Your Microsoft Office programs should now function correctly.
    If your Microsoft Office programs continue to crash, the source of the problem may be a hardware failure or hardware configuration problem. Review the results of the Disk and Memory Diagnostics to determine if a hardware failure is affecting your installation
    of the 2007 Office release.
    More resources
    Setup Diagnostic — Missing media
    The Setup Diagnostic was not completed because a valid source was not found. Either the local installation source is missing, or the original source that was used to install Microsoft Office is not available to the repair process. You may need to provide
    the original source to allow this diagnostic to run successfully. Valid sources for the 2007 Office release include the following:
    Your 2007 Office release installation CD
    An installation disk or repair CD provided by the vendor of your computer
    A connection to a network installation of the 2007 Office release
    After you obtain access to a valid source, run Office Diagnostics again.
    More resources
    Disk Diagnostic — Failure of hard disk predicted
    The Self-Monitoring, Analysis, and Reporting Technology (SMART) feature of your hard disk has found errors that may indicate that the hard disk is likely to fail. SMART is a feature that some disk drive manufacturers provide to give users advance notice
    of potential hard disk failure. Instability in your Microsoft Office programs may be the result of these hard disk drive errors.
    Note This result can indicate a severe problem, but some hard disks may not accurately report their results.
    We recommend that you do the following:
    1.Back up your important data immediately.
    2.Check the results of other diagnostics, and follow the instructions for resolving any issues that the other diagnostics have reported. After you resolve those issues, run Microsoft Office Diagnostics again to see if this Disk Diagnostic issue is resolved.
    3.If you continue to get this result, contact someone, such as the vendor of your computer or hard disk.
    More resources
    Disk Diagnostic — Errors in system event log
    The Disk Diagnostic found evidence of hardware errors. Instability in your Microsoft Office programs may be the result of these hardware errors.
    This result occurs if one of the following has happened recently:
    The Self-Monitoring, Analysis, and Reporting Technology (SMART) feature of your hard disk has found errors. SMART is a feature that some disk drive manufacturers provide to give users advance notice of potential hard disk failure.
    Microsoft Office Diagnostics has found blocked-out (failed) sectors on your hard disk.
    Microsoft Office has had trouble accessing files from the hard disk; it needs these files to function properly.
    We recommend that you do the following:
    1.Check the results of other diagnostics, and follow the instructions for resolving any issues that the diagnostics have reported. After you resolve those issues, run Microsoft Office Diagnostics again to see if this Disk Diagnostic issue is resolved.
    2.If you continue to get this result, contact someone, such as the vendor of your computer or hard disk.
    More resources
    Memory Diagnostic — RAM failure
    The Memory Diagnostic found evidence of failure in the random access memory (RAM).
    We recommend that you do the following:
    1.Check the results of other diagnostics, and follow the instructions for resolving any issues that the diagnostics have reported. After you resolve those issues, run Microsoft Office Diagnostics again to see if this Memory Diagnostic issue is resolved.
    2.If you continue to get this result, do either of the following:
    Run a Microsoft Windows memory diagnostic. For more information, see the following:
    Windows Vista How do I know if my computer has a memory problem?
    Microsoft Windows XP Windows Memory Diagnostic
    Contact someone, such as the vendor of your computer or RAM.
    More resources
    Memory Diagnostic — User is not an administrator
    The Memory Diagnostic was unable to run because you do not have administrative rights on this computer. To successfully run the Memory Diagnostic, someone with administrative rights must log on to this computer and run Microsoft Office Diagnostics.
    More resources
    Update Diagnostic — Installation is out of date
    The Update Diagnostic determined that your installation of Microsoft Office does not have the latest service packs installed. Installing service packs improves stability. We recommend that you visit Downloads on Microsoft Office Online, and then, under Office
    Update, click Check for Updates.
    More resources
    Compatibility Diagnostic — Conflicting versions of Outlook found
    The Compatibility Diagnostic identified conflicting versions of Microsoft Office Outlook. To remove the version of Outlook from your computer that you do not want, do the following:
    Microsoft Windows Vista
    1.Click the Start button, and then click Control Panel.
    2.Click Uninstall a program.
    Note In Classic view, double-click Programs and Features.
    3.Select the version of Outlook that you do not want, and then click Uninstall.
    Microsoft Windows XP
    1.Click Start, and then click Control Panel.
    2.Double-click Add or Remove Programs.
    3.Select the version of Outlook that you do not want, and then click Remove.
    More resources

    Check disk and memory diagnostics found no errors.
    SFC and DISM listed errors when performed in diagnostic start up. Commands changed from previous attempts. Before SFC and DISM only had to be entered as SFC and DISM. Presently, additional commands are required.
    Log Name:      Microsoft-Windows-MemoryDiagnostics-Results/Debug
    Source:        Microsoft-Windows-MemoryDiagnostics-Results
    Date:          8/21/2014 12:51:09 PM
    Event ID:      2001
    Task Category: None
    Level:         Information
    Keywords:     
    User:          SYSTEM
    Computer:      TAS
    Description:
    Windows Memory Diagnostic results
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-MemoryDiagnostics-Results" Guid="{5F92BC59-248F-4111-86A9-E393E12C6139}" />
        <EventID>2001</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2014-08-21T16:51:09.612555200Z" />
        <EventRecordID>1</EventRecordID>
        <Correlation />
        <Execution ProcessID="5296" ThreadID="5300" />
        <Channel>Microsoft-Windows-MemoryDiagnostics-Results/Debug</Channel>
        <Computer>TAS</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <UserData>
        <Results xmlns="http://manifests.microsoft.com/win/2005/08/windows/Reliability/Postboot/Events">
          <MemDiagRawData>89170000000000000200000003000000050000000A000000D80300000C0000000200000000000000964017005B090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C800000000000000707E748DCE00000001000000C800000000000000C8000000000000000C00000038000000DE07080015000C001E00200000000700964017005B09000001000020000001000C00010000000000020001001E00010000000000040001004200010000000000060001002E0001000000000001000100660001000000000003000100EC00010000000000000001000D00020000000000020001001D00020000000000040001004200020000000000060001002F0002000000000001000100650002000000000003000100EC00020000000000</MemDiagRawData>
        </Results>
      </UserData>
    </Event>
    Windows Resource Protection could not start the repair service.
    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.
    C:\WINDOWS\system32>DISM
    Deployment Image Servicing and Management tool
    Version: 6.3.9600.17031
    DISM.exe [dism_options] {Imaging_command} [<Imaging_arguments>]
    DISM.exe {/Image:<path_to_offline_image> | /Online} [dism_options]
             {servicing_command} [<servicing_arguments>]
    DESCRIPTION:
      DISM enumerates, installs, uninstalls, configures, and updates features
      and packages in Windows images. The commands that are available depend
      on the image being serviced and whether the image is offline or running.
    GENERIC IMAGING COMMANDS:
      /Get-MountedImageInfo   - Displays information about mounted WIM and VHD images.
      /Get-ImageInfo          - Displays information about images in a WIM or VHD file.
      /Commit-Image           - Saves changes to a mounted WIM or VHD image.
      /Unmount-Image          - Unmounts a mounted WIM or VHD image.
      /Mount-Image            - Mounts an image from a WIM or VHD file.
      /Remount-Image          - Recovers an orphaned image mount directory.
      /Cleanup-Mountpoints    - Deletes resources associated with corrupted mounted images.
    WIM COMMANDS:
      /Capture-CustomImage    - Captures customizations into a delta WIM file on a WIM Boot system. Captured directories include all subfolders and data.
      /Get-WIMBootEntry       - Displays WIMBoot configuration entries for the specified disk volume.
      /Update-WIMBootEntry    - Updates WIMBoot configuration entry for the specified disk volume.
      /List-Image             - Displays a list of the files and folders in a
                                specified image.
      /Delete-Image           - Deletes the specified volume image from a WIM file
                                that has multiple volume images.
      /Split-Image            - Splits an existing .wim file into multiple
                                read-only split WIM (SWM) files.
      /Export-Image           - Exports a copy of the specified image to another
                                file.
      /Append-Image           - Adds another image to a WIM file.
      /Capture-Image          - Captures an image of a drive into a new WIM file. Captured directories include all subfolders and data.
      /Apply-Image            - Applies an image.
      /Get-MountedWimInfo     - Displays information about mounted WIM images.
      /Get-WimInfo            - Displays information about images in a WIM file.
      /Commit-Wim             - Saves changes to a mounted WIM image.
      /Unmount-Wim            - Unmounts a mounted WIM image.
      /Mount-Wim              - Mounts an image from a WIM file.
      /Remount-Wim            - Recovers an orphaned WIM mount directory.
      /Cleanup-Wim            - Deletes resources associated with mounted WIM images that are corrupted.
    IMAGE SPECIFICATIONS:
      /Online                 - Targets the running operating system.
      /Image                  - Specifies the path to the root directory of an offline Windows image.
    DISM OPTIONS:
      /English                - Displays command line output in English.
      /Format                 - Specifies the report output format.
      /WinDir                 - Specifies the path to the Windows directory.
      /SysDriveDir            - Specifies the path to the system-loader file named BootMgr.
      /LogPath                - Specifies the logfile path.
      /LogLevel               - Specifies the output level shown in the log (1-4).
      /NoRestart              - Suppresses automatic reboots and reboot prompts.
      /Quiet                  - Suppresses all output except for error messages.
      /ScratchDir             - Specifies the path to a scratch directory.
    For more information about these DISM options and their arguments, specify an option immediately before /?.
      Examples:
        DISM.exe /Mount-Wim /?
        DISM.exe /ScratchDir /?
        DISM.exe /Image:C:\test\offline /?
        DISM.exe /Online /?
    C:\WINDOWS\system32>DISM.exe /English
    Deployment Image Servicing and Management tool
    Version: 6.3.9600.17031
    Error: 1639
    No DISM options were specified on the command-line.
    Run DISM with a command-line option specified, such as /Image or /Online. For more information, refer to the help by running DISM.exe /?.
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

Maybe you are looking for

  • PO date issue when scheduling replenishment

    Hello Guys, i'm currently experimenting an issue that i don't understand. when I try scheduling RWRPLPRO program (WRP1) with a timezone UTC+11 for my step user, the document date of my purchase order is the system date and not a user date. Is there s

  • Connect bluetoothspeakers to mac air, Mountain Lion

    Mac Air cant detect a logitec bluetoothspeaker. Iphone finds it and connects fast and easy. Any idea?

  • Problem with the option required of input components.

    I'm new using the Studio Creator 2. I'm trying to develop a system (it's a work to College), where there's just some sing up e search. Well, My problem is: I'm trying to do a login page, where people can enter their login and password (both required)

  • Illustrator crashing when trying to print.

    Hello, I'm useing Adobe Creative Suite 4. The problem I'm having is when I try print something from Illustrator it crashes but when uninstall Adobe Acrobat it allowes me to print but still the top menu is a bit funny, file, edit, etc. Does anyone hav

  • Editing Bank details iView

    Hi, I want to add some fields to Bank details application by calling a Z- ARFC model. But in my NWDS, I see only following components in DC essfrbank : - - CcPerBankFR - VcPerBankFRDetail (used model = HRXSS_PER_MAC) - VcPerBankFROverview (used model