FDM Mapping SPLIT/TRIM/JOIN fields

Hi All
I am using FDM to Transform a flat file to a new data file. I am a newbie in FDM.
Can anybody tell me the syntax for trimming/splitting the source field in to the target file in FDM mapping.
For Example:
In my source, the feild 'Product' has string "uranium FGIM (10010)
But on the target file, I need only the product code '10010' How do i trim this feild to get the desired output file.
Kindly let me know the syntax of the mapping.
Thank you,
JK

You can either do this as part of the mapping process or you can use an import script to parse out the desired value during the import.
If you do it in the mapping simply use your original full product string as the source and set the trimmed value as the target i.e. using explicit maps
In the import script use logic similar to your example to parse out the portion of the original product string you wish to pass as the source value. However you must ensure this logic is generic and will work consistently over all product strings.
From your criteria I imagine the mapping approach would be the simplest and easiest to manage solution

Similar Messages

  • MAPPING ERROR FOR CND_M_SUP - Split of VAKEY fields failed

    Hi,
    in CRM our customers request some controls for products that they enter in trade promotion(CRM_MKTPL) These are related to "Listing & Exclusion" of R3 system. So we need to download R3 tables into CRM that are related to "Listing & Exclusion" from R3. We have a table named KOTG804 (Customer/Material) in R3. And in CRM we create a table named CUS804 in the Listing header with the key fields like KOTG804. Then we create download object DNL_COND_G804. And start the initial load for this object. But we have promblems. The errors in SMW01 are like that :
    - Records of table CUS804, usage LI cannot be exchanged
    - Split of VAKEY fields failed (Block 1; Appl. LI; Use CRM)
    - Error when carrying out initial download
    How can we solve this problem and take the KOTG804 records from R3 to CRM?
    Thanks.

    Hello
       Did you find out what the problem here was? I am facing the same situation. Could you help?
    Reagrds,
    Sowmiya

  • Select distinct records in Mapping with no Key field (all fields can vary)

    Hi Experts,
    Let me take an example (not the actual requirement but same scenario) to explain the problem where I need your help to get best possible way to resolve. This has to be achieved in mapping, don't have other options as its part of complex end 2 end scenario.
    I have following input XML:
    <Employee>
       <Details>
          <Id>123</Id>
          <Name>ABC</Name>
         <Role>Manager</Role>
          <Area>Bangalore</Area>
        </Details>
        <Details>
           <Id>123</Id>
           <Name>ABC</Name>
            <Role>Manager</Role>
             <Area>Pune</Area>
         </Details>
          <Details>
           <Id>123</Id>
           <Name>ABC</Name>
            <Role>Advisor</Role>
             <Area>Bangalore</Area>
         </Details>
          <Details>
           <Id>123</Id>
           <Name>ABC</Name>
            <Role>Manager</Role>
             <Area>Bangalore</Area>
           <Details>
           <Id>143</Id>
           <Name>ABC</Name>
            <Role>Manager</Role>
             <Area>Bangalore</Area>
         </Details>
    </Employee>
    The output XML is:
    <Employee>
       <MainRec>
           <Id>123</Id>
            <Name>ABC</Name>
             <table name = 'Roles'>
                   <record>
                          <Id>123</Id>
                           <Role>Manager</Role>
                            <Area>Bangalore</Area>
                      </record>
                      <record>
                          <Id>123</Id>
                           <Role>Manager</Role>
                            <Area>Pune</Area>
                      </record>
                      <record>
                          <Id>123</Id>
                           <Role>Advisor</Role>
                            <Area>Bangalore</Area>
                      </record>
                  </table>
          </MainRec>
          <MainRec>
            <Id>123</Id>
            <Name>ABC</Name>
             <table name = 'Roles'>
                   <record>
                          <Id>143</Id>
                           <Role>Manager</Role>
                            <Area>Bangalore</Area>
                      </record>
                </table>
            </MainRec>
    </Employee>
    As you can see from the example above, here I want to populate only distinct records under table, but there is no key fiield to ditunguish. Any of the 3 fields (Id, Role,Area) can vary and between 2 records if all of these fields are same then its duplicate else select it. So in above XML just discard the 4th record from the source XML and populate all others. Each record has to be checked against all other records all 3 values (ID, Role, Area). Only when none of the records have exactly the same values, populate it.
    Also records with different ID come under different table node. Hope my requirement is clear, if not please let me know, i will try to explain better.
    I thought of creating a UDF to achieve this but not able to decide how to match it to the output message here.
    Best Regards,
    Pratik

    Hi,
    For the main record, I think you only need to check for each unique ID, e.g
    Id --> removeContext --> sort:ascending --> splitByValue:valueChanged --> collapseContext --> MainRec
    For the record, however, you need to create a UDF that will filter out the duplicate values. For this, the UDF sample mentioned here contained multipleResult lists
    Id --> removeContext --> concat: : --> concat: : --> UDF --> splitByValue:ValueChanged --> record
    role --> removeContext --> /          /                \ --> Id
    area --> removContext -------------> /                  \ --> role
                                                             \ --> area
    Context type UDF
    Arguments: input
    Result: IdResult
    Result: roleResult
    Result: areaResult
    Vector temp = new Vector();
    for(int a=0;a<input.length;a++){
       if(!temp.contains(input[a])
             temp.add(input[a]);
    for(int a=0;a<temp.size();a++){
       String tmp = (String) temp.get(a);
       /*split according to field */
       IdResult.addValue(tmp.substring(0,tmp.indexOf(":")));
       roleResult.addValue(tmp.substring(tmp.indexOf(":")+1,tmp.lastIndexOf(":")));
       areaResult.addValue(tmp.substring(tmp.lastIndexOf(":")+1,tmp.length()));
    note: Id and record will both be using the IdResult list.
    Hope this helps,
    Mark

  • MDM Syndication - Is it possible to split a text field?

    I am trying to find a way to manage multilingual R/3 Purchase Order Text in MDM. The problem I am having is that we want to maintain this as one field in MDM, which the only feasible option appears to be a Text Large field. Text fields are too short now that they are only 333 characters, Lookups are not involved so this cannot be a multivalued Text field, Text Blocks don't seem to work for this, and Qualified Lookups don't appear to handle the multi-lingual aspect.
    The problem is, somehow this one large text field needs to be broken down when sent back to R/3, as R/3 can only handle 133 characters per line. As far as I can tell, there is no way to do this.
    Can anyone help?
    Thanks!

    Hi Ryan,
    I am trying to find a way to manage multilingual R/3 Purchase Order Text in MDM. The problem I am having is that we want to maintain this as one field in MDM, which the only feasible option appears to be a Text Large field. Text fields are too short now that they are only 333 characters, Lookups are not involved so this cannot be a multivalued Text field, Text Blocks don't seem to work for this, and Qualified Lookups don't appear to handle the multi-lingual aspect.
    The problem is, somehow this one large text field needs to be broken down when sent back to R/3, as R/3 can only handle 133 characters per line. As far as I can tell, there is no way to do this.
    If I have understood your probelm correctly, then I think you want to import the Multilingual data in MDM. You can easily do that by Pivoting the source and then Importing the MUltilingual data into MDM.
    Then in the Syndicator, you can split the Multilingual Fields BY Language BY Value, (which is a feature present in the Syndicator)into Various fields, which you can indivually map it to the different destination fields. For this, you must have multiple fields in your Destination side so that you can map them individually with the Splitted fields.
    Please refer below to get info on the above mentioned feature:
    http://help.sap.com/saphelp_mdm550/helpdata/en/ff/37e4c6857449388ddb6c77f160ac4f/frameset.htm -> GO to-> Multilingual Support-> Multilingual Opeartions->Splitting Multilingual Source Items.
    I think this what is what your requirement is. For refrence , kindly go through the link below, which will guide you to import the Multilingual Data and then Syndicate the file in .CSV format.
    End to End Solution to Multilingual Master Data :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e42521-0645-2b10-d1b2-e9f6fab39856
    Multiple Languages in MDM Part 1: Console Settings for Multilingual Master Data -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30fddcb9-2a40-2b10-a9a9-db552d687617
    Multiple Languages in MDM Part 4: Syndicating Data in Multiple Languages -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50b2702d-2b40-2b10-549e-92c0e88c8135
    Hope it helps.
    Thanks and Regards
    Nitin Jain

  • Addition of custom fields in Contract and mapping it with the fields in SRM

    Hi all,
    A custom field should be added to bid invitation in SRM and mapped to a custom( Z field) field which is present on the contract header screen in R/3 backend. Is it possible to map these custom fields. The custom field which is in the backend contract is a mandatory field for creating a contract in the backend. It is not getting filled so the contract is not getting created in the backend. One solution which we thought of was to create a csutom field on bid invitation and pass the value of the custom field to backend by concatenating it to any of the standard field ehich is getting passed to the backend and then splitting the standard field and retrieving the custom field value and restoring the standard field value. If you think of any solution do let me know.
    Regards,
    Asha

    Hi
    Pls refer to the following thread for more details
    Custom fields not display in SRM5.5 Basic Data Frame
    Custom fields not display in SRM5.5 Basic Data Frame
    Hope it helps.
    Pls reward suitable points.
    Regards
    - Atul

  • How to split all the fields of output ls-l from an internal table

    Hi all,
    Using ls-l command i have brought the file attributes of a file like its read and write permissions,creation date ,path etc in a internal table.
    Now how to split all these fields from the internal table or what should be the splitting criteria.
    The field contents of internal table are like this:
    -rw-rw----    1  devadm     sapsys     18360    apr  29......so on
    I want to split this into different fields.
    Kindly suggest.
    Thank You.

    Hi,
    I think the delimiter will be space. For date alone (Apr 29) you need to concatenate after the string has been split.
    Thanks and regards,
    S. Chandramouli

  • How to map lookup main table field in another main table using MDM 7.1?

    We created a new SAP MDM 7.1 repository with multiple main tables.  The first main table is called ProductMaster table which contains Products information.  The ProductCode is the primary key and the only display field for the table during data loading process. The second main table is ProductByRegion table which has a main table lookup field ProductCode and a RegionId field.  These two fields (ProductCode and RegionId) combine as the PK for this main table.  Both main tables have key mapping enabled. 
    I was able to load ProductMaster table using Import Manager.  But Iu2019m having trouble to load data into ProductByRegion table using MDM Import Manager.  Although I have met all the 5 requirements below (excerpted from MDM Import Manager Reference Guide P.222), the ProductCode wonu2019t show up on the destination value pane.  If I mapped all productCode to NULL field, ProductCode wonu2019t load.  If I u2018Addu2019 all ProductCode to Destination Value pane, the Import Manager added duplicated rows to Product Master table while only loading 1 record to ProductByRegion table.  I canu2019t get ProductCode show up in Matching Destination Field list.  When I checked ProductMaster records in MDM Data Manager, I right-clicked on one of records, chose Edit Key Mappings, it didnu2019t show anything.  However, if I right-clicked on one of those duplicated rows, Edit Key Mapping shows remote system and key correctly.
    Where did I do wrong?  How can I fix the problem?
    Thank you for help in advance.
    From: SAP MDM Import Manager Reference Guide:
    Mapping to Main Table Lookup Destination Fields
    Import Manager handles main table lookup fields (Lookup [Main])
    differently than other MDM lookup fields. Specifically, Import Manager
    does not display the complete set of display field values of the records
    of the underlying lookup table. Instead, the values it displays for a main
    table lookup field are limited by both the key mappings for the lookup
    table and the values in the source file.
    Also, Import Manager does not automatically display the values of a
    Lookup [Main] destination field in the Destination Values grid when you
    select the field in the Destination Fields grid. Instead, for a main table
    lookup field value to appear in the Destination Values grid, all of the
    following conditions must be met:
    u2022 The lookup table must have key mapping enabled
    u2022 The lookup field must be mapped to a source field
    u2022 The source field must contain key values for the lookup table
    u2022 The destination value must have a key on the current remote system
    u2022 The destination valueu2019s key must match a source field value
    NOTE ►► The current remote system is the remote system that was
    selected in Import Manageru2019s Connect to Source dialog (see
    u201CConnecting to a Remote Systemu201D on page 416 for more information).
    Vicky

    Hi Michael,
    Thank you very much for your response.  I'm new to SAP MDM, I need some clarification and help regarding your solution. 
    I did use two maps to load ProductMaster and ProductByRegion separately.  Here were my steps:
    1. create main table ProductMaster with key mapping enabled at the table level and set ProductCode as unique and writable once (primary key).
    2. create a map to load ProductMaster record from a staging table located an oracle database.  But Key mapping didn't show anything when I looked at them using Data Manager.
    3. create main table ProductByRegion with a lookup field looking at ProductMaster table.  This field and RegionId combines as a unique field for ProductByRegion table. 
    4. create a map to load ProductByRegion table.  But ProductCode records only shows on the source pane not destination pane and can't be mapped properly.
    My questions:
    1. How can I "Ensure that you add key mapping info for all ProductMaster records" besides enabling Key Mapping on the table level?
    2. How can I define a concatenation of ProductCode and RegionId as a REMOTE KEY"?
    Thanks a lot for your help!
    Vicky

  • In XI Mapping multiple fields mapping to single target field.

    Hi Friends,
    In XI Mapping multiple fields mapping to single target field.
    For example my requirement is :
    Source Fields:(This RFC BAPI Structure)
    Empno                0-1
    EmpName           0-1
    Address             0-1
    Taget Field is:
    Details               0-1
    The above three fields passed to the Details Field. Here i am using Concat function
    But i have one query on that on,Every field having "line Break" required.
    Can you please help me out above this requirement.
    Thanks in Advance,
    Sateesh N.

    If you want a line break between the three fields, then try
    passing a,b,c to the udf and in the udf you would have
    return a+"\n"+b+"\n"+c;

  • Mapping - Split string separated by value ;

    Hi,
    I have a mapping where 4 source values makes the key for 1 target value.
    In the target string (result after value mapping) i want to get the last value in the string "TargetValue1.
    <i>SourceValue1;SourceValue2;SourceValue3;SourceValue4;TargetValue1</i>
    Can this be done without UDF? If not how should the UDF look like?
    Best Regards
    /Claes
    Message was edited by:
            Claes Widestadh

    Hi,
    Yes I have concatenated 4 source values into one string to use them as key in a value mapping to get the target value. The result from the value mapping is a string with the 4 source value + the target value. What I want to do now after the value mapping is to spit this string to get only the target value.
    The string looks like this
    Source sting
    example 1) CC;-;ADJ;fre;
    example 2) CR;+;ADJH;TD;
    Target string:
    example 1) CC;-;ADJ;fre;<b>985</b>
    example 2) CR;+;ADJH;TD;<b>553</b>
    It is the value 985 or 553 that i want to map into the target field. The position for the target value (985, 553) is not a fixed position because of that the length of the source values can vary (see example obove). That means that I cant use the substring right?
    /Claes
    Message was edited by:
            Claes Widestadh
    null
    null

  • FDM mapping in ERP Integrator

    Hi, all of you
    I'm now thinking of the way to connect Oracle EBS 12.1.1 and Oracle Hyperion Financial Management, Fusion Edition 11.1.1.3.0 with ERP Integrator.
    In the introduction section in ERPI admin guide, ERPI is mentioned as a module of FDM.
    However, as far as I read the later sections in the guide, FDM is needed only if the user wants to use "FDM mapping."
    Is my understanding correct, and EBS and HFM is connected only with ERPI (without FDM)?
    And, if you know the advantage of using FDM mapping (I couldn't understand, actually), please tell me.
    Thanks in advance
    Yoshiki

    FDM is not required.
    The same type of mappings can be done in ERPI and FDM. For example 3 accounts in the g/l for coffee, soda, snacks map to one in HFM account.
    Using ERPI you will need more in the way of IT skill sets where FDM is constructed more for the Finance user to maintain.
    Not that it is that difficult, but moreover you want to buy FDM because the internal controls available would cost you a lot more to script, test, validate, and implement outside of this packaged solution.

  • Retreive IDOC number and map it to a field in Target XML

    Hi Experts,
    IDOC to file scenario
    I have a requirement where I have to retreive the number of the IDOC generated and map it to a field ID in the target XML.
    Do i have to use a UDF for this? can ne one pls explain?
    Regards,
    Teja

    Hi Ravi,
    You dont need use a UDF for this.
    this is a very simple requiremen.
    You can get the IDOC number from source IDOc
    under EDI_DC40 node field name DOCNUM.
    This DOCNUM fielsd will contain the IDOC number
    Map this DOCNUM field from source IDOC to target XML structure.

  • Workflow Components : how to use SPLIT and JOIN ?

    Dear all,
    Because a Transition does not have any return of result, do you know how to use SPLIT and JOIN components ?
    <activity name='"xyz">
    <Transition to='act1'>
    </Transition>
    <Transition to='act2'>
    </Transition>
    </activity>
    In this above example, the second transition towards act2 is never called (i.e. there is no condition for the first transition) because there is no return of result for the first transition.
    Unfortunately, I didn't find any documentation about the SPLIT and JOIN workflow components. Do you have some information about these components ? How to use them ?
    Thanks a lot.

    <activity name='"xyz" andSplit='true'>
    <Transition to='act1'>
    </Transition>
    <Transition to='act2'>
    </Transition>
    </activity>
    The "andSplit='true'" will cause it transition to both act1 and act1.

  • JDO : how to map a byte array field correctly

    Could someone please provide an example on how to correctly map a byte array field in a PCClass.
    The field should be mapped to a BLOB field in my Dictionary project.
    The checker keeps throwing errors during the enhancement process. Tried all sorts of combinations of xml in my jdo and map file (using the dtd) but I still haven't found the solution. The compilation works fine though, it is only the checker that complains.

    You're already in a PDF open in Acrobat (not the free Adobe Reader) and you've made a new PDF? Which you want to save to disk and reopen?

  • FDM Mapping tables within EPMA

    Hi All
    Can anybody tell me wether EPMA can hold the FDM mapping tables?
    Also should we create a new member within the EPMA library can we set up a prompt that requests the user to update the mapping table with the new member?
    Thanks

    Hi
    Thanks for the reply
    Do you know if Kalido will be able to hold an FDM mapping table and wether this could feed into FDM?
    Thanks again

  • Split and Joins?

    Hi,
    Could anyone explain the split and Join with simple scenarios?
    I understand that a split is geared towards movement from one activity to more than one activities, and vice-versa for a Join! But, is there a 'correlation' between the Or-split, And-Split and Or-join, And-join?
    Thanks experts,
    Kosh!

    Abasolutely, and split means both workitems should be evaluated on and join, default is Or split.
    But, make sure with your need, if you really need some approvals where there are lets say 5 possible approvers on a particular work item, then you do not really need to use split join, just use iterate and break it up on one's approval

Maybe you are looking for

  • Can I use my Nikon D90 AVI files in Premiere Pro CC on my iMac?

    Hi and thanks in advance to anyone who can lend me a hand. I am new to both Premiere Pro CC and Macs. I have used my Nikon D90 AVI files before with Premiere Elements on my PC with no problem, but the same films aren't working on my new setup with Pr

  • IPhone 4s: Won't Connect To iTunes 50% Of The Time

    Ok, I'm having a problem similar to ones I've been reading about, but after browsing the forum for several hours, I haven't found one that is exactly the same. When opening the app store from my new 4s, I can connect to the iTunes store exactly 50% o

  • Trying to burn an audio-book that is too big for the CD?

    I purchased an audio book (apx 2hours long). I tried to burn it to the CD but it keeps telling me that there isn't enough room on the CD. Is there a way to burn the CD to a folder, then split the tracks up to muliple disks? Keep in mind with audioboo

  • System Error messages in AE could not be Cancelled nor Restarted

    Hi, I'm working on a scenario with a JDBC Receiver.  During the testing, messages going to the JDBC receiver were being delivered successfully, however after a while, messages started to end in error (while others end up in holding/delivering status)

  • Synchronising when files are missing

    I store my Itunes on an external hard drive only. Unfortunately it has recently died. All my tunes are still on my Pod but I am worried about plugging it in to my computer in case autosynching will delete everything..need I worry ? Or will auto updat