Need help in XSLT Mapping.

Hello All,
We created mapping between Orders IDOC structure, here we are using XSLT Mapping.
problem is in IDOC structure new Z segment is added after that we have modified the mapping and tested in stylus studio and it was working fine.............but when we tested the interface end to end....the Z segment are not coming.
we have updated the IDOC meta data in IDX2 .......when we hard code the Z segment values and run the mapping in interface mapping we can see proper result.
Please give me inputs on this.
Regards,
chinna

hi channa,
go through the below link..for small ref...
http://help.sap.com/saphelp_sm32/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
regards,
kesava

Similar Messages

  • Need Help with XSLT Mapping....

    My scenario is synchronous scenario. SAP(Proxy) to XI to WebServer(SOAP)
    The response is coming back in asingle ANY field and so I guess I need XSLT Mapping to map it to the response message going  backto SAP.
    The response sent by webserver is of the structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <GetStudentsExResponse xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/LMSWebSvc/LMS_Interface">
       <GetStudentsExResult>
          <Courses xmlns="">
             <Warnings/>
             <Course CourseName="Requal RWT with Instructional Blocks TEST" CourseId="1325">
                <Student LastName="LMSTest" FirstName="A" SSN="112345678" LoginID="lms123456a" CompanyName="LMS Test" CourseStatus="P" CourseStatusDate="03/14/2007 09:24:36" CourseScore="90">
                   <Lesson LessonCode="1915" LessonName="RWT Part 1"/>
                   <Lesson LessonCode="1916" LessonName="RWT Part 2"/>
                   <Lesson LessonCode="1917" LessonName="RWT Requal Exam" LessonStatus="p" LessonStatusDate="03/14/2007 09:24:36" LessonScore="90" ProctorID="1" ProctorName="Account Default">
                      <ExamInteractions QuesNum="17758" StudentResp="D" CorrectResp="D" Judged="c"/>
                      <ExamInteractions QuesNum="17769" StudentResp="B" CorrectResp="C" Judged="w"/>
                      <ExamInteractions QuesNum="8465" StudentResp="A" CorrectResp="A" Judged="c"/>
                      <ExamInteractions QuesNum="8471" StudentResp="A" CorrectResp="A" Judged="c"/>
                      <ExamInteractions QuesNum="8496" StudentResp="C" CorrectResp="C" Judged="c"/>
                      </Lesson>
                </Student>          
             </Course>
          </Courses>
       </GetStudentsExResult>
    </GetStudentsExResponse>
    The Structure that I need to map this to is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Course_Response_MT xmlns:ns0="urn:sce-com:xi:fi:goyala">
       <GetStudentsExResponse>
          <GetStudentsExResult>
             <Courses>
                <Course>
                   <CourseName/>
                   <CourseID/>
                   <Student>
                      <LastName/>
                      <FirstName/>
                      <SSN/>
                      <LoginID/>
                      <CourseStatus/>
                      <CourseStatusDate/>
                      <CourseScore/>
                      <Lesson>
                         <LessonCode/>
                         <LessonName/>
                         <LessonStatus/>
                         <LessonStatusDate/>
                         <ExamInteractions>
                            <QuesNum/>
                            <StudentResp/>
                            <CorrectResp/>
                            <Judged/>
                         </ExamInteractions>
                      </Lesson>
                   </Student>
                </Course>
             </Courses>
          </GetStudentsExResult>
       </GetStudentsExResponse>
    </ns0:Course_Response_MT>
    and  the xslt mapping that I have written for this is:
    <?xml version='1.0' encoding='utf-8' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:sce-com:xi:fi:goyala" xmlns:DateUtils="com.sce.hcm.xi.util.DateUtils">
         <xsl:template match="/">
              <a:Course_Response_MT>
                   <GetStudentsExResponse>
                        <GetStudentsExResult>
                             <Courses>
                                  <CourseName>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course[@CourseName]"/>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course[@CourseID]"/>
                                       <Student>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@LastName]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@FirstName]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@SSN]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@LoginID]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@CourseStatus]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@CourseStatusDate]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@CourseScore]"/>
                                            <Lesson>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonCode]"/>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonName]"/>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonStatus]"/>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonStatusDate]"/>
                                                 <ExamInteractions>
                                                             <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@QuesNum]"/>
                                                             <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@StudentResp]"/>
                                                             <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@CorrectResp]"/>
                                                                   <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@Judged]"/>
                                                 </ExamInteractions>
                                            </Lesson>
                                       </Student>                                   
                                  </CourseName>
                             </Courses>
                        </GetStudentsExResult>
                   </GetStudentsExResponse>                                        
              </a:Course_Response_MT>
         </xsl:template>
    </xsl:stylesheet>
    But This mapping is not working...  I am getting errors...
    Pls advice, this is urgent..
    Regards,
    XIer
    Edited by: XIer on Apr 25, 2008 12:23 PM
    Edited by: XIer on Apr 25, 2008 12:37 PM
    Edited by: XIer on Apr 25, 2008 12:37 PM

    Hi All,
              I have now modified my XSLT Mapping as :
    <?xml version='1.0' encoding='utf-8' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:sce-com:xi:fi:goyala" xmlns:DateUtils="com.sce.hcm.xi.util.DateUtils">
         <xsl:template match="/">
              <a:Course_Response_MT>
                   <GetStudentsExResponse>
                   <xsl:value-of select="a:GetStudentsExResponse"/>
                        <GetStudentsExResult>
                        <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult"/>
                             <Courses>
                             <xsl:for-each select="a:GetStudentsExResponse/GetStudentsExResult/Courses">
                                  <Course>
                                   <CourseName>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/@CourseName"/>
                                       </CourseName>
                                       <CourseID>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/@CourseID"/>
                                       </CourseID>
                                       <xsl:for-each select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student">
                                       <Student>
                                       <LastName>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@LastName"/></LastName>
                                       <FirstName>     <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@FirstName"/></FirstName>
                                            <SSN><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@SSN"/></SSN>
                                            <LoginID><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@LoginID"/></LoginID>
                                            <CourseStatus><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@CourseStatus"/></CourseStatus>
                                            <CourseStatusDate><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@CourseStatusDate"/></CourseStatusDate>
                                            <CourseScore><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@CourseScore"/></CourseScore>
                                            <xsl:for-each select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson">
                                            <Lesson>
                                                 <LessonCode><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonCode"/></LessonCode>
                                                 <LessonName><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonName"/></LessonName>
                                                 <LessonStatus><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonStatus"/></LessonStatus>
                                                 <LessonStatusDate><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonStatusDate"/></LessonStatusDate>
                                                 <ExamInteractions>
                                                      <QuesNum>       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@QuesNum"/></QuesNum>
                                                      <StudentResp>       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@StudentResp"/></StudentResp>
                                                      <CorrectResp>       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@CorrectResp"/></CorrectResp>
                                                         <Judged>          <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@Judged"/></Judged>
                                                 </ExamInteractions>
                                            </Lesson>
                                            </xsl:for-each>
                                       </Student>                                   
                                  </xsl:for-each>
                                  </Course>
                                  </xsl:for-each>
                             </Courses>
                        </GetStudentsExResult>
                   </GetStudentsExResponse>                                        
              </a:Course_Response_MT>
         </xsl:template>
    </xsl:stylesheet>     
    However when i execute this mapping in IR, I get empty tags at the target side:
    <?xml version="1.0" encoding="UTF-8"?>
    <a:Course_Response_MT xmlns:a="urn:sce-com:xi:fi:goyala"><GetStudentsExResponse><GetStudentsExResult><Courses/></GetStudentsExResult></GetStudentsExResponse></a:Course_Response_MT>
    Please Advice....
    Regards,
    XIer

  • Need help in modifying mapping parameters of out the box mapping

    Hi There,
    I am a new bee to dac.
    Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task.
    We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not see any values in it.
    But when I set any value, and validate it. It is successful.
    Is it right way to do it?
    What my concern is, When I initially go and see parameter values under maapings tab in a mapping, they are blank.
    Where is it storing these values?
    Thanks,
    Rag

    If you modify mapping then u have to create new task in dac and dac itself craete parameter file at run time. if you want to add more parameters then do it in dac system parameters tab.
    Thanks
    Jay.

  • I need help with my mapping - CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV

    hi, guys, i need help with my mapping, i dont know this error (i not speak english)
    <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
    <Trace level="2" type="T">......attachment XI_Context not found </Trace>
    <Trace level="3" type="T">Mapping already defined in interface determination </Trace>
    <Trace level="3" type="T">Object ID of Interface Mapping 4B903E2DDC853C1493E1DED5C5ED70A3 </Trace>
    <Trace level="3" type="T">Version ID of Interface Mapping 88D96A70BAAE11DFAE5EE925C0A800C2 </Trace>
    <Trace level="1" type="T">Mapping-Object-Id:4B903E2DDC853C1493E1DED5C5ED70A3 </Trace>
    <Trace level="1" type="T">Mapping-SWCV:88D96A70BAAE11DFAE5EE925C0A800C2 </Trace>
    <Trace level="1" type="T">Mapping-Step:1 </Trace>
    <Trace level="1" type="T">Mapping-Type:JAVA_JDK </Trace>
    <Trace level="1" type="T">Mapping-Program:com/sap/xi/tf/_mm_sgipi_fi001_vta_clientes_ </Trace>
    <Trace level="3" type="T">MTOM Attachments Are Written to the Payload </Trace>
    <Trace level="3" type="T">Dynamic Configuration Is Empty </Trace>
    <Trace level="3" type="T">Executing multi-mapping </Trace>
    <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
    help me please

    you can use the sharedobject to record a user/computer has taken your quiz, the session data and record their results.  at the start of your quiz, check for the sharedobject and, if it exists, check the other data and take appropriate action.

  • Need Filename in XSLT Mapping.

    Hi ,
    I am doing File to IDOC scenario.
    I am using XSLT mapping.
    My Target fielld is having  " File Name " field.
    I need to pass the source file name to that field.
    I am using XSLT Mapping.
    How to call the Filename and map the value to that field in XSLT.
    Regards,
    Jayasimha Jangam

    This is one of the better part of the online help:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/frameset.htm
    Just replace 'Directory' with 'FileName'.
    I have used that, it works fine.
    Regards
    Stefan

  • Help in XSLT Mapping

    Hi mates,
    I'm trying out the scenario in one of michal's blogs
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    my source message is as follows
    <i><?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ErrorDetails xmlns:ns0="http://xyz.com/utility/errors/ReportErrors">
       <Object_Error>
          <Client/>
          <Logical_System/>
          <Object_Type/>
          <Object_Key>1234</Object_Key>
          <Error_Message/>
       </Object_Error>
       <Object_Error>
          <Client/>
          <Logical_System/>
          <Object_Type/>
          <Object_Key>1235</Object_Key>
          <Error_Message/>
       </Object_Error>
    </ns0:MT_ErrorDetails></i>
    I'm trying to generate o/p which will have 'Object_key's separated by line break i.e. new line.
    I wrote teh following XSLT code in XSLT_TOOL.
    <xsl:transform version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:sap="http://www.sap.com/sapxsl"
    >
    <xsl:strip-space elements="*"/>
    <xsl:template match="/">
    <html>
    <body>
    </body>
    <p>
    <strong>The following is the list of Material Numbers with errors</strong>
    </p>
    <p>
    <ol>
    <xsl:for-each select="Object_Error">
    <li value="0">
    <xsl:value-of select="Object_Key"/>
    </li>
    </xsl:for-each>
    </ol>
    </p>
    </html>
    </xsl:template>
    </xsl:transform>
    I wrote this based on XSLT mapping given in the blog. But my mapping is not giving me the required result. It gives the following o/p.
    <i><html><body></body><p><strong>The following is the list of Material
    Numbers with errors</strong></p><p><ol></ol></p></html></i>
    It doesnt select the 'Object Key's. What is wrong/missing in the XSLT mapping..XSLT gurus please help out this beginner.
    I highly appreciate your inputs.
    thx in adv
    praveen

    Hi Praveen,
    I think the reference in your loop is not correct.
    Try
    <xsl:for-each select="Object_Error/Object_Key">
    <li value="0">
    <xsl:value-of select="."/>
    </li>
    </xsl:for-each>
    or
    <xsl:for-each select="Object_Error">
    <li value="0">
    <xsl:value-of select="./Object_Key"/>
    </li>
    </xsl:for-each>
    both should work.
    regards
    Dirk

  • Need help with instruments mapping

    I have Korg PA80 and i hooked up midi out from it to midi in to Logic8, I have some nice realtime accompaniment tunes i can play on that keyboard, what i want to do is to play on my PA80 accompaniment tracks but replace all sounds with my custom sounds from my Logic plug ins, right now when I hit play all i hear is some garbage playing because no instruments properly mapped on Logic, I even created all 16 instrument tracks and set them all on all 16 channels, drums on 10 and so on, but when i start play on PA80 in Logic I still hear like bass trying to play all parts and not bass part only, same for drums when i press Am or Dm drums will play properly with some another drums sounds that trying to play all other instruments parts, need to separate them so the bass will play only bass part, drums will play drum part and so on, need help on how can i do that, lets say for drums i will choose logic drums sounds, for base Logic bases and so on, so Logic will become something like sound module for my PA80 instead of internal sounds I would like to use my virtual instruments sounds, thanks a lot

    Thanks for your reply Dave.
    I have no answer to your question but I found a way to create my SQL code with OWB mapping operators. Unfortunately it is very very slow compared to the execution of the SQL code and therefore not useful at all. I connected the following steps all in one mapping:
    1. Table operator(T006_SITE) -> Filter(T006A01PK_SITEID where T006A11FK_COUNTRYID IS NULL)
    2. Table operator(T002_COUNTRY) -> AGG (MAX T002A01PK_COUNTRYID)
    3. JOIN the output from 1. and 2.(T006A01PK_SITEID and T002A01PK_COUNTRYID))
    4. UPDATE T006_SITE with the output from 3. (T006A01PK_SITEID as matching column and T006A11FK_COUNTRYID as column to be updated)
    The execution mode of the mapping should be set-based fail over to row-based, but it used row-based mode even without getting an error. Are UPDATE mappings only executable in row-based mode or is there a way to change that?
    Does anyone have an idea how I can speed up that mapping or integrate my SQL code in the OWB?
    Thanks in advance,
    Dirk

  • New to Illustrator, need help creating a map?

    Need to create a map of a neighborhood.  New to program any help would be great!

    rdelaroca,
    There are vector maps available for many areas.
    Or you may work on a locked image from Google Maps or something including the important parts/themes/whatever, using the Pen Tool as the primary tool for shapes in general.

  • Plz , need help on IDOC mapping

    Hi friends
    I need help on mapping IDOC (invoic02) to a customer fields to be sent to a printhouse .
    The idoc contains several Item lines , from 1  and up after for instance
    The fields  E1EDP01-MENGE and E1EDP26-BETRG  could be repeated many times , the customer wants  eah line item (quantity , price and subtotal )  in separate  lines.
    What is the best approach to do the mapping , and how can I loop in the idoc segments in order to get each line separetly.
    Many thanks in advance.

    Hi
    Thanks again , plz bear with me as i am new to this kind of assignment.
    This is a part of my requirement, so i suppose that I have to create a Data type as node for the customer fields corresponding to the node in IDOC and just map the source node to the target node , and it will repeat it self as many times as there is line items in the sales order.
    Customer fields              Idoc fields.
                        segment E1EDP01
    DETAIL_ANTAL     E1EDP01-MENGE  -  LOOP
                         segment E1EDP26
    DETAIL_STK_PRIS     E1EDP26-BETRG - QUALIFIER = 001- LOOP
    DETAIL_SUBTOTAL     E1EDP26-BETRG - QUALIFIER = 003 LOOP
    If I change the context of the source, will it not affect the source node at all.
    best regrads.

  • Please I need help with mokia maps!

    Hello! I have bought my phone Nokia N76 and I found nokia maps v 1.2 in it, I tried to install nokia maps v 2 but it says "update error"!
    when I tried to remove nokia maps 1.2 from the menu, it says unable to delete I tried this from the menu as it is not listed in the application manger list ! what shalI do?! . I don't wan't to update the software (it's the lastest). please if anybody knows help me please?
    Message Edited by Twilight28 on 23-Nov-2009 06:53 PM
    Message Edited by Twilight28 on 23-Nov-2009 06:54 PM

    Reading above posts I seem to remember that for early versions of Nokia Maps the map data is stored in E:\Private\20001f63\diskcache\ NOT E:\CITIES as for later versions, so try deleting these + .qf file. You would need to enable "show hidden & system" files on your PC to see these however.
    Provided that you carry out *#7370# or three finger reset (erases ALL data) after deleting these folder/files, you should really be able to install Nokia_Maps_2.0_4503_3.1.sis from here: http://nds1.nokia.com/files/support/global/phones/software/Nokia_Maps_2.0_4503_3.1.sis
    You would need to run Nokia Maps application to create folder structure on memory card required to download mapping.
    Happy to have helped forum with a Support Ratio = 42.5

  • Need help in XSLT

    Hi all, I am working on xslt for the xml document which is similar to this :-
    <?xml version="1.0" encoding="UTF-8"?>
         <soapenv:Envelope      xmlns:soapenv="peopledirectory">
         *<soapenv:Header/>*
         <soap-env:Body      xmlns:soap-env="propleaccess">
         <medi:MEDI_DEV_OSB_POCOutputCollection      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:medi="http://xmlns.oracle.com/pcbpel/adapter/db/MEDI_DEV_OSB_POC">
    <medi:MEDI_DEV_OSB_POCOutput>
         <medi:STUDYID>123</medi:STUDYID>
         <medi:DOMAIN>CTS</medi:DOMAIN>
    </medi:MEDI_DEV_OSB_POCOutput>
    <medi:MEDI_DEV_OSB_POCOutput>
         <medi:STUDYID>123</medi:STUDYID>
         <medi:DOMAIN>CTS</medi:DOMAIN>
    </medi:MEDI_DEV_OSB_POCOutput>
         </medi:MEDI_DEV_OSB_POCOutputCollection>
         </soap-env:Body>
         </soapenv:Envelope>
    In the above xml if you observe the part in Bold it is an element which is closed inside the envelope with no matter in it.. I wonder how to go beyond this <Header/> element using
    xpath so as to select it in the template tag. I need the result xml should be somethiing like the below :-
    <?xml version="1.0" encoding="UTF-8"?>
         <soapenv:Envelope      xmlns:soapenv="peopledirectory">
         <soapenv:Header/>
         <soap-env:Body      xmlns:soap-env="propleaccess">
         <medi:MEDI_DEV_OSB_POCOutputCollection      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:medi="http://xmlns.oracle.com/pcbpel/adapter/db/MEDI_DEV_OSB_POC">
    <medi:MEDI_DEV_OSB_POCOutput>
    <NewElement1 name = STUDENTID value = 123/>
    <NewElement2 name = DOMAIN value = CTS/>
    </medi:MEDI_DEV_OSB_POCOutput>
    Something like this...
    To achieve this I wrote the below xslt
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:soapenv="peopledirectory" xmlns:soap-env="propleaccess          xmlns:medi="http://xmlns.oracle.com/pcbpel/adapter/db/MEDI_DEV_OSB_POC">
    <xsl:output method = "xml" intend = "yes"/>
    <xsl:template match = "soapenv:Envelope/soapenv:Header"></xsl:template>
    <xsl:template match = "soapenv:Envelope/soap-env:Body/medi:MEDI_DEV_OSB_POCOutputCollection/medi:MEDI_DEV_OSB_POCOutput" >
         <xsl:for-each select="medi:MEDI_DEV_OSB_POCOutput/medi:STUDYID">
         <xsl:element name="Name">
         <xsl:value-of select="medi:STUDYID"></xsl:value-of>
         </xsl:element>
         </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    Using this xslt I am not getting the result xml as how I needed. I am getting just the text values of nodes in my result xml. Kindly help me on this.
    Thanks,
    Phanindra.

    If by NewElement1, NewElement2... you mean NewElement literally (replaced by whatever real name you choose) whereas 1,2,... have no generic meaning, you can do this.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:soapenv="peopledirectory"
        xmlns:soap-env="propleaccess"
        xmlns:medi="http://xmlns.oracle.com/pcbpel/adapter/db/MEDI_DEV_OSB_POC">
    <xsl:output method = "xml" indent="yes"/>
    <xsl:strip-space elements="*" />
    <xsl:template match="*|@*|text()|processing-instruction()|comment()">
        <xsl:copy>
            <xsl:apply-templates select="*|@*|text()|processing-instruction()|comment()" />
        </xsl:copy>
    </xsl:template>
    <xsl:template match = "medi:MEDI_DEV_OSB_POCOutput" >
        <xsl:copy>
            <xsl:for-each select="*">
                <NewElement name="{local-name()}" value="{normalize-space()}" />
            </xsl:for-each>
        </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>If you attach generic meaning to 1,2,... you can replace the corresponding template by this.
    <xsl:template match = "medi:MEDI_DEV_OSB_POCOutput" >
        <xsl:copy>
            <xsl:for-each select="*">
                <xsl:element name="{concat('NewElement',position())}">
                    <xsl:attribute name="name">
                        <xsl:value-of select="local-name()" />
                    </xsl:attribute>
                    <xsl:attribute name="value">
                        <xsl:value-of select="normalize-space()" />
                    </xsl:attribute>
                </xsl:element>
            </xsl:for-each>
        </xsl:copy>
    </xsl:template>I go for these details just because some technique used might help you one-day in other contexts.
    Edited by: tsuji on Feb 15, 2012 2:26 AM Essential correction made to the 2nd template.

  • Need help in Message Mapping

    Hi Folks,
    I have below Query. Can you please suggest how do i solve below case.
    My source system has 4 fileds A , B, C, D and the target system has 1 Filed TOTAL.
    I have to concatenate all the 4 source fields by using slash(/) and placed in TOTAL target field.
    i need output has A/B/C/D.
    but here is my Query?  if any one of the field is not present in source field i.e. if source B filed is empty then I have to print Output has  A/C/D.
    NOTE:  there is no empty slashes for B.
    Please help me on this issue.
    Thanks,
    Enivass

    Hi Supriya,
    Actually I didnot get ur mapping shot
    Can u tell me some more briefly plzzz
    I tried blow
    A
             concat  -
    >    trim -
    > then what i have to use.       
    Thanks,
    Enivass
    Edited by: enivas on Oct 20, 2010 9:47 AM

  • Need help in header mapping!!

    Hi, because we have an third party system i think i have to use header mapping in receiver agreement!
    For outgoing IDocs everything works fine, incoming aren't be transfered to target system.
    I have:
    ThirdParty: EDI
    BusinessService: EDI_Test
    Business System: Q01CLNT010
    Incoming receiver agreement looks like this:
    Sender
    Party: EDI
    Service: EDI_Test
    Receiver
    Service: Q01CLNT010
    Interface: DELINS.DELFOR02
    Namespace: urn:sap-com:document:sap:idoc:messages
    Header Mapping (like i thought)
    Sender-Party: EDI
    Sender-Servcie: EDI_Test
    Reciever Party:
    Reciever Service: Q01CLNT010
    The incoming IDoc has follwoing parameters in header Segment:
    - <EDI_DC40 SEGMENT="1">
      <TABNAM>EDI_DC40</TABNAM>
      <MANDT>100</MANDT>
      <DIRECT>1</DIRECT>
      <IDOCTYP>DELFOR02</IDOCTYP>
      <MESTYP>DELINS</MESTYP>
      <STD>V</STD>
      <STDVRS>096001</STDVRS>
      <STDMES>DELINS</STDMES>
      <SNDPOR>EDI</SNDPOR>  [like port in we21]
      <SNDPRT>LS</SNDPRT>
      <SNDPRN>EDI</SNDPRN>
      <RCVPRT>LS</RCVPRT>
      <RCVPFC>LF</RCVPFC>
      <RCVPRN>30396</RCVPRN>
      <CREDAT>20071204</CREDAT>
      <CRETIM>130428</CRETIM>
      <REFMES>DELFOR02</REFMES>
      </EDI_DC40>
    can somebody give me a hand on this?!
    br

    Hi guys,
    because of help approach i wrote what i have done yet. But first i explain what is working.
    We have an EDIServer in our Landscape which sends EDI-Calls. This Calls are triggered from R/3 via XI to EDIServer. This outgoing communication runs. (plz don't ask why we still use EDIServer because of EDI-Adapter for XI)
    I configured this scenario with party!
    But now i want to get calls from EDIServer. So i have to work with send IDocs from EDIServer which this previously tronsforemed from EDI-Format in IDoc-Format.
    So i simply thought i configure scenario the other way round by using the party again. But this does not work out. However, i explain my IB Rep Objects:
    Receiver Determination:
    Sender
    Party: EDI
    Service: EDI_Test
    Interface: DELINS.DELFOR02
    Receiver
    Party: *
    Service: *
    Interface Determination:
    Sender
    Party: EDI
    Service: EDI_Test
    Interface: DELINS.DELFOR02
    Namespace: urn:sap-com:document:sap:idoc:messages
    Receiver
    Party: *
    Service: *
    Sender Agreement:
    Sender
    Party: EDI
    Service: EDI_Test
    Interface: DELINS.DELFOR02
    Namespace: urn:sap-com:document:sap:idoc:messages
    Receiver
    Party:
    Service:
    Receiver Agreement
    Sender
    Party: EDI
    Service: EDI_Test
    Receiver
    Party:
    Service: Q01
    Interface:DELINS.DELFOR02
    Namespace:urn:sap-com:document:sap:idoc:messages
    --> do i need header mapping here?!
    What do i need to do to make this scenario run?!
    br - i highly appreciate ur previous help!!!!

  • Need Help in Context Mapping

    Hi,
    I am having two components.
    Comp A  is main componenet  and Comp B is Used component and using in Comp A.
    Intially I am getting the data from the Comp A ( main Comp) to Comp B(used Comp) by context mapping.
    it is working fine.
    The same way I need in Reverse. From Comp B (Used Comp) to Comp A (Main Comp) i have to get the data .
    how to do context mapping for this.
    pl help.
    Thanks in Advance.
    Kar

    Hi,
    To achieve reverse (external) context mapping, the attribute 'Input Element' in interface node of component B has to be marked. When you declare a component usage of component B in your component A, you will see the interface node under Component Usages->Interface Controllers (in your navigation tree). You can define the mapping here, between the 'Input element' node of component B and the component controller Node in comp A by right click->Define external context mapping.
    Have a look at the [documentation |http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/frameset.htm] in detail.
    You can have a look at the ALV component SALV_WD_TABLE, which uses external context mapping to render the ALV in any component using this component. This will give you a good idea.
    Regards,
    Nithya

  • Need help on message mapping

    Hi,
    Need ur help on below situation.
    I have input file structure as
    - <G_SPO1>
    - <S_PO1>
      <D_350>0001</D_350>
      <D_330>6</D_330>
      <D_355>EA</D_355>
      <D_212>151</D_212>
      <D_235>VC</D_235>
      <D_234>40421-821/1920-02</D_234>
      <D_235_2>SK</D_235_2>
      <D_234_2>427Y73226</D_234_2>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325940</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325957</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325964</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325971</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325988</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325995</D_127>
      </S_REF>
    - <S_REF>
      <D_128>CR</D_128>
      <D_127>WHITEHOUSE,RYAN</D_127>
      </S_REF>
    </S_PO1>
    </G_SPO1>
    I need to map D_127 elements to target field.
    here i need to check conditions.
    IF D_128 = SU then only i need to map D_127 to target field. otherwise ignore that record.
    Plzz let me know how would i map thid field to target field.
    Thanks,
    Singh.

    Lakshmi,
    for PO1 first element is 0001 i need output as
    0060325940
    0060325957
    0060325964
    0060325971
    0060325988
    0060325995
    for next PO1 first element is 0002 then i need output as
    0070325940
    0070325957
    0070325964
    These below fields are present in input file. the above file i mentioned only for PO1 first element D_350 = 0001.
    Presnetly i am geting output as
    0060325940
    0060325957
    0060325964
    0060325971
    0060325988
    0060325995
    0070325940
    0070325957
    0070325964
    but i need to differentiate this output as separate based on D_350 = 0001.
    finally required output is
    if PO1 1st element D-350 = 0001
    then output is
    0060325940
    0060325957
    0060325964
    0060325971
    0060325988
    0060325995
    if PO1 1st element D_350 = 0002
    then
    0070325940
    0070325957
    0070325964
    Plzzzz let me know.
    Thanks,
    Singh.

Maybe you are looking for

  • Cannot install Windows 7 32-bit using Boot Camp

    I have one of the new iMacs (late 2012) and I can't install Windows 7 32-bit using Boot Camp. Whenever I try to being the installation using the Boot Camp Assistant, I always get the following message: "Need 64-bit Windows installation USB drive or D

  • Moving Photoshop Album 2.0 catalogue to Elements 13

    All my photos are on Photoshop Album V2.0 on an old PC running windows XP. I've moved to Macs - OS X Mavericks and want to try and copy my Album catalogue over. I've downloaded Elements 13 free trial on my Mac and am happy with that.  Adobe help says

  • Air Extreme + 2 Air Express = I can't play 2 stereos at the same time - why

    I just got a new airport extreme hoping the the "n" would give me better connectivity to 2 different stereos through 2 airport expresses. I had been using a netgear wireless router that is connected to an actiontec DSL modem. When I had the netgear w

  • Material picking by bin number

    Hello all, Is there any transaction or SAP functionality to consolidate a list with all materials to be picked by bin number relevant to goods issue. Pl post documents or links related to it. Thanks, maxx

  • Import captions from Olympus Master to PSE8

    Just bought Photoshop Elements 8.  Imported photos that had been downloadedearlier into Olympus Master (didn't know was only a temporary license).  Had spent a bunch of time adding captions, but none of the captions transferred with the photos. Is th