Message mapping help needed

I am trying to map target based on a condition. Meaning I want to map E1EDKA2(1..99999) of DESAD01 Idoc to ShipTo(0..1) node if E1EDKA2-PARVW = WE.
I tried all the variations with creatIf and formatByExample but I couldn't able to get it working.
Here is the target XML structure
<Delivery>
   <Header>
       <ShipmentNumber>1234</ShipmentNumber>
       <BOLNumber>ABDC</BOLNumber>
       <ShipTo>
            <Name>XYZ</Name>
       </ShipTo>
       <SoldTo>
            <Name>XYZ</Name>
       </SoldTo>
   </Header>
   <LineItems>
    </LineItems>
</Delivery> 
Thanks
Suman

Hi Sarvesh,
I don't know what is the significance of checking 1 = 1. Anyway I could able to resolve the issue by my self. Thank you very much for taking time to help me.
/ns0:MT_XML_Delivery/Delivery/Header/ShipmentNumber=/DESADV01/IDOC/E1EDK07/VBELN
/ns0:MT_XML_Delivery/Delivery/Header/BOLNumber=/DESADV01/IDOC/E1EDK07/BOLNR
/ns0:MT_XML_Delivery/Delivery/Header/ShipTo=createIf(stringEquals(/DESADV01/IDOC/*E1EDK08*/E1EDKA2/PARVW, const(value=WE)))
/ns0:MT_XML_Delivery/Delivery/Header/ShipTo/Name=replaceString(/DESADV01/IDOC/E1EDK08/E1EDKA2/PARVW, /DESADV01/IDOC/E1EDK08/E1EDKA2/PARVW, /DESADV01/IDOC/E1EDK08/E1EDKA2/NAME1)
/ns0:MT_XML_Delivery/Delivery/Header/ShipTo/AccountNumber=/DESADV01/IDOC/E1EDK08/E1EDKA2/PARTN
XI/PI is really strange. It needs to have that PRVW in the first field mapping, even though it is not being used. I just replaced PARVW with the NAME1 and mapped to name. For the ShipTo, I set E1EDK08 (next higher level structure) as the context.
I think it will take time for me to learn this, as I come from webMethods and XSLT background.
Thanks
Suman

