Mapping nodes on condition

Hello experts
I am stuck at a specific mapping requirement and i need your help to get me out of it. I am stuck with contexts . I tried using UDFs to manipulate contexts . But my mapping fails in one particular case which is strange and i don't know how to fix it. the exmple below is the case when it fails.
my input file is : it has structure   Data_Record ( unbounded)
                                                             Line_feed_Item ( unbounded)
(Data_Record)
      (Line_Feed_Item)
         (ss3pw_td002)250(/ss3pw_td002)
         (ss3pw_td003)0034319197(/ss3pw_td003)
         (ss3pw_td004)p1(/ss3pw_td004)
         (ss3pw_td006)m1(/ss3pw_td006)
         (ss3pw_td007)+10(/ss3pw_td007)
         (ss3pw_td009)ZUN(/ss3pw_td009)
         (ss3pw_td011)5021(/ss3pw_td011)
         (ss3pw_td012)5021(/ss3pw_td012)
         (ss3pw_td013)1000(/ss3pw_td013)
         (ss3pw_td014)b1(/ss3pw_td014)
         (ss3pw_td015)20100630(/ss3pw_td015)
         (ss3pw_td016)UN(/ss3pw_td016)
         (ss3pw_td017)UN(/ss3pw_td017)
         (ss3pw_td018/)
         (ss3pw_td019)387125620008967527(/ss3pw_td019)
         (ss3pw_td020/)
         (ss3pw_td022)20090930(/ss3pw_td022)
         (ss3pw_td025/)
      (/Line_Feed_Item)
      (Line_Feed_Item)
         (ss3pw_td002)250(/ss3pw_td002)
         (ss3pw_td003)0034319197(/ss3pw_td003)
         (ss3pw_td004)p1(/ss3pw_td004)
         (ss3pw_td006)m1(/ss3pw_td006)
         (ss3pw_td007)+10(/ss3pw_td007)
         (ss3pw_td009)ZUN(/ss3pw_td009)
         (ss3pw_td011)5021(/ss3pw_td011)
         (ss3pw_td012)5021(/ss3pw_td012)
         (ss3pw_td013)1000(/ss3pw_td013)
         (ss3pw_td014)b1(/ss3pw_td014)
         (ss3pw_td015)20100630(/ss3pw_td015)
         (ss3pw_td016)UN(/ss3pw_td016)
         (ss3pw_td017)UN(/ss3pw_td017)
         (ss3pw_td018/)
         (ss3pw_td019)387125620008967531(/ss3pw_td019)
         (ss3pw_td020/)
         (ss3pw_td022)20090930(/ss3pw_td022)
         (ss3pw_td025/)
      (/Line_Feed_Item)
   (/Data_Record)
   (Data_Record)
      (Line_Feed_Item)
         (ss3pw_td001)52(/ss3pw_td001)
         (ss3pw_td002)250(/ss3pw_td002)
         (ss3pw_td003)0034319197(/ss3pw_td003)
         (ss3pw_td004)p2(/ss3pw_td004)
         (ss3pw_td006)m2(/ss3pw_td006)
         (ss3pw_td007)+10(/ss3pw_td007)
         (ss3pw_td009)ZUN(/ss3pw_td009)
         (ss3pw_td011)5021(/ss3pw_td011)
         (ss3pw_td012)5021(/ss3pw_td012)
         (ss3pw_td013)1000(/ss3pw_td013)
         (ss3pw_td014)b3(/ss3pw_td014)
         (ss3pw_td015)20100630(/ss3pw_td015)
         (ss3pw_td016)UN(/ss3pw_td016)
         (ss3pw_td017)UN(/ss3pw_td017)
         (ss3pw_td018/)
         (ss3pw_td019)pallet3(/ss3pw_td019)
         (ss3pw_td020/)
         (ss3pw_td022)20090930(/ss3pw_td022)
         (ss3pw_td025/)
      (/Line_Feed_Item)
      (Line_Feed_Item)
         (ss3pw_td002)250(/ss3pw_td002)
         (ss3pw_td003)0034319197(/ss3pw_td003)
         (ss3pw_td004)p3(/ss3pw_td004)
         (ss3pw_td006)m3(/ss3pw_td006)
         (ss3pw_td007)+10(/ss3pw_td007)
         (ss3pw_td009)ZUN(/ss3pw_td009)
         (ss3pw_td011)5021(/ss3pw_td011)
         (ss3pw_td012)5021(/ss3pw_td012)
         (ss3pw_td013)1000(/ss3pw_td013)
         (ss3pw_td014)b3(/ss3pw_td014)
         (ss3pw_td015)20100630(/ss3pw_td015)
         (ss3pw_td016)UN(/ss3pw_td016)
         (ss3pw_td017)UN(/ss3pw_td017)
         (ss3pw_td018/)
         (ss3pw_td019)pallet4(/ss3pw_td019)
         (ss3pw_td020/)
         (ss3pw_td022)20090930(/ss3pw_td022)
         (ss3pw_td025/)
      (/Line_Feed_Item)
   (/Data_Record)
