Two source fields in one target idoc structure

Hi Experts!
I have a problem.
I have a flat file with two fields desc1 and desc2. They have to be put into the field MAKTX of the table structure E1MAKTM. But not via concat or useOneAsMandy!
I need a new E1MAKTM structure for each desc1 and desc2 . So that i get following target structure:
<recordset>
-E1MAKTM
  - MAKTX = "content of desc1"
-E1MAKTM
  - MAKTX = "content of desc2"
</recordset>
I hope you understand what I am trying to do.
How can i solve this problem?
Thanks for your answers in advance.

Hi,
>>Is there a possibility to dynamically duplicate the structures?
>>So that i get automatically a duplicated target structure for each content filled source field?
The solution that has give above would only do this.
Even though you are duplicating the segement in the design time, you are mapping the desc1 and desc2 to the E1MAKTM root node(for MAKTX).
During the runtime the node E1MAKTM will only be generated based on the number of occurance of the desc1 and desc2 in the source message.
For example if there are 2 desc1 and 1 desc2 field then 3 E1MAKTM node will be generated.
But make sure that the occurance of E1MAKTM is 0 to unbounded to achieve this.
Thanks
SaNv...

Similar Messages

  • Mapping multiple source fields to one target field

    Hi,
    I'd like to take the XML content fromy my outbound message and put this into a single field within my inbound message.
    Please can someone suggest a suitable XSL mapping or user defined function I could use to achieve this.
    Thanks,
    Alan

    Hi,
    OK, so I now have the XML data in one wrapper tag called inbound but when this is passed to the inbound ABAP proxy I obtain the error as listed below.
    Any ideas how I overcome this?
    XML payload
    <?xml version="1.0" encoding="UTF-8" ?>
      <inbound>
      <![CDATA[ <n0:outbound xmlns:n0="http://homeoffice.gov.uk/immigration/migrant/cas/bulk-cas-re" xmlns:prx="urn:sap.com:proxy:NUD:/1SAI/TASDBA95DB1CF1834B8939A:700:2008/06/25"><ApplicantID>123</ApplicantID><FamilyName>Bloggs</FamilyName><GivenName>Blogs</GivenName><Nationality>GB</Nationality><Gender>1</Gender><CountryOfBirth>GB</CountryOfBirth><PlaceOfBirth>Gloucester</PlaceOfBirth><DateOfBirth><FullDate>1976-06-23</FullDate></DateOfBirth><ApplicantPassportOrTravelDocumentNumber>123</ApplicantPassportOrTravelDocumentNumber></n0:outbound>
      ]]>
      </inbound>
    Error
    Error during XML => ABAP conversion (Request Message; error ID: CX_ST_MATCH_ELEMENT; (/1SAI/TXS2EC9427C9FBC1EDCA9A0 XML Bytepos.: 48 XML Path: inbound(1) Error Text: System expected the element 'inbound')) System expected the element 'inbound'
    Thanks,
    Alan

  • Mapping multiple source value to one target value in value mapping

    Hello experts,
    In my scenario, i need to map more than one source value to one target value in value mapping. Like:
    1        TenderPickup
    2        TenderLoan
    7        TenderPickup
    101     TenderPickup
    102     TenderLoan
    107     TenderPickup
    But when I enter the same target value for the second time and try to save it, it gives me an error saying value mapping already exists.
    But this should logically be allowed. How can this be done. Please provide a solution.
    Thanks,
    Yash

    Hi Prabhu,
    When i right click on the target field, it gives me only 3 options:
    1) Insert Row
    2) Delete Value Mapping
    3) Value Mapping in all agencies
    I dont see nay option for duplicating rows.
    What I hae done is in ID i clicked on TOOLS and then VALUE MAPPING. I checked the option "Value Mapping Agencies" and gave my source and target agencies detials. Then i clicked on DISPLY and in the next page I have 3 columns - Value for <source agency>, Value for <target agency> and Group name.
    When I give duplicate values in the column Vlaue for <target agency>, it doesnt allow me to and if i right click in this column, i get the above mentioend options.
    Please point out where i m going wrong.
    Thanks,
    Yash

  • Combining two source fields in Import Manager

    Hi,
    I am trying to combine two source fields say fld1 with 5 digit and Fld2 with 3 digit so that combined fld3 of 8 digit can be mapped to a 8 digit field in destination MDM side.
    Any suggestion how to do this is highly appreciated
    Thanks,
    -reo

    Hi Reo,
    I am just adding details to how to combine fields in the import manager.
    To combine two or more existing partitions for a destination node steps are as follows:
    <b>1. </b>In the appropriate source hierarchy tree, select the node whose partitions you want to combine.
    <b>2.</b> click on the Partition Field/Value tab to make it the active tab.
    <b>3.</b> In the appropriate Partition list, select the two or more partition items you want to combine into a single partition.
    <b>4.</b> Click on the Combine button, or right-click on one of the items and choose Combine Partitions from the context menu.
    <b>5.</b> MDM combines the selected partition items.
    <b>6.</b> Now you can map this partition directly to the destination field.
    But as ur requirement seems ,u do not need to set delimiter.
    Hope it will help you and let me know the results. please remark .
    Thanks,
    <b>Shiv Prashant Dixit</b>

  • Combine two date field into one timestamp field

    Hello all,
    I need help combining two date fields into one timestamp field.
    I have separate Date and Milliseconds fields and want to
    combine to one Timestamp field can some suggest sql???

    This is my data
    01 JAN 1989 12:01:00.001 AM
    this is my insert drag_time is a timestamp field in another schema
    INSERT
    INTO DRAG (drag_time)
    SELECT to_char(drag_time, 'DD MON YYYY HH12:MI:SS')||(drag_second)||to_char(drag_time, ' AM')
    FROM sa.drag;
    This is the error
    ERROR at line 3:
    ORA-01855: AM/A.M. or PM/P.M. required

  • Map two different source elements to one target element

    Hello,
    This is my scenario.
    RootSource1 (0..1)
             source1 (0..unbounded)---> one entry of this will create one TargetSource
                 nameA --> mapped to TargetSource/Target1
    RootSource2 (0..1)
             source2 (0..unbounded)---> one entry of this will create one TargetSource
                 nameB --> mapped to TargetSource/Target1  
    TargetSource (0..unbounded)
             Target1 (0..1)
    From graphical tool, I can map
    TargetSource = removeContexts(source1)
    I also have to do:
    TargetSource = removeContexts(source2)
    But it seems the tool does not let me do the second mapping. Does anybody know how?
    Any help appreciated.
    Best regards,
    -mhd

    Try it like this:
    in target message, right-clink on TargetSource field and select "duplicate entry".
    Map the 1st source field to the 1st TargetSource entry and the 2nd Source field to the 2nd TargetSource entry.
    Regards,
    Henrique.
    PS: I don't think you need removeContext in this case, since the root is 0...1.

  • Mapping Issue: Target IDoc structure not getting created properly

    Hi Experts,
    I am stuck with a strange problem in my mapping. It is a M:N scenario mapping where we have multiple IDocs in source as well as in target.
    For example, in source Queue-1 I am getting values as [SUPPRESS, true, true, true, true] and in the in source Queue-2 I am getting the values as [1,2,3,4,5]. I used MapWithDefault function to match the number of values in both the queues but in the target IDoc the node (say TMPN) is created only 4 times because of the condition put at the target node. So, the target node should have values as [1,2,3,4] but it gets values as [2,3,4,5] because the first target TMPN node is not created in the first target IDoc. I can provide you with the skeleton of the map. Hope this will give you a fair idea. Let me know if you require more details.
    1. Target Structure:
        IDoc - No TMPN Node
        IDoc - 1 TMPN Node
        IDoc - 2 TMPN nodes
        IDoc - 1 TMPN node
    Condition put on target TMPN_Node ---> (created only 4 times due to condition)
    2. Mapping Skeleton:
    Values coming from Q1 (SUPPRESS, true, true, true, true) --->
                                                                                    \===>FORMATBYEXAMPLE+SPLITBYVALUE==> TMPN-F0 [2]
                                                                                    /                                                                              TMPN-F0 [3]
    Values coming from Q2 (1,2,3,4,5) -
    >                                                                               TMPN-F0 [4]
                                                                                    TMPN-F0 [5]
    Where F0 is  the field which is created when TMPN Node is created. So, if TMPN gets created 6 times, the F0 gets created 6 times.
    Please let me know if there is an alternative to this problem. How can I have values as [1,2,3,4] in field F0 instead of [2,3,4,5]

    hi,
    i got the email.
    as i can see your mapping seams to be rigth, but there is sometrhing i dont get. in a previuos post you said:
    I am stuck with a strange problem in my mapping. It is a M:N scenario mapping where we have multiple IDocs in source as well as in target.
    For example, in source Queue-1 I am getting values as SUPPRESS, true, true, true, true and in the in source Queue-2 I am getting the values as 1,2,3,4,5. I used MapWithDefault function to match the number of values in both the queues but in the target IDoc the node (say TMPN) is created only 4 times because of the condition put at the target node. So, the target node should have values as 1,2,3,4 but it gets values as 2,3,4,5 because the first target TMPN node is not created in the first target IDoc. I can provide you with the skeleton of the map. Hope this will give you a fair idea. Let me know if you require more details.
    1. Target Structure:
    IDoc - No TMPN Node
    IDoc - 1 TMPN Node
    IDoc - 2 TMPN nodes
    IDoc - 1 TMPN node
    lets asume you define as default value "1"
    now, the result of the formatByExample taking the example you sent to me is:
    1,T1,T2,T3,T4 without context change. and the result of the function splitByValue should be what you are specting.
    but its something that is not clear still,
    could you post the result of the mapWithDefault? i think your problem is there.
    Rgds
    RP-.

  • To Join two SAP fields into one info object

    Hi All,
    Can you please suggest the best method to concatenate values from two R/3 fields into one info object master data table?
    The requirement is to create a Sales report where I need to report on sales against  sales type.
    Sales type is a list of joint values of item category ( 0ITEM_CATEG) and bill type (0BILL_TYPE).
    So, I need a list of all item categories and billing types in a single object and report sales value against it.
    Please suggest.
    Thanks,
    Sharmishtha

    Hi Venkat,
    In DSO any case you will not be having more than 16 Keys. I am surprised seeing requirement of more than 16 keys, but anyways you need to go with some workaround.
    You can concatenate multiple Fields and map to one Dummy InfoObject which will be Key in DSO so in actual you have more than 16 Keys but have 16 Keys in system.
    But analyze requirement in detail because this will increase data redundancy and time for load will get increased.
    Also for new issues start new discussion otherwise people will not able to help you in this forum.
    Regards,
    Ganesh

  • Multiple inbound interfaces (xml) but one target (idoc)

    Hi Experts,
    I am trying to setup in ID four inbound interfaces (eg. MessageType1-MesageType4) and each has an interface mapping having the same target idoc (eg. Shpmnt05).
    Also, there is a condition set per interface mapping. 
    Should I create four sender agreements that is one per message type? If so, how many interface determination is needed? Any advise please.
    IR
    Message Interfaces:
    OA_MessageType1
    OA_MessageType2
    OA_MessageType3
    OA_MessageType4
    Interface Mappings:
    OA_MessageType1_to_Shpmnt05
    OA_MessageType2_to_Shpmnt05
    OA_MessageType3_to_Shpmnt05
    OA_MessageType4_to_Shpmnt05
    ID
    Receiver Determination:
    |Party1|Shpmnt05
    Interface Determination:
    Sender Agreement:

    However, how are we going to handle the interface determination?  I believe in the interface determination setup it asks for the message interface suppose MessageType1.
    Now, I need to set-up the condition (eg. operationtype=Create)  for that message interface and set interface mapping.  For this one the interface mapping to be used is OA_MessageType1_to_Shpmnt05. 
    But in this case, i need to add another condition (eg. operationtype=dummy) so that the first condition will be saved, correct? I think if I only have one condition in the interface determination, once activated the condition is gone.
    Having said, are you suggesting that i need four interface determinations?
    Or is it possible to just have one int. det.?

  • Pupulating two database fields from one form field

    Hopefully an easy query for someone with more experience than
    me!!!
    I have set up a form (PHP page) to add new users to a table
    in a MySQL database. So far, so good.
    The problem is that I want to use the value entered in one of
    the form fields (Email) to populate two different fields in the
    table (username and email). I realise that this is redundant, but
    it is necessary for other reasons that I won't go into here...
    I've tried using a hidden input field for username, but I'm
    just not sure what I need to specify for 'value'...
    The code for the input field is:
    <input name="Email" type="text" class="RequiredInput"
    value="" size="32">
    and the code for the hidden input is:
    <input type="hidden" name="username" value=Email>
    As you can see, this puts the text 'Email' in the field,
    rather than the value of the Email input...

    When I try an post a reply with the code attached I get this
    screen:
    The page you requested could not be found on our web site.
    You may wish to try one of the following links:
    Search
    Search the Adobe web site.
    Adobe Homepage
    Go to the Adobe homepage.
    Macromedia Flash Player
    Download the Macromedia Flash Player.
    Broken Link?
    Send us an e-mail.
    When the forum's working again I'll have another go at
    posting the code...

  • Assign one source field to multiple target fields in FileContentConversio

    Hi All,
    I have a file to proxy scenario. I am using file content conversion to read the text file. My question is can I assign one set of data from the text file to multiple fields in Source Data Type using file content conversion?
    Regards,
    XIer

    these kind of requirements are not possible via the FCC. Handle such things via the mapping after you read the file in the normal FCC way

  • Mapping Multiple Source fields to Single Target Fields with differnt Values

    Hello Friends,
    I am having a senario  where I have to mapped multiple fileds from source str. to same Idoc Fields with ( differnt default values )
    E.g Source Str.
    - ShopNO
    - OrderTyp
    Has to mapped to Idoc Str E1EDK14-Orgid.
    E.g Mapping:
    So when ShopNo will mapped to E1EDK14-Orgid the default value should be "MOP" & E1EDK14-Qualf should be 019
    and when OrderType will be mapped to E1EDK14-Orgid the default value should be "STD" & E1EDK14-Qualf should be 012
    So I tried of using node "UseOneAsMany".....but there I cant define the vaule of field orgid, and seconly how to specify the values of field Qualf?
    Do i need to write my own specify function ? or I can sovle this issue using standard avaiable functions ?
    Regards,

    Hi Ravi,
    Thanks for your reply....
    I am facing following problem... when I try to duplicate the segment and do mapping....... and then when I save, I got following error msg:
    The source or target structure has been changed or could not be found in the Integration Repository. The mapping definition contains elements or attributes that do not exist in the changed structure. The relevant entries will be deleted
    Target structure has no such path: /ZARVO_ORD/IDOC/E1EDK05[1]/KSCHL. Skipping mapping
    Target structure has no such path: /ZARVO_ORD/IDOC/E1EDK05[1]/KRATE. Skipping mapping
    Any suggestion ?
    in other words, when I do duplicate it creates me the segment, but when I save it, it gets disappered .........
    Regards,
    Edited by: Shah H on Oct 26, 2009 3:17 PM

  • How to configure GG to merge two source tables into one destination table?

    I have two tables at source (say S1 & S2), I want to merge these tables and replicate to a single target table (Say T1).
    Does GG support this type of replication? If so, could any one let me know how to configure Table and Map parameters?
    Thanks in advance.

    It is possible. In the extract capture both the tables.
    Extract parameter
    table s1;
    table s2;
    Replicat parameter
    map s1, target t1, keycols (...);
    map s2, target t1, keycols (...)

  • Import 2 source fields into one destination field (appending entries)

    Dear forum members,
    In MDM Import Manager, is it possible to take 2 fields from the source file structure and map the values to the same destination lookup field, so both values are appended to the table for the same record?
    If so, can you provide detaiuls and considerations?
    I have been looking at partitions, but all I can do is create a single record in the lookup table consisting of both values combined.
    Many thanks,
    Nick

    Hi Alon,
    Yes the field I am testing with is called 'Hyperlink' of type 'Lookup [Qualified Flat] (multi-valued)'
    The field shows as type 'F' in the destination field pane.
    I do acrtually want to load to a different field eventually, but am just testing with this as it seems to be the riight type.
    The table I want to load to is the Hyperlinks table in SRM-MDM. It has the following structure in the console:
    Field Name        Field Type       Non-Qualifier / Qualifier
    Type                 (Lookup[flat])    Non-qualifier
    Mime Type        (Lookup[flat])    Qualifier
    URL                  (Text)              Qualifier
    URL Description (Text)              Qualifier
    In import manager, the fields available are:
    Hyperlink                                F    Lookup [Qualified Flat] (multi-valued)
    Mime Type <Hyperlink>           Q   Lookup [Flat]
    URL <Hyperlink>                     Q  Text[250]
    URL Description <Hyperlink>    Q  Text[250]
    Ultimately I am trying to map:
    1. Hyperlink          - a null source value to a fixed dest value of 'Link'
    2. Mime Type        - a null source value to a null dest value
    3. URL                  - 2 values from 2 fields in the source file to 2 (appended) entries
    4. URL Description - same 2 source values in the source file to 2 (appended) entries
    Unfortunately we cannot modify the hyperlinks table or use a different one as the fields will not be displayed properly in the catalogue view SRM requisitioners will have so I HAVE to use this table and these fields.
    What do you think?
    Thanks a lot,
    Nick

  • How to map multiple occurrences of a source field into a target field

    Hi friends
    I need multiple occurences of  MATNR field, of idocs collected, to be concatenated into a single field on target side.
    Warm Regards
    Arjun Ghose

    Hi Priyanka
    I am using the below code
    String material ="";
    for(int i=0; i<MATNR.length();i++)
                   material = material +MATNR<i>;     //var(i)
    result.addVAlue(material);
    But I am getting the below errors:
    Activation of the change list canceled Check result for Message Mapping COND_A_COND_A01_TO_File_PriceDataIntermediate_Warehouse | urn:bp:xi:dwn:lu:common:Logistics:100:  Starting compilation  Source code has syntax error:  C:/usr/sap/IXV/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map11a81744fef611e0a49b000000aa1a4a/source/com/sap/xi/tf/_COND_A_COND_A01_TO_File_PriceDataIntermediate_Warehouse_.java:123: array required, but java.lang.String found material = material +MATNR<i>; //var(i) ^ C:/usr/sap/IXV/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map11a81744fef611e0a49b000000aa1a4a/source/com/sap/xi/tf/_COND_A_COND_A01_TO_File_PriceDataIntermediate_Warehouse_.java:126: cannot resolve symbol symbol : variable result location: class com.sap.xi.tf._COND_A_COND_A01_TO_File_PriceDataIntermediate_Warehouse_ result.addVAlue(material); ^ 2 errors
    Edited by: GhoseArjun on Oct 25, 2011 12:57 PM

Maybe you are looking for

  • Windows installer package

    error windows installer package

  • Media offline error message; Equipment

    1)  I'm running PE 8 on a PC with dual core AMD, 4 GB Ram, Vista Home Premium.  I'm working on a short project with lots of short segments.  I save frequently to avoid freezes which seem to occur when too many actions have been done.  Nevertheless, 

  • Compile code in a file

    i have some java codes in my "fl.txt"(c:\fl.txt). these are; public class file_{ public static void main(String args[]){ System.out.print("hello world"); }i want to compile these code from my program(i am building it with java) at runtime.. how can i

  • Another .avi file question

    Hi there, I opened a quicktime movie in Mpeg Streamclip and exported to avi file. I then burned it off onto iDVD for a customer. However, she could not open it as an .avi file from her PC (to put into power point) is there any way I can burn off a DV

  • Move my main harddrive from PowermacG5 to 8-core MacPro?

    Hi, I just bought an 8-core MacPro and gave up my PowermacG5. I still have my main harddrive with all programs installed, my data, etc... This is only my second Mac so I never had to migrate data between machines before but here's my question: Can I