Similar Messages

  • Mapping Help Needed

    Hello Gurus,
      I need help in message mapping. I have a requirement as below.
    E1EDP01 segment contains many E1EDP19 segments
    E1EDP19 segment contains QUALF, KTEXT and many other fields.
    in the output field, for every QUALF = "002", I need the value of KTEXT of the same E1EDP19.
    the output group is repeated per E1EDP01 (this is working fine)
    The problem is that KTEXT segment is not coming in every E1EDP19, so the result is erratic.
    the present code looks like
      Qualf (context E1EDP01)--
                                Equals  -- 
                   const-002 --           IF   --Outputfield
               KTEXT(context E1EDP01)--
    I tried many other things as well, but result is not as expected
    pls help.
    Thanks
    KQ

    Hi,
    I am not sure why it is not working in your case. I developed same mapping and it is giving correct result.
    Source Payload:
    <E1EDP19 SEGMENT="">
                <QUALF>002</QUALF>
                <IDTNR/>
                <KTEXT>A</KTEXT>
      </E1EDP19>
      <E1EDP19 SEGMENT="">
                <QUALF>003</QUALF>
                <IDTNR/>
      </E1EDP19>
      <E1EDP19 SEGMENT="">
                <QUALF>003</QUALF>
      </E1EDP19>
    <E1EDP19 SEGMENT="">
                <QUALF>002</QUALF>
                <IDTNR/>
                <KTEXT>SDN</KTEXT>
      </E1EDP19>
    Target field gets value as "SDN".
    Is this your requirement?
    Answers to your questions:
    1) the context cannot be E1EDP19, cos there are multiple P19 segments in P01 and it should be done on P01, as the output is based on per P01.
    Even if you are creating target based on line item level (E1EDP01), every E1EDP01 segment will have E1EDP19 and KTEXT with QUALF = 002. Also KTEXT of same E1EDP01 should go to target. Hence in your mapping context should be at E1EDP19 level.
    2) the Qualf comes more number of times than KTEXT, so they are not "matching" at context level.
    Map with default function will take care of this.
    -Gouri

  • Message Mapping Help XMLDocument with in XML

    I am trying to pass on some XMLDocument with in XML
    Example
    <Header>
    <Detail><Text1>Text</Text1><Text2>Text</Text2></Detail>
    </Header>
    Message mapping giving error at present. My Message Type has only the following
    <Header>
    <Detail>
    I am trying to include <Text1>Text</Text1><Text2>Text</Text2> with in Detail section. Not sure how to handle this with Message Map. Please explain if there is any possibility to achieve something like this

    Hi,
    You can directly use CDATA in message mapping and can solve this.
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Else you can use xsl mapping as mentioned in this thread:
    Re: CDATA in xml file
    You can also try java mapping as mentioned here:
    XML inside a field in XI
    If you can give complete source payload, source message type and target message type then somebody here can help you out.
    Regards,
    ---Satish

  • Message mapping help

    Hi,
    I am doing graphical message mapping.
    Source structure looks like
    <BAC>
    <IXYZ>
    <DEF>
    <PQR>
    All are 0.. 1.
    Target field is item which is also 0.. unbounded.
    If ABC is not blank, assign to target  field item[0] as 1st occurance.
    If DEF is not blank, assign the same to item[1] field as 2nd occurance and so on.
    Can this be done using message mapping without udf or java? If not, pls let me know other ways.
    Thanks
    anand

    Hi,
    <ABC> -> lenth Function (TEXT)-> Greate Then -> 0 (using the IF Condition)
      <ABC> -> CopyValue(docuble click and give the index 0) -> to Target
    <DEF> -> lenth Function (TEXT)-> Greate Then -> 0 (using the IF Condition)
      <DEF> -> CopyValue(docuble click and give the index 1) -> to Target
    Regards,
    Venu.

  • Mapping Help Needed - Message or Java UDF

    Hello Gurus,
       I have a source structure as below.
    Idoc
    -group_a (0 to 99999)
    --  sub_groupa_1 (0 to 99999)
          sga1_field_1
           sga1_field_2
    --  sub_groupa_2
         sga2_field_1
         sga2_field_2
    --  sub_groupa_n
         sgan_field_1
         sgan_field_2
    -group_n
    --  sub_groupn_1
         sgn1_field_1
         sgn1_field_2
    --  sub_groupn_2
         sgn2_field_1
         sgn2_field_2
    --  sub_groupn_n
         sgnn_field_1
         sgnn_field_2
    every group creates an output group (lineitem), that works fine 
    now my requirement is as below
    a particular output field (per output group) = sum (sub_field_2s) wherever sub_field_1s = first occurence of sub_fld_1 of the corresponding group
    I tried different things, but could not get the required results.
    pls let me know if my explanation is not clear..
    Please help..
    thanks
    KnowledgeQuest.

    Hi,
    Please provide your source and target structure...Also, if possible, please provide sample inputs/outputs so that we can visualize your problem correctly.
    hope this helps,

  • ABAP MAPPING:Help needed

    Hi Friends,
    I have a scenario where I need to pick up  Idocs out of a packet of Idocs .The Idocs will be picked by checking for a certain condition for the Idoc Segement and of all the Idocs the Idocs which satisfy a particular condition should only be output and for this I have been asked to achieve this using ABAP Mapping.So any info in this regard would be of great help for me.
    Packet of Idocs----
    >  Idocs satisfying the cond.
      (sender)*********(Check for a condition)*****(Receiver)
    Please do provide with me a sample coding if possible.Please take up this with some priority.
    Thanks & Regards,
    Pradeep.

    Hi All,
    The output from the ABAP class needs to be transformed into a different message using Graphical Mapping .
    Please provide me some inputs for creating this ABAP mapping.
    Thanks & Regards,
    Pradeep.

  • Graphical mess-mapping help needed: select single segment from many

    Hi All,
    I am sending a standard PO IDOC from R/3  and converting it into a file before sending to 3rd party.
    The IDOC used is ORDERS.
    In this IDOC segment E1EDK14 gets repeated in R/3 and I want to use the value of 009th occurance (E1EDK14 009) to map my values.
    When I look at XML, it looks as follows
    <E1EDK14 SEGMENT="1">
             <QUALF>014</QUALF>
             <ORGID>AB1</ORGID>
          </E1EDK14>
          <E1EDK14 SEGMENT="1">
             <QUALF>009</QUALF>
             <ORGID>CD1</ORGID>
          </E1EDK14>
          <E1EDK14 SEGMENT="1">
             <QUALF>013</QUALF>
             <ORGID>AA</ORGID>
          </E1EDK14>
          <E1EDK14 SEGMENT="1">
             <QUALF>011</QUALF>
             <ORGID>GDE</ORGID>
          </E1EDK14>
    I need to get the ORGID value of 009th segment( i.e when QUALF (above) has value '009'.
    I tried to put a simple if condition in mapping (if qualf = 009-->then get ORGID), but it does not work.
    Can you help.
    Many thanks
    Shirin

    Thanks Prakasu,
    I tried it again, but it is picking the first segment value and not the 009th one.
    Many thanks
    Shirin
    Edited by: Shirin K on Oct 24, 2008 10:56 AM
    Edited by: Shirin K on Oct 24, 2008 11:00 AM

  • Value Mapping -- Help needed.

    Hi experts,
    I have a scenario ,
    I have 2 fields in my source structure and based on these two fields,i need to fetch 8 field values from a table to map into idoc control record.
    The table might be in SAP or in Legacy
    If it is a Ztable in SAP, how can I achieve this?
    If it is in Legacay , how can I achieve this?
    My client told us to do this through Value mapping?
    Please help me in acheiving this.
    Thanks in advance.
    Regards
    Krupa.

    Hi,
    Use the RFC Lookup API to call an RFC from the mapping and get the values from the Table in the R3 system . Look into this document by Michal to understand RFC lookup,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    Else, use value mapping as shown in this blog,
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    Regards
    Bhavesh

  • BDC messages - URGENT HELP NEEDED

    Hi All,
    I have a ALV. The user gets a buttons in the toolbar, which executes a BDC in the Background. the BDC is called using Call transaction method. The messages are collected in an internal Table of type BDCMSGCOLL .
      I need to know how do i print these messages on a new screen with ICONS.
    Please HELP.
    Thanks

    Hi,
    whenever user press the pushbutton it will execute the table in background.
    for this requirement plz use the sm37 there u can run the bdc program in that u provide the job name and jobcount.
    plz give  the structure name bdcmsgcoll and i u want only the error message plz specify the mode as E and updated u can choose what ever u want.
    Rgds,
    P.Naganjana Reddy

  • XSLT Mapping Help Needed

    Hi,
    I have a XSD file with multiple references in my external definition. I am trying to build a schema validation functionality for a xml based on the multiple XSD's.
    Is it possible to do a schema validation using xslt mapping?
    I am using Altova mapforce to generate XSLT mapping but somehow it is not working. It gives me an error "XML Not well Formed".
    Please help!!

    Hi Jyanth
    yes you can do this
    i advice you to use XML Schema Tools like stylus studio or spy for editing, mapping, converting, validating, generating, binding and documenting any XML data model
    few  links for you how you can do in XML
    validating XML using XSLT
    http://www.ldodds.com/papers/schematron_xsltuk.html
    http://www.w3.org/TR/xslt20/
    http://www.stylusstudio.com/xsd_to_xsd.html
    https://www.xsltstudio.com/xml_schema.html
    regards
    Sandeep
    If helpful kindly reward points

  • ITunes corrupt file message - urgent help needed please

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

  • XML to IDOC : Hierarchy mapping help needed

    Hi All,
    I am trying to complete graphical mapping for an XML to IDOC structure. Both structures are EXACTLY same, but data is not populating in IDOC as desired.
    My incoming XML structure and IDOC structure is
    Header
    Data_header  (1 -- 999)
      |_Data_item (1 -- 3)
    Trailer
    If I have only 1 header, then IDOC data is populated correctly.
    But when I have multiple headers and theer items, the Headers are getting populated, but items do not get populated correctly.
    *Example  My Input is:*
    Header
    Data_header
      |_Item_1
      |_item_2
    Data_header
      |_item_3
    Trailer
    My output is (IDOC)
    Header
    Data_header
      |_Item_1
    Data_header
      |_Item_2
    Trailer
    As seen above Item3 of Data_header2 has gone missing._
    For Data Header, I am using REMOVE_CONTEXT function and for ITEM I am using SPLITBYVALUE. Thought this should have helped, but am struggling.
    Any tips, help, greatly appreciated.
    Many thanks
    Shirin

    Hello,
    Have you done one to one mapping, as u mentiong they are exactly same..
    if that's the case, then mapping test should be successful.
    If there is any diffrence in occurences of target structure or any other difference and let me know.
    If possible send me the target structure...
    Regards,
    Sreenivas.

  • PP Scenario Mapping help Needed

    Hi Guys
    Can anyone please help to map the following scenario?
    <b>Scenario:</b> SAP PP
    <b>Product:</b> Ingot
    <b>Size:</b> Ingot 100 X 100, Ingot 125 X 125, Ingot 160 X160
    <b>Grade:</b> A, B, C,……
    <b>Saleable Item:</b> Ingot100 X100 Grade A, Ingot100 X100 Grade B, Ingot160 X160 Grade C etc. (i.e. combination of Grade & Size will determine the saleable items.)
    <b>Characteristics to determine Grades:</b> Carbon%, Phos%, Mn%,………
    <b>Requirement:</b>
    1.     Planning scenario make to Stock and stock will be maintained size and grade basis(e.g. Ingot100 X100 Grade A = 110 TO, Ingot 100X100 Grade B = 124 TO etc.).
    2.     Planning will be done at Ingot level.
    3.     Batch no will be used to track the heat number during GR of Billet.
    4.     There will be a BOM & Routing to produce Billet.
    5.     Size and grade will be determined during quality Inspection i.e. as per MIC (Carbon%, Phos%, Mn%,………etc) value.
    <b>SAP requirement:</b>
    1.     Planning Strategy for Ingot.
    2.     In which Stage production confirmation will be carried out.
    3.     Process mapping for saleable items.(Whether it’s necessary to open individual material code for each saleable items. If yes what will be the planning strategy for saleable items. But if no what will be the mapping)
    4.     Costing basis (at Ingot level or at saleable item level? If at saleable item level then what will be the cost components in between Ingot and saleable item level)
    Looking forward for any valuable suggestion.
    With Best Regards
    Soumya Das
    SAP PP-PS Consultant
    Kolkata
    Hello: +919755138074

    Basically I am FI/CO consultant and worked on CO implementation project. So based on my costing view ,I can give you some  rough Idea.
    1) As your planning is make to stock  , but still  does your production planning flows from your sales planning or not. In SAP you can  create your production planning either directly or from your sales planning.
    2) You can Plan your material down the bill of material also i.e
    at the raw material level level also. Technically each of your finished product might have standard BOM quantity and standard tak time (cycle time ) for each process which is defined in routing.So when BOM is exploded at the time of demand creation ,it explodes both your bill of material as well as your routing.Inshort if your FG  is made up of  X quantity of A and Y quanitity of B plus it goes machining activity of 5 minutes for each quantity produced . So If my production planning is of 1000 unit . Then after explosion it will plan
    1000X of A and 1000Y of B plus 5000 minutes machine time will ple planned.And based on production lead time,procurement lead time and available stock,and available capacity for production,it will schedule the production.
    3) Confirmation will be done again based on the requirement.If you want calculate WIP stock at each stage .Then it has to be confirmed at each stage to know the WIP stages. Plus at what process you do the quality inspection.In that case you have to confirm the process and then make the qc and then you have to start the new operation.
    4) Yes you have to open the seperate material code for the saleable material as well as semifinished material.Your SFG will also contain the BOM and routing
    5) Costing will be basically your raw material cost(which will come from bom),material overhead(come from costing sheet), Process cost(come from routing),manufacturing obverhead(come from costing sheet),administrative overhead(come from costing sheet) and sales and distribution overhead(come from costing sheet) depending on the costing requirement.
    Regards
    Sameer Kumar

  • Time mapping help needed

    I have used the time mapping feature to speed up/fast-forward a segment of my video. It looks just the way that I want it to. However, after the fast-forward segment is over, the audio does not work for the normal-speed section afterwards. Any suggestions?

    reed721
    The audio is going to need special considerations in this Time Remapping workflow. This is one way to get around certain feature limitations to cooridinate audio with the video clip to which fast motion has been applied to a portion of it.
    Remember, in the fast motion area of the video clip, frames have been removed by the technique in order to apply the fast motion effect, and duration is shortened in the process. So, when you are finished in the Time Remapping workspace and returned to the Premiere Elements Expert workspace, that fast motion video is going to have a shorter duration than the original. And, your audio track will be at the original duration of the file.
    1. In the Premiere Elements Expert workspace, unlink the audio from the video (to do that, right click the file on the Timeline and select Unlink Audio and Video).
    2. Identify the segment of the video to which fast motion is to be applied with Time Remapping. Note the times, example, segment 00;00;24;22 to 00;00;45;07.
    3. With the Scissors Tool (using tab on Timeline Indicator stem or shortcut Ctrl+K), cut the audio at 00;00;24;22 and at 00;00;45;07, giving you 3 audio segments.
    4. Select the Timeline video, go to Tools Menu/Time Remapping, and open the Time Remapping workspace.
    5. In the Time Remapping workspace, establish your Fast Motion Time Zone using the times of 00;00;24;22 to 00;00;45;07 for the Time Zone. Click Done when finished.
    6. When you are back in the Premiere Elements Expert workpace
    a. You will work on your 3 segments of audio.
    b. Leave the first audio where it is. Move the second audio down from Audio 1 to Narration or Soundtrack, just to get it out of the way.
    c. Take the third audio and move it to the left so that its end matches up with the end of the fast motion video clip above it.
    d. Then adjust the duration of the second clip which has been out of the way on another audio track.
    Two different effects can be produced here...the second audio will be placed on Audio 1 directly below the fast motion portion of the video clip AFTER its duration has been decreased while it is still in its "out of the way" location.
    One way...with the mouse cursor drag the end of the audio to the left to decrease its duration to fit the gap between first and third audio. Move the duration shortened second audio up to fit the gap between the first and third audio on Audio 1.
    Second way...determine the duration of the gap between the first and third audio, and use Time Stretch to decrease the duration of the second clip so that it fits the gap between the first and third audio. Move the duration shortened second audio up to fit the gap between the first and third audio on Audio 1.
    Please check out the details and see if any of that works for you. I have road tested it. Please let me know if you need clarification on the details. I will provide screenshots if necessary.
    Thanks.
    ATR

  • Mobile maps help needed!

    I'm trying to design and develop an application which uses Location Based Services and basicaly shows an interactive map of the current location.
    I would like to ask if anyone knows where to start, I know more or less how to use JSR-179. Let's say I have current coordinates and then I want to display the map, the point is I would like to know which way to go from here.
    The Google Maps API is fairly easy if you use Java Script and a web browser, does anyone know how to get the map from google or maybe yahoo and display it in the midlet without the browser?
    There is a midlet available straight from google (mobile goolge maps http://www.google.com/gmm ) which is just great, I have no idea how it is implemented, If anyone knows, please send me some suggestions.
    I would like to accompish all the processing of the retrived images(possible from the google maps server) with Java EE and then retrive them and display them on the mobile (maybe as an XML file - SVGt image). Anyway, I hope I have described the idea, as I said I don't know where to go, and if there is someone with some experience with that kind of staff please help, this is my final year project and I'm not asking for the solution, just for some directions and the proper way of implementing those things.
    Thanks a lot in advance!

    You can use the Yahoo Maps API. It has a REST interface.
    http://developer.yahoo.com/maps/rest/V1/mapImage.html
    You can parse response and download the image.
    Alternatively you can use a server as an intermediary. For example, you can send your server the coords and options, then your server would talk to Google or Yahoo and retrieve the map image.
    I created an example app some time ago that will use the Yahoo Maps image. The project page is http://gallery.yahoo.com/apps/10685 and the source code is available on http://hostj2me.com/appdetails.html?id=2875
    It takes up to minute to initialize and retrieve the initial coords. But here is how it works.
    1) get GPS coods
    2) send cords (http get) to Yahoo
    3) parse XML response and retrieve image URL
    4) download and display image from URL

Maybe you are looking for

  • Programs repeatedly crashing on my late 2012 Mac Mini Fusion Drive

    I have a late 2012 Mac Mini Fusion Drive 2.6ghz, 16gig RAM running Mac OSX 10.9.4 . For the past week or so I have had a number of programs - both Apple and third party apps crash repeatedly, I have repaired permissions and restarted numerous times b

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime? I look the properties of items in help and found nothing about this! It's possible?

  • Using BAPI for outbound delivery processing "BAPI_DELIVERYPROCESSING_EXEC"

    Hi all, I am using this bapi "BAPI_DELIVERYPROCESSING_EXEC" for Outound delivery processing. But How can I use this BAPI for Batch Split functionality. Because Here we have to enter batch also while processing outbound delivery with reference to Sale

  • Email - My Verizon Page

    There are 2 issues i have with the My Verizon Page and they dont go away: 1.  That message saying 'Action Needed' asking me to verify my email address. What is this? I click on send email verification , then it says sent and I x out and then when I g

  • TS1424 Can Anyone help me please?

    I downloaded this app called maramedia. We have to use iPads for my school this year and inside the app are variable manuels and textbooks. I have downloaded and bought two already. Now I've tried downloading my other books and it just doesn't want t