My target is Idoc:  Idoc (unbounded)  )))))Data_Record
                                  E1MBXYH ( 1 ) )))))))Constant
                                         E1MBXYI ( 9999)
                                              Z1ITEM (999)
My mapping condition is if fileds ss3pw_td06 & ss3pw_td14 are same then   E1MBXYI  is created only once.
                                                                                if ss3pw_td06 & ss3pw_td14 are same then Zitem nodes belong to the same E1MBXYI
To achieve this i created two UDFs to create context and supress context.
The mapping i have done is as follows
                 constant ))))))))))E1MBXYH ( 1 )
            ss3pw_td06(concat)ss3pw_td14   )))UDF1)))))))E1MBXYI
          ss3pw_td06(concat)ss3pw_td14   )))UDF2)))))))Zitem
UDF1 to supress & create only one E1MBXYI ( string[] a)
String toCompare = a[0];
result.addValue(a[0]);
for (int i = 1; i ( a.length; i++)
     if (a<i>.equals(toCompare))
          result.addSuppress();
     else {
          toCompare = a<i>;
          result.addValue(a<i>);
UDF2 to create context change & create Zitem in same  E1MBXYI  ( string[] a)
String toCompare = a[0];
int sameValCounter = 0;
for (int i = 0; i ( a.length; i++)
     if (a<i>.equals(toCompare)) {
          result.addValue(a<i>);
          sameValCounter++;
     else {
          for (int z = 0; z ( sameValCounter; z++) {
               result.addContextChange();
          result.addValue(a<i>);          
          toCompare = a<i>;
          sameValCounter = 1;
The problem is in my result in the second Idoc occurance , Zitem node ignores a context change from the queue and makes a blank Zitem filed for the last E1MBXYI .
I cannot expalin this . Does any of you have an idea how to fix this ? Your help is greatly appriciated.
- (IDOC BEGIN="1")
- (E1MBXYH SEGMENT="1")
- (E1MBXYI SEGMENT="1")
- (Z1ITEM SEGMENT="1")
  (POSNR)0000p1(/POSNR)
  (Z2PQC)UN(/Z2PQC)
  (Z2PALSSCC)387125620008967527(/Z2PALSSCC)
  (Z2PALQTY)10(/Z2PALQTY)
  (Z2REFNUM /)
  (Z2REASCD /)
  (/Z1ITEM)
- (Z1ITEM SEGMENT="1")
  (POSNR)0000p1(/POSNR)
  (Z2PQC)UN(/Z2PQC)
  (Z2PALSSCC)387125620008967531(/Z2PALSSCC)
  (Z2PALQTY)10(/Z2PALQTY)
  (Z2REFNUM /)
  (Z2REASCD /)
  (/Z1ITEM)
  (/E1MBXYI)
  (/E1MBXYH)
  (/IDOC)
- (IDOC BEGIN="1")
- (E1MBXYH SEGMENT="1")
- (E1MBXYI SEGMENT="1")
- (Z1ITEM SEGMENT="1")
  (POSNR)0000p3(/POSNR)
  (Z2PQC)UN(/Z2PQC)
  (Z2PALSSCC)pallet4(/Z2PALSSCC)
  (Z2PALQTY)10(/Z2PALQTY)
  (Z2REFNUM /)
  (Z2REASCD /)
  (/Z1ITEM)
  (/E1MBXYI)
  (E1MBXYI SEGMENT="1" /)
  (/E1MBXYH)
  (/IDOC)
Thank you
Edited by: sudheer kamepalli on Dec 5, 2009 9:49 AM
Edited by: sudheer kamepalli on Dec 5, 2009 9:57 AM
Edited by: sudheer kamepalli on Dec 5, 2009 9:58 AM

Hi ,
Before posting the thread check the format,...its not understandable.
Regards,
Raj

Similar Messages

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.

    Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.
    The underlying task reported failure on exit (-9972).

    kauribill wrote:
    " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.
    The underlying task reported failure on exit (-9972).
    This is a directory issue that Disk Utility cannot fix. Although it manifests itself as a software issue sometimes it may be hardware based. See DiskUtility reports "Underlying task reported failure" when repairing avolume http://support.apple.com/kb/TS1901?viewlocale=en_US". You can try using a utility like TechTool Pro, Drive Genius or Disk Warrior to repair and replace the directory. Another option would be to use the Archive and Install feature to reinstall. If the problem returns after correction you may have a failing or failed HDD.
    cornelius

  • Mapping node from UIcust &View throws dump in result

    hello all,
    Need ur urgent help!!
    I hav already posted one thread bout dis but didnt got any response.... So doing it again
    Not able to map UICust node to View.Till UICust the app works fine but as i map the node to View........ Error comes of contact administrator without any exception
    Contact Administrator error is coming after mapping node from UICust with View.
    Its not happpening in case of 1 single attribute but while mapping the node this error is encountered even if that node consists of single attribute.
    Urgent help required....Kindly help
    Thanks n regards
    Mandeep

    Hi Siva,
    4 attr under 1 node in modal node and same i craeted in value node in uicust. but even if i try to map the replicated value node in uicust and map dat to value node of view. still its showin dump (Contact administrator wid no exception)
    I hav reopnened the project....... rebuild. it doesnt show any error.... as soon as i go for mapping in view and uicust . it starts throwin dump
    Thanks n Regards
    Mandeep

  • How to map nodes to an embedded Component during runtime?

    Hi,
    I embed a Component (<i>BasisComponent</i>) in a new created Component (<i>MyComponent</i>) to use some funcionality from it. Therefor, I have to map some ValueNodes from <i>MyComponent</i> to <i>BasisComponent</i> during designtime to transfer the data. I thought, I could use External-Context-Mapping for that. That means I've created a ValueNode in <i>BasisComponent</i>'s InterfaceController and declared it for ExternalContextMapping (let's call it <i>ExtNode</i>.
    Because I want to use this basis functionality from different embedding Components (<i>MyComponent1, MyComponent2</i>, etc.), I can't declare the structure of <i>BasisComponents ExtNode</i> yet, it's just an empty ValueNode.
    Now, I want to map from my using Components their different ValueNodes to <i>BasisComponents ExtNode</i>.
    How to do that? Or is there another possibility to put different value-nodes from different components to the same Node in my <i>BasisComponent</i>? Can this be done during designtime? I believe it can be definitively done during runtime....
    kr, achim

    Achim,
    Let me use your example and explain what in fact will work when you are creating attributes/nodes only at design time.
    Let us define context in BasicComponent as:
    - MyRoot (0..n, selection 0..1, singleton)
    |-MyInt (int)
    |-MyString (string)
    Say, ComponentA has the following context structure:
    - rootNode (0..n, selection 0..1, singleton)
    |-attA (int)
    |-attB (string)
    |-attX (string)
    --attC
    Then you can easly map rootNode of ComponentA to MyRoot of BasicComponent, attA -> MyInt, attB -> MyString, attX left is not used for mapping.
    =============
    Same is true for ComponentB with
    - RootOfBNode (0..n, selection 0..1, singleton)
    |-attIgnored (date)
    |-attA_INT (int)
    |-attB_STR (string)
    |-attY (string)
    --attZ
    ComponentB.RootOfBNode -> CU of BasicComponent.MyRoot, attA_INT -> MyInt, attB_STR -> MyString, attY and attIgnored are not used for mapping.
    =============
    However, if context of ComponentA is defined as
    - rootNode (<b>0..1</b>, selection 0..1, singleton)
    |-attA (int)
    |-attB (string)
    |-attX (string)
    --attC
    ...then you are out of luck -- wrong cardinality of node.
    Moreover, this case also fails
    - rootNode (0..n, selection 0..1, singleton)
    |-attA (string)
    |-attB (string)
    |-attX (string)
    --attC
    Here all attributes are strings so mappings will be incomplete. To fix this you need at least fake attribute in rootNode.
    And mostly important fact: if you can't map nodes in designer due to mismatch context structures the any dynamic (at run-time) mapping will fail as well in majority of cases.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • XPath for root node in condition editor

    Hi,
    I have a HTTP to IDOC scenario. I have to accept any incoming document,(i will know only at runtime whether it is ORDERS or INVOICE or ASN etc) and post it to the respective receiver based on what is the name of the root node. But how do i specify this in the condition editor? if i give /* or name(/*) it does not work.Can anyone suggest a solution for this?
    Thanks
    Shakthi

    Well I have one solution but don't konw if it is worth for you.
    First create one mapping called pre_mapping in this mapping map all fields and the root node value to the target structure correspondingly . Now use BPM with simple receive & send steps. BPM should send the message back to XI.
    Use the final mapping with this messge retuned from BPM.
    Now use the x-path and select the field from source structre (which BPM has sent back to XI) which contains IDOC type. So in this case your sender system will be BPM.

  • Abap mapping for content conditions routing in a flat-flat scenario

    Dear Experts.
    I have a flat-flat file scenario. Based on the content of the input file, I need to route data to the receiver.The source flat file will have several IDOC details.
    Assume two fields FIELD1 and FIELD2 in different segments of the IDOC. My requirement is if FIELD1 of an IDOC = "XYZ" and FIELD2 of the same IDOC = "PQR", then this  IDOC's details has to be passed to the receiver.
    I have tried to implement the above condition at interface determination in graphical mapping.
    In the graphical mapping,  the problem is:
    Assuming there are 3 idocs in the input file.
    FIELD1 of IDOC[1] = 'XYZ' and FIELD2 of IDOC[1] = 'PQR'
    FIELD1 of IDOC[2] = 'LMN' and FIELD2 of IDOC[2] = 'RST'
    FIELD1 of IDOC[3] = 'ABC' and FIELD2 of IDOC[3] = 'DEF' .
    Now, if none of the IDOCs in the input file satisfy my requirement,the message mapping should not be called at all. But in my case its failing because FIELD1 of IDOC[1] and FIELD2 of IDOC[3] together are satisfying the condition and hence the message mapping is getting called.
    And I need to check this condition IDOC wise. Both the conditions has to be satisfied in the same IDOC.
    The question is very similar to the one posted by SHOBHA HB. (Topic:Receiver determination(or Interface determination) and conditional routing )
    but, due to complexities in the graphical mapping,  we have decided to go for the ABAP mapping instead.
    Kindly help, by mentioning the steps I should follow for this interface, the logic basically. I already have paths to some basic ABAP mapping documents from SDN, so, kindly refrain from posting general URLS for definition or history of ABAP mapping.
    IF you could guide me on this interface, It would be really helpful.
    regards,
    giri raj

    Hi,
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    This document will help you to create ABAP Mapping .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
    How to Use ABAP Mapping in Exchange Infrastructure 3.0 (NW2004)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    SAP Network Blog: How to call XI ABAP Mapping via RFC
    /people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
    SAP Network Blog: Testing ABAP Mapping
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    An ad-on
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    Regards

  • Mapping issue for condition must be  satisfied

    Hi All,
             I am using IDOC ORDERS05 for my interface IDOC to FILE,
    in which i have partner fuction as PARVW , in which i have to AG and LF
    i must must pouplate data if the from the IDOC PARTN if the  PARVW is AG to the VENDORCODE in my target
    i must must pouplate data if the from the IDOC PARTN if the  PARVW is LF to the BUYER in my target
    please help how to do it and what condition i must use for this '
    Thanking you
    Sridhar

    Hi,
    Since you are mapping them on the target side you can use your IDOC variables in multiple palces if you are mapping graphically.
    i.e. 1. VENDOR -> if PARVW is equal to AG then PARTN to VENDORCODE
         2. BUYER -> if PARVW is equal to LF then PARTN to BUYER
    Make sure you set the context for both PARVW & PARTN to its upper level parent & not the immediate level.
    for eg:
         IDOC
               ---E2EDKA1
                       ---PARVW
                      |
                       ---PARTN
    set it to IDOC & not E2EDKA1. if you still have doubts on context you can put your query  back...
    Thanks,
    venkatesh

  • Message Mapping - Node's sub-levels navigation

    Hi all,
    How should I code in order to navigate between different levels of a given node of the source structure?
    example:
    Main
      Struct_11
        Struct1101
          Field_1101_A
          Field_1101_B
        Struct1102
          Field_1102_A
          Field_1102_B
      Struct_22
        Struct2201
          Field_2201_A
          Field_2201_B
        Struct2202
          Field_2202_A
          Field_2202_B
    In the sample above, how should I do to map the node Struct_11 and, within a UDF (or some other way, but I only imagine through a Java UDF), access and validate Struct1101-Field_1101_A, or Struct1102-Field_1102_B, etc?
    If someone could provide me with a sample code, it'd help me.
    Thank you!

    Mark, tks. It helped.
    I could do all that I needed withing the XML working as a text.
    The only problem now is that, the target structure must be built according to the source cardinality (N..N).
    In the sample bellow, see that in the source structure, the Struct_11 repeat 3 times. In the 1st and 3rd, it contains the substructure Struct1101. I have to check if Struct1101 exists, if so, I have to take the Field_1101_A and validate if it's equal to WE. If yes, then the correspondent Field_1101_B has to be sent to target <row> field.
    In the 2nd occurrence, there NO Struct1101, so the UDF returns #void#.
    UDF to map Struct_11:
    int v_pos1, v_pos2, v_start = 0;
    String v_Struct1101 = "Struct1101";
    String v_WE = "WE";
    String v_FieldA = "<Field_1101_A>WE</Field_1101_A>";
    String v_FieldB = "";
    v_pos1 = Item.indexOf(v_Struct1101);
    if(v_pos1 >= 0){
         v_pos2 = Item.indexOf(v_FieldA);
         v_start = v_pos2 + 32;
         v_FieldB = Item.substring(v_start, v_start+10);
    }else{
              v_FieldB = "#void#";
    return v_FieldB;
    Source
    <Main>
      <Struct_11>
        <Struct1101>
          <Field_1101_A>WE</Field_1101_A>
          <Field_1101_B>110</Field_1101_B>
        </Struct1101>
        <Struct1102>
          <Field_1102_A>ZS</Field_1102_A>
          <Field_1102_B>222</Field_1102_B>
        </Struct1102>
      </Struct_11>
      <Struct_11>
        <Struct1102>
          <Field_1102_A>ZS</Field_1102_A>
          <Field_1102_B>222</Field_1102_B>
        </Struct1102>
      </Struct_11>
      <Struct_11>
        <Struct1101>
          <Field_1101_A>WE</Field_1101_A>
          <Field_1101_B>112</Field_1101_B>
        </Struct1101>
        <Struct1102>
          <Field_1102_A>ZS</Field_1102_A>
          <Field_1102_B>222</Field_1102_B>
        </Struct1102>
      </Struct_11>
      <Struct_22>
        <Struct2201>
          </Field_2201_A>
          </Field_2201_B>
        <Struct2202>
          </Field_2202_A>
          </Field_2202_B>
    </Main>
    Target
    <result>
      <row>110</row></result>
    <result>
      <row>#void#</row></result>
    <result>  <row>112</row></result>
    <result> is mapped to <Struct_11>, so that for each <Struct_11>, one <result> is created.
    I've insert this sample payload and in the Definition tab, Display Queue option shows me the right result:
    110
    #void#
    112
    However, during the MM test, it throws error:
    Cannot create target element /ns0:MT_TARGET/result[2]/row. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
    Any clue?
    Thank you !
    Edited by: rvsilvax on Sep 14, 2011 9:00 PM

  • Mapping node name and value

    Hi,
    I have source strcture as
    ID
    Code
    Dept
    City
    My target structure is
    Name
    Value
    After mapping i need my target xml file to be
    <Object>
    <Name>ID</Name>
    <Value>001</Value>
    <Name>Code</Name>
    <Value>XYZ</Value>
    <Name>Dept</Name>
    <Value>SAP</Value>
    <Name>City</Name>
    <Value>NY</Value>
    </Object>
    Any input?

    let me explain my scenario more clearly...
    My source message is Idoc whose structure is as follows
    IDOC        1..1
    - E1AFKOL   1..1
       Dept
       Code
    -- E1AFKOL  0..99999
    E1AFVOL 0..99999
    E1RESBL 0..99999
          Charg
    Now my otarget strcuture is
    ObjectCollection 1..1
    -Object          0..99999
    --Field          0..99999
       Name
       Value
    Now what i want is, for each occurance of Segment E1AFVOL, Object node should get repeated and for each occurance of segment E1RESBL (child of segment E1AFVOL) 'Field' node should be repeated.
    e.g. Input is
    IDOC        1..1
    - E1AFKOL   1..1
       Dept     SAP
       Code     001 
    -- E1AFKOL  0..99999
    E1AFVOL 0..99999
    E1RESBL 0..99999
          Charg  A1
    E1RESBL 0..99999
          Charg  A2
    E1AFVOL 0..99999
    E1RESBL 0..99999
          Charg  A1
    Therefor output would be
    ObjectCollection
    -<Object>        
    --<Field>        
       Name  CHARG
       Value A1
       Name  Dept
       Value SAP
       Name  Code
       Value 001
    --</Field>
    --<Field>        
       Name  CHARG
       Value A2
       Name  Dept
       Value SAP
       Name  Code
       Value 001
    --</Field>
    -</Object>
    -<Object>        
    --<Field>        
       Name  CHARG
       Value A1
       Name  Dept
       Value SAP
       Name  Code
       Value 001
    --</Field>  
    -</Object>
    i am not sure if this can be achieved by graphical mapping.
    If not please explain me how XKST mapping would be used in this case?

  • UDF Mapping Nodes

    Hello all,
    I'm trying to map two source structure names into one destination structure name.
    example :
    Source
    -BBSEG_DEBIT
    --NEWBS
    --WRBTR
    -BBSEG_CREDIT
    --NEWBS
    --WRBTR
    -BBSEG_CREDIT
    --NEWBS
    --WRBTR
    Destination
    -BBSEG
    --NEWBS
    --WRBTR
    -BBSEG
    --NEWBS
    --WRBTR
    -BBSEG
    --NEWBS
    --WRBTR
    How can you do this mapping? Thought of UDF but in my case all nodes have to be present otherwise attributes are not coming up in the right context anymore.
    Thnks in advance for your help.
    Regards,
    Laurent.

    Hello,
    It is more precisely this :
    Source
    -BBSEG_DEBIT
    --NEWBS
    --WRBTR
    -BBSEG_CREDIT
    --NEWBS
    --WRBTR
    Destination
    -BBSEG
    --NEWBS
    --WRBTR
    We can have two structures in source BBSEG_DEBIT and BBSEG_CREDIT with all it's subcomponents.
    They can be present x times or not at all for each one. (-> Rajesh this is why i cannot map one field to target node)
    The destination is one structure. BBSEG with the same subcomponents.
    Is it more clear?

  • Mapping Node and Attributes

    Hello all,
                I am using Process Composer for a process design.
    I have a human activity and an automated acitivity.
    Human Activity                                                 Automated Activity
    + Type Code (node)----
    Type Code (node)
       - TypeCode (attribute)----
    text() (attirbute)
    Above shows the mapping. Now I map the node and then i map the attribute. I save it.
    The above mapping is for input mapping of the automated activity. Suppose if leave the mapping screen and come back, the mapping is automatically gone. Though i saved it. The TypeCode (node) is mapped to text() with an error (after i change screen. That will be error of course).
    Have any of you faced any similar issue before?

    Problem solved.
    1. The cardinality of the nodes was not matching.
    2. Attributes were matched instead of matching nodes.
    Thnks

  • Changing value of a field in mapping as per condition

    Hi Experts,
    I have one requirement in IDoc mapping to EDI structure.
    I want to change the value of a field depending on the condition. But the problem is the field is mapped at higher level than the condition.
    For example:
    Say i have a source structure in IDoc with name Source1 and target structure Target1. Source1 is mapped to Target1. Both of these structures have multiple occurances. So in general out structure will look something like below:
    Source1-> Target1
    Source2->Target2
    Source3->Target3
    Now i want to change value of one field from Target1 structure depending on Value of one field from Source3. At the runtime when Target1 structure is getting filled Source3 value is not visible so I am not able to set a proper condition.
    When at lower level we get value of Source3 can we change value of already filled structure Target1?
    Thanks,
    Atul

    Hi Aamir,
    Thanks for your reply.
    If possible can you give any sample code for this kind of UDF?
    Thanks,
    Atul Patil

  • How to map nodes?

    Two nodes has different namespace.
    They can not be mapped.
    Error message is
    Expected : name 'BBB' namespace - abc.sap.com
    Found    :   name 'BBB' namespace - cba.sap.com
    I guess they need something I should do to map the nodes that has different namespace.
    How to map the nodes at the glaxy?

    Hi Yeongsik,
    when the two nodes corresponds to different namespaces , u will get thei error message.
    Error message is
    Expected : name 'BBB' namespace - abc.sap.com
    Found : name 'BBB' namespace - cba.sap.com
    better go for map Automatically option.
    First map the nodes , then map each attribute of node A to node B to get rid of error message.
    Thanks and regards

  • Hyperion Performance Scorecard - Strategy Map - Node population ...

    Dear friends,
    we've got a development project of balanced scorecard and at the stage we are, we need to populate our Strategy Map tree with the Measures (on the leaves) and the Scorecards (intermediate nodes).
    The problem is that we have got 23 Strategy Map, each one with aprox. 100 nodes and as you understand it's a high time spend doing it by hand. Is there any tool or programming API to do it automated?
    Here you've some small example with the parentNode (Scorecard) with two childs (Scorecards leaves) which need some Measures (M1...M4).
    StrategyMap1:
    Parent Node
    +
    | |
    child1 child2
    M1               M3
    M2               M4
    Best Regards.

    OK, this is what I do. There is an import/export utility documented in appendix C of the admin guide.
    1. I export all the possibilities using the export utiiity, then I have a base line.
    2. I create an example of what I want to do from the front end.
    3. I repeat the extract, and look at what HPS has created in the back end.
    4. I use the export files created from the export to use as a template to add the other scorecards, strategy maps, employees, whatever you are trying to load. These are CSV files.
    5. BACKUP THE DATABASE!!
    6. Use excel to populate the fields you need. Be aware you don't need to import ALL the fields, just the required ones, That is documented.
    WARNING--- WARNING
    Doing ANYTHING from the backend is dangerous. Backup first, and after you load, restart the server. HPS will not reload all the changes and validate them if you don't restart. It may show the changes, but it won't always validate, and you may find something went wrong and it won't start. This is OK if you catch it right away, you can do a restore.
    The time lag is due to the way the application does caching.
    Good Luck,
    Theo Korol
    [email protected]

Maybe you are looking for

  • Migrating Database from Oracle 8.0.5 for NT to Oracle 8.1.7 for Unix.

    Hello! Please help me in Migrating Database(Including Data,Stored Procdures, Views, Indexes,Forms, Triggers etc.) from Oracle 8.0.5 for NT to Oracle 8.1.7 for Unix.

  • Please help me.  I cannot import videos into itunes library

    I have read the manual's entries on doing this and nothing seems to be working. It won't let me import my own videos into the itunes library for me to convert to a file recognized by ipod. I have a 5th generation ipod. I am doing everything it tells

  • Anti-glare film for 27" display

    Folks, Do you know of any decent anti-glare film for the new 27" Apple Cinema Display? I got a this new monitor 2 days ago and I am starting to get headaches because of the glare... no matter how/where I position the screen in my office. I really wis

  • Create report without query wizard

    Hi, I want to create report without using query wizard in SAP B1. Can it possible by code?

  • Finding out what Subtype a reference is

    Hi! I'm trying to bulid an applicaton with abab g and as a Java developer I'm doing it with Abap Objects. Now I have a nice abstract superclass and now I have to check references what type they have, before casting them into the subclasses. I'm looki