File to RFC - XSLT Mapping after RFC structure has changed

Hi
I'm an XI beginner, and am looking at a File to RFC scenario which has been implemented in our 7.0 system.
We have a requirement to add a new field to the RFC (which has already been done by the ABAPer) and I need to make the necessary changes in XI. So I have re-imported the RFC and added a field in Data Type (we had file content conversion and we have manually defined the Data Types).
For mapping - is there a way to utilise the existing XSLT mapping without having to re-do the entire mapping in Stylus Studio? Is there an easy way to just add one additional field in Stylus Studio? or do I have to edit the xsl manually?
Thanks
Manoj

Manoj,
Let me explain you....
1.Take the old XSL file into anote pad
2.now import your newly modified source and target XSD and import into SS
3.Perform the xslt mapping for the newly added source and target field
4.generate the XSL for this mapping
5.Now take the lines which mapped (Do not take all the lines in the generated XSL) and copy these few lines mapped
6.Now go to the old XSL in the notepad and add the lines copied from the new XSL
Now try to paste the entire XSL in SS then you would be able to see all the fields mapped in SS IF yes then you are done with XSLT mapping.
Regards,
Naveen.

Similar Messages

  • Can we use XSLT mapping after graphical Mapping

    Hi,
    Can we use XSLT mapping after graphical mapping?
    My requirement is to generate two namespace attributes in the target output.
    So first I want to generate a structure using graphical mapping and then want to use XSLT mapping only to generate the second namespace XSI (leaving the rest of the structure as it is). Is it possible?
    <ns1:Test xmlns:ns1="wmdata.dwbi.interface" xsi:schemaLocation="wmdata.dwbi.interface w_interface_1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    Please post some solution. (I will reward points)
    Br,
    Madan Agrawal

    Hi Madan,
    Can we use XSLT mapping after graphical mapping?
    To me it seems feasible...
    But to using the two mappings one after another you will have to use BPM .
    Use transformation step for this to use the mapping and change in structure.
    Regards,

  • Ive just upgraded my iphone 4 to 5, should i sync my phone before or after my number has changed to the iphone 5?

    ive just upgraded my iphone 4 to 5, should i sync my phone before or after my number has changed to the iphone 5?

    When you restore from an itunes backup it doesnt backup music or ring tones. resync from the computer that has the music. If you bought all the songs from iTunes, you can always redownload them but ringtones are a one-time download. Follow the article to redownload them. For the ringtones you can contact Apple to ask for a redownload of them
    http://support.apple.com/kb/ht2519

  • ** How to get Source File Name thru XSLT Mapping

    Hi friends,
    We require source file name after message processing (SXMB_MONI) in the output structure.  We understad from Forums and  blog 2664, this is possible thru UDF - DynamicConfiguration class. This UDF will work if we use message mapping. But, in our case we are using XSLT mapping. So, how do we call  the same from Java Pacakage ? (Imported Archives). For writing java class separately, what are the changes to be made in the program?
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return ourSourceFileName;
    Kindly reply, friends.
    Kind Regards,
    Jeg P.

    Hi,
    This is the example in this similar manner u have to call the method in which u have to write the code for picking the source file name.
    <name>
       <xsl:if test="function-available('javamap:concat')">
        <xsl:value-of select="javamap:concat($first, $last, $inputparam)"/>
       </xsl:if>
      </name>
    for reference check the Link,
    http://help.sap.com/saphelp_nw04s/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    Regards,
    Phani

  • IDOC TO HTML FILE SCENARIO WITH XSLT MAPPING

    Hi ,
                 I am doing idoc to html file using xslt mapping can anyone provide me some help(material or example ) please reply soon.
    Thanks & Regards,
    Vinay Yadav

    Hi ,
    For xslt mapping the place to start is
    http://www.w3schools.com/.
    in help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/64b93d0d4e6b3be10000000a114084/frameset.htm
    There are some blogs here which can proove to be good.
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards ,
    Deepak
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping

  • Get the file name using XSLT mapping

    Hi
    How to get the file Name at receiver side using XSLT mapping.
    Could any one please help me
    Regards
    sowmya

    Sowmya
    If you will use Grpahical Mesage Mapping then this can be achieved using Adapter-Specific Attribute u201CFileNameu201D
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Code Snippet -->
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
    u201Chttp://sap.com/xi/XI/System/Fileu201D,
    u201CFileNameu201D);
    But in case you have to ONLY use XSLT mapping then I would suggest to use the same jave code & call it from your XSLT mapping. I never tried such thing you might use couple of jar files too.
    - lalit -

  • Help needed in XSLT MAPPING with RFC function module

    null
    Edited by: Ram Kishore on Sep 25, 2009 1:09 PM
    Edited by: Ram Kishore on Sep 25, 2009 1:10 PM

    Hi Arunava,
    If you dont have any key field in ItemData1 and ItemData2 in the incoming flat file, then you have to insert a keyfield in both the ItemData1 ,ItemData2 .
    For this ,you need to use ItemData1.keyFieldValue and ItemData2.keyFieldValue in your FCC parameters.
    Also, need to mention the keyFieldName in both ItemData1 ,ItemData2.(ex:ItemData1.fieldNames).
    Hope the below blog would help you.
    /people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
    Regards,
    Swetha.

  • Can Firefox automatically return to a file with a media link after the media has played?

    WIndows XP, Firefox 33.11.
    html documents have lines of dialogue text and a link to the audio of each dialogue line.
    The audio is sometimes mp3, sometimes wav.
    Clicking on a link plays the audio OK, however when the audio finishes, one has to manually
    click back to the document. This is inconvenient when sifting through numerous lines of dialogue.
    Is there a way to automatically re-display the document as soon as the audio finishes playing.

    HI sayang,
    I understand that opening an audio file in the same tab disrupts the viewing of the previous website you were browsing.
    There is no feature built into Firefox that does this, however there are some features that you can try to have an alternative:
    For example, opening the audio file in a new tab by right clicking on the link is a possibility. Also using the hot key Alt + Enter when clicking on the media url.

  • DW Template :: Put all pages to the sever AFTER a template has changed?

    I'm probably wishful thinking, but I would love to see an extension that would put ALL pages updated by a template to the server with a click of one button.  If you have a web site with 50 pages that are based on a template, sometimes you have to pick and choose manually which files get put to the server.  I would think this should be something built-in to dreamweaver.  Anybody know of anything like what I'm describing out there?

    the answer is the cute little circular button at the top of the files window.  Check the live doc on it:
    http://livedocs.adobe.com/dreamweaver/8/using/wwhelp/wwhimpl/common/html/wwhelp.htm?contex t=LiveDocs_Parts&file=05_sit45.htm

  • Opening files with serialized objects even if class definition has changed.

    Dear all,
    We are deploying an application wich saves serialized objects. But when changing something in the code and especially in the serialized classes we are not able to open files which have been saved with the old 'outfit' of the class.
    I think, that this is probably a common problem and therefore I am interested whether there exists also a common or practical solution.
    What is the direction I have to look in? XML, Serializable or is it something else?
    Thanks for a short answer,
    Axel

    If you add, remove or change a classes variables, then it will be serialized differently.
    Any fields which you do not need to be serialized, may be marked as transient, so you can add and remove them at will.
    In the longer term, you can override the readObject() / writeObject() methods and explicitely load/save what fields you want. This will also allow you to set intelligent defaults, if for example, you added a new field, but your old serialised classes do not have this field. You can also precede all serialised data with version numbers... might help a bit.
    So code ( psuedocode ) might look like this...
    private void readObject(java.io.ObjectInputStream in)
         throws IOException, ClassNotFoundException;
        int ver = in.readInt();
         classfield1 = in.readLong();
        if ( ver >= 2 )
            classfield2 = in.readLong();
        if ( ver >= 3 )
             classfield3 = in.readLong();
    }regards,
    Owen

  • RFC to Flat file XSLT mapping

    Hi all,
    we are working on RFC to Flat file XSLT mapping.
    RFC Structure
    RFC Name
    --Item
    f1
    f2
    f3
    FLAT File Structure
    MT_FF
    --Record
    f1
    f2
    f3
    Can somebody provide the XSLT code template for the same.....

    The issue is solved. I used Altova MapForce to generate the code. Thank you.

  • Scaling your Mapped BW RFC destination to the APS DF Service

    Hello Semantic People!
    If you are creating a UNX universe connecting to BW through the IDT and you have manually mapped your RFC destination to an Adaptive Processing Server Data Federation Service then you might be interested a new Wiki Page:   RFC Connections Mapping Scalability
    RFC Connections Mapping Scalability - Business Intelligence (BusinessObjects) - SCN Wiki
    and kbase 2028364 - RFC Connections Mapping Scalability:
    https://support.wdf.sap.corp/sap/support/notes/2028364

    Problem resolved once after SAP server is restarted. RFC destination test was also successful and I was able to retrieve data in Web Intelligence

  • Help Required for XSLT mapping

    Hi Folks,
    I am working on a scenario, where we had 17 different one to one mapping with same source strcture but different target structures. Source is a Idoc common for everyone.
    Sample Target Structure :
    Message Type(XYZ)
                     RECORDS(0,u)
                                             A(0,1)
                                             B(0,1)
                                             C(0,1)
                                             D(0,1)
    As per our requirement we need the output in which we need to have "GLOBE " at the top and the value of A, B, C and D on single row for each ouurance of RECORD. For 2nd occurance we need to change the line and 2 nd set of ABCD on 2nd row and so on. e.g.
    GLOBE
    0002044452KNA1 0000027079 0001E
    0002044452KNA1 0000027080 0001E
    0002044452KNA1 0000027080 0001E
    To acheive the above output we are using a XSLT map after Message Mapping
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" indent="no" encoding="UTF-8" omit-xml-declaration="yes"/>
    <xsl:preserve-space elements="*"/>
    <xsl:template match="/">GLOBE<xsl:text>&#xD;&#xA;</xsl:text>
    <xsl:for-each select="//RECORDS">
      <xsl:for-each select="*">
         <xsl:value-of select="current()"/>
      </xsl:for-each><xsl:text>&#xD;&#xA;</xsl:text></xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    NOW WE HAVE changed the 17 one to one maps to one multi mapping (1:17) as our source is same.
    Now as the output of this multi mapping is getting into XSL code, it is not able to parse it.
    How can we do the changes in this particular code So that we can Achieve:                     17 different file out of single multi mapping and XSL map like it was comming previously from 17 different maps.
    Thanks
    Pradeep

    Hi Pradeep,
    Depending on how you setup your multi mapping, when you execute you will end up with something like this as the xml output:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
      <ns0:Message1>
        <XYZ></XYZ>
        <XYZ></XYZ>
      </ns0:Message1>
    </ns0:Messages>
    Or this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
      <ns0:Message1>
        <XYZ></XYZ>
      </ns0:Message1>
      <ns0:Message2>
        <XYZ></XYZ>
      </ns0:Message2>
    </ns0:Messages>
    The single xml message with the u201CMessagesu201D wrapper is not split into separate messages until it hits one of the adapters in the adapter engine.  Perhaps you can try to adjust the xslt to expect this as input, but the output would still need to be <ns0:Messages>.  That might be what is causing the failure with your current xslt.  Can the flat file conversion in the file adapter?
    Thanks,
    -Russ

  • XSLT mapping does not pass values

    Hi
    I have the following source structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_Order xmlns:ns0="urn:local:orders">
       <OrderHeader>
          <OrderNr>1</OrderNr>
          <Buyer>2</Buyer>
       </OrderHeader>
       <OrderLine>
          <Item>A</Item>
          <Quantity>B</Quantity>
       </OrderLine>
       <OrderLine>
          <Item>C</Item>
          <Quantity>D</Quantity>
       </OrderLine>
    </ns0:MT_Source_Order>
    and i created this XSLT:
    <?xml version= '1.0'  encoding="UTF-8"?>
    <xsl:stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"  xmlns:ns0 = "urn:local:orders"  xmlns:ns1 = "urn:local:orders">
        <xsl:template match = "/">
            <ns1:MT_Target_Order>
                  <Orders>
            <xsl:for-each select="ns0:MT_Source_Order/OrderLine">
                        <Order>
                            <Ordernr>
                                <xsl:value-of select="MT_Source_Order/OrderHeader/OrderNr"/>
                            </Ordernr>
                            <Buyer>
                                <xsl:value-of select="MT_Source_Order/OrderHeader/Buyer"/>
                            </Buyer>
                   <Item>
              <xsl:value-of select="MT_Source_Order/OrderLine/Item"/>
                   </Item>
                   <Quantity>
              <xsl:value-of select="MT_Source_Order/OrderLine/Quantity"/>
                   </Quantity>
                        </Order>
                    </xsl:for-each>
                 </Orders>
            </ns1:MT_Target_Order>
        </xsl:template>
    </xsl:stylesheet>
    I created all objects up to the Operation Mapping.
    When i test my xslt mapping the target structure comes out as:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_Target_Order xmlns:ns0="urn:local:orders" xmlns:ns1="urn:local:orders">
       <Orders>
          <Order>
             <Ordernr/>
             <Buyer/>
             <Item/>
             <Quantity/>
          </Order>
          <Order>
             <Ordernr/>
             <Buyer/>
             <Item/>
             <Quantity/>
          </Order>
       </Orders>
    </ns1:MT_Target_Order>
    The xml structure is OK, but i wanted the paired values in the output also. (order 1 = 12AB, order 2 = 12CD)
    (I have also tried to insert variables in my XSLT but that didnt work either)
    What do i need to change in my XSLT to pass the values to the target structure?
    Thx
    Robert

    Please try this
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:local:orders" xmlns:ns1="urn:local:orders">
         <xsl:template match="/">
              <ns1:MT_Target_Order>
                   <Orders>
                        <xsl:for-each select="ns0:MT_Source_Order/OrderLine">
                             <Order>
                                  <Ordernr>
                                       <xsl:value-of select="../OrderHeader/OrderNr"/>
                                  </Ordernr>
                                  <Buyer>
                                       <xsl:value-of select="../OrderHeader/Buyer"/>
                                  </Buyer>
                                  <Item>
                                       <xsl:value-of select="Item"/>
                                  </Item>
                                  <Quantity>
                                       <xsl:value-of select="Quantity"/>
                                  </Quantity>
                             </Order>
                        </xsl:for-each>
                   </Orders>
              </ns1:MT_Target_Order>
         </xsl:template>
    </xsl:stylesheet>

  • What are the tools for doing xslt mapping.

    Hi All,
    I am doing a a scenario with xslt mapping. Can anybody give be step by step procedure for doing xslt mapping.

    Hi Ankur ,
    U can use Altova XMLSpy for XSLT Mapping.
    See the below links
    XSLT Mapping
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    XSLT Mapping with java enhancement
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    Step by Step procedure:
    for doing xslt mapping you need to create a .xlst file containing the xslt mapping of source and target data.
    U can use Altova XMLSpy for creating .xslt mapping.
    Following following steps for executing this mapping.
    1. Create Source Data and Target Data Type in IR.
    2. Take xml representation of source data and open it into Alto XMLSpy.
    3. Create .xsd file for above source xml data.
    4. Repeat above two procedure for Target Data.
    Now Creating .xslt file you need to Use Alto MapForce.
    Steps will be:
    1. Open the Alto MapForce. Import the source .xml and .xsd file in it.
    2. Similarly import the target .xml and .xsd in the MapForce.
    3. You will have both source and target data available in MapForce in similar fashion as you have in IR.
    4. Do the graphical mapping using extensive list of functions available there.
    5. Save the mapping file.
    6. Click the XSLT Tab . You will have the entire .xslt logic there.
    6. Copy the above content and save it as .xslt file.
    7. Create a jar file for the above .xslt file.
    8. Go to IR , Import the .jar file into 'Imported Archive'
    7. In Message Mapping , Choose XSLT from drop down box of Message program.
    8. Import the jar containing the .xslt file.
    9. Test the mapping

Maybe you are looking for