Help on mapping

hi,
i have following target and source structures in mapping.
source:
segment1 (occurs 1..1)
     segment2 (occurs 1..99)
           type
           designation
Target
   segment1 (occurs 1..1)
         senior  (occurs 1..1)
         junior   (occurs 1..1)
I have to populate SENIOR and JUNIOR  fields in tatget structure based on the value of type in source structure.
In our scenario, field TYPE in source structure will have only two values.
Example: source will have TYPE = 1 and designation = tm
                                       TYPE = 2 and designation = sm
i have to move tm to JUNIOR and sm to SENIOR in target structure.

Hi Vijay,
There are two simple ways of carrying out the task.
a) Graphical mapping:
-- map it in the following way
  ---> use the CREATIF function for mapping segment2(source
   side) with segment1(target side)
   Hence the occurance of segment2 is taken care of!
   ---> Use the IF-ELSE loop.
   IF "type" EQUALS (constant = 1) AND "designation"
   EQUALS (constant = tm) then map it to "junior"
   ELSE
   map to "senior"
b) User defined function
-- here, you'll create the target nodes depending on the times the segment2 node occurs (using the for loop) check for the conditions (using if loops) and map them accordingly.
P.S: as per my knowledge this mapping can be achieved with graphical mapping and you can do without a udf.
Hope this helps.
Do reward points if useful.
Regards,
--Lavita.

Similar Messages

  • Help with mapping the mod_plsql path with Apache

    Hi,
    I need help with mapping my pl/SQL Handler path.
    Currently i have an URL like this :
    http://myhost.com/pls/DADUSER/PLSQLPROC?param1=123
    But I need something like :
    http://myhost.com/d/PLSQLPROC?param1=123
    I tried to rename the "Location Handler" from "pls" to "d", works great, but it always appends my Default DAD User to the URL.
    And I tried to map my PL/SQL Handler to "/" and create a DAD User called "d" and set it to default. Didn't worked...
    Any help is appreciated....
    Bye,
    Oliver
    null

    Oliver,
    try to use the rewrite directive or the
    rewrite engine (mod_rewrite).
    Please see the Online documentation for how
    to do this:
    http://technet.oracle.com/docs/products/ias/doc_library/1021doc_otn/comm.102/a87562/apptroub.htm
    Hope it helps
    -Stefan

  • Need help on maps v3.04

    i need help for map v3.04. i just downloaded the v3.04 and i notice it doesn't have GPS signal on the map. last time i was using v3.03, it has. the problem is, i have disabled the connection of internet. but when i use the map v3.04 for navigate, my credit still affected. i wonder why. is it using v3.04 is still ok or do i need to use v3.03. how to install v3.03 since the updater only have new one.thanks
    Solved!
    Go to Solution.

    You should be able to use V3.04 without incuring any network charges as long as you have it set up correctly. Check the following.
    Start the Location application and click on Positioning>Positioning methods. Make sure everything other than Integrated gps is unticked.
    You will also need to download all the required map data. To do this, connect your phone to a pc using Ovi Suite and download the relevant map data. After that, start Maps, click on the Spanner icon>Internet>Connection, set this to Offline.
    As for the signal bars, this has been replaced by the red dot on V3.04. The dot stops flashing when position fix is obtained. Sometimes you may see a pink halo around the red dot. The size of this halo gives you an indication of the position accuracy. The bigger the halo the less accurate the fix.

  • HELP with mapping between event_class SLA R12 and ap_invoices_all

    Hi Gurus!!
    I have to do a query that obtain the event class (XLA_ACCOUNTING_CLASS lookup code) of an invoice that this invoice is pending to be posted. The question is how do i do a mapping between AP_INVOICES_ALL table and the EVENT_CLASS ???
    For example... i have a class named "DEBIT MEMOS" but in the AP_INVOICES_ALL the INVOICE_TYPE_LOOKUP_CODE is DEBIT...
    hope someone could help me,
    PS: Application is R12
    Thanks!!
    Pablo.-

    Hi Tarun,
    Yes I am aware of that, but I just thought someone would which fields to join between the AP and the XLA tables as I can't find anything on the eTRM. So I do know that those are the tables to link, but I'm just not sure of the fields to join.

  • Robohelp 7 - Context sensitive help and map ID's

    Hi there,
    Long time reader, first time poster. Let me just say my background is in training, as opposed to technical writing or software, so forgive me if my technical knowledge seems lacking.
    My issue is that I've been presented with a bought in software product that the company I work for uses, and it's been updated. A year or so ago, we took their product, rebranded it and released it. The help was generated for our software build internally, producing a .chm file, which then mapped to their software to make it context sensitive for about 10 of 58 topics (top level only). (The original vendor provided an .ini file with some map id's)
    My issue is that over the year, numerous changes have been made to the Word document, and it doesn't really resemble the original anymore. It is used to produce a manual, and from this manual, one chapter is imported into Robohelp 7 without images and converted to .chm. I've managed to import the chapter, convert it and produce the .chm file, however I am at a com-lete blank when it comes to making it context sensitive. I have several questions therefore...
    1. Is it possible to create a new .chm that links to the old map id's? And if so what do I need to do?
    2. Would it be possible to simply import the new Word file to the old project if the topics stayed the same? (Would there be much manual work?)
    3. If these files are to be localised, what needs done to make that process as painless as possible? (The manual will be translated and we get that back)
    Further details on the project. It's approx. 58 topics long, ranging from 20 sentences in one topic to approx. 250 in another. There are jump hotspots within the project, and a TOC has been produced. (I believe this makes the topic ID's sensitive?)
    The old project had an .hh file with each line having the format: "#define     1001     1001", my new .hh file states "#define     topic_title     1". I believe this is important and these may need to match?
    The old project had a .hpt file with each line in the format: "23|1001|topic title", my new .hpt gile states: "23|topic_title|topic title". Again as these seem to refer to reference I believe they'd be important.
    Any help would be greatly appreciated! Nothing I've tried so far has worked
    Regards,
    Wazza

    The construction of your call is invalid. You can use a URL with the structure path/startpage.htm#topic.htm to call a specific topic but that is not how it works with map ids. There are topics on my site about calling webhelp by various means.
    I don't know where you got the trial of RoboHelp 7 but you will not be able to buy a full version as the current version is RoboHelp. Also Adobe have announced various sneak peeks of RoboHelp 9. There is a clue there.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Context sensitive help, adding mapping ID

    I am updating a HTML help project file and having trouble adding additional mapping ID's. The .chm file works fine within the application we are using using the original data. However when I add to the .h file to add additional mapping ID's, its not working (only on the new mapping ID's I added. When I use the CSH Test application, it works fine. Its when ever I add additional mapping ID's it does not work within the application. So far Adobe hasn't been able to figure it out.
    To Clarify:
    Original file looks like this: (these work fine within the application - outside of RoboHelp)
    Works fine with the CSH Test within Robohelp
    #define HIDD_ADMIN_REPORT_9G                               906      // 0x0000038a  906
    #define HIDD_ADMIN_REPORT_10A                              1000     // 0x000003e8  1000
    #define HIDD_ADMIN_REPORT_10B                              1001     // 0x000003e9  1001
    #define HIDD_ADMIN_REPORT_ELAPSED_HOLD      1101     // 0x0000044d  1101
    the values I have added: (these don't work within my application, but do work fine with the CSH Test within RoboHelp)
    #define HIDD_ADMIN_REPORT_9h                            131080
    #define HIDD_ADMIN_REPORT_9i                                131081
    #defineHIDD_ADMIN_REPORT_9J                                131082
    #define HIDD_ADMIN_REPORT_9k                                131083
    #define HIDD_ADMIN_REPORT_9L                            131084
    PART of my question is - what is the // 0x0000038a 906 - mean? when I export the file it doesn't add those values
    HELP !
    Thanks,
    Jim

    To answer your question, I'm not sure but it may explain why the call works in the CSH Tool but not from the application. It looks like some sort of hexadecimal value. Could you ask one of your developers to take a look and see if it rings a bell?

  • Need help on mapping of obsolete and new function module

    Hi Expert,
    We are working on a  upgradation tool in which i have to repace the obsolete function module "HELP_VALUES_GET_WITH_CHECKTAB
    " by "F4IF_FIELD_VALUE_REQUEST
    ". I am not sure about the functionalities of these function modules as i have never used it. Can anyone please help me  by providing some information abt  these FMs. Also i need to do the mapping of parameters of old and new function module. So please provide the details of mapping also. Any pointers on this will be highly appreciated.
    Thanks & Regards,
    P Sharma
    Moderator message : Duplicate post locked.  Continue with [Parameter mapping of FMs|Parameter mapping of FMs;.
    Edited by: Vinod Kumar on Jul 8, 2011 9:40 AM

    Hey Enivass,
    you can ckeck the input field "Account Number" whether it is numeric or Alphabet using *"Conversions ->Fixvalues"*
    Steps:
    1.  Extract first character of input using *" Text -> substring"*  -- start position 0 , char count 1 
    2. In Fix Value table you have to give following values:
    Dafault value : Alphabet
    key----
    value
    0----
    Number
    1----
    Number
    2----
    Number
    9----
    Number
    3.  Write logic IF "number" than  "Arithmatic -> FormatNumber   (0000000000)   -
    // for leading zeros
             ELSE
         concat with extra space        -
    Thanks

  • Need help with mapping

    Hello professionals,
    I need to map this structure
    <message>
    <node1>
       <ab>1</ab>
       <ab>2</ab>
       <ab>3</ab>
    </node1>
    <node1>
      <ab>3</ab>
      <ab>4</ab>
    </node1>
    <node1>
       <ab>5</ab>
       <ab>6</ab>
       <ab>7</ab>
    </node1>
    </message>
    So, in the target structure I need to take only the first "ab" occurence in node1:
    <message>
    <node1>
       <ab>1</ab>
    </node1>
    <node1>
      <ab>3</ab>
    </node1>
    <node1>
       <ab>5</ab>
    </node1>
    </message>
    How can I do this? Many thanks for help!

    Hi,
    You can use COLLAPSECONTEXT or COPYVALUE(0) function
    see this
    http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm

  • Need help with mapping( UDF)

    Hi,
      I had a mapping requirement where i need to transfer data with double quotes
          suppose data is
    sap-labs
    i need to send as "sap-labs".
    The main problem is when ever there is '-'(it can be any where in the string) I need to modify as above, otherwise data can be sent directly.
    I know how to do this requirement using Standard Functions.But, I am trying to use UDF so try to help me out with the code.
    and also what i have to import for this UDF. and why i have to import them?
    Thanks in advance,
    Siva.

    Hi Siva Bonthala,
    Note: - quote ("), apostrophe ('), ampersand (&), less than (<), greater than (>) are special characters in XML. They should not be present in data. [Link1|http://www.w3.org/TR/REC-xml/] [Link2|Re: Special Character Handling (&) in the payload content in PI 7.1]
    When you writing Java code to insert these special characters, you should use escape scequence characters.
    Test it for your self, in graphical mapping, use 'concat' function and type Delimiter String as ". Then check output XML, it will contain &quot ;.
    If you have to replace sap-labs with "sap-labs" for many element, I recomand you to use Java Mapping instead of UDF's for every field.
    Regards,
    Raghu_Vamsee

  • Need help in Mapping Logic

    Hi all,
    In mapping i need to mapp like this
    Idoc--file scenario, sending delivery document to file system
    in header of file structure, i have a field called Total Units, the logic for this field shld be
    Sum up the field ZCONV_QUAN for each delivery.
    How to do this please help me
    Regards

    Hi satish,
    I have to do some thing more in this.
    As you said i mapped the field to sum and to target field.its fine
    Now this field is there at header level and comes only ones, i should repeat this field as many number of times the line item repeats.
    Now iam using the ligic like this
    ZCONV_QUAN--UseOneAsMany-Sum--Target Field
    to UseOnaAsMany function i mapped ZCONV_QUAN as first argument and changed the context to Idoc and the second argument as line Item segment changed the context to Idoc, third argument as line itme segment.
    its giving the error as
    Too many values in first queue in function useOneAsMany. It must have the same number of contexts as second queue
    Regards

  • Help in Mapping

    Hi Experts,
    i need your help in Multi mapping.
    Input file structure
    Message
      Message1
        bpm_in_MT
          details
             name
             id
    Output file Structure
    Message
      Message1
       bpm_out_MT
        details
          name
          id
      Message2
       bpm_out1_MT
        details
          name
          id
    Here IF the value of name='A' the name and id should get mapped to Message1 otherwise it should mapped to Message2 node
    Kindly help me in this.
    Based on the value of the element(name), the node of input(details)should be directed to one of the two message types
    Edited by: preethi_malu on Feb 21, 2012 8:31 AM

    Hi,
    Very simple mapping logic.
    name--------->
                          equals(boolen)------->createif------->Message1
    A(Constant)-->
    name--------->
                          equals(boolen)------->not---->createif------->Message2
    A(Constant)-->
    Regards,
    Raj

  • Help in Mapping: User defined function

    Hi All, I need your help in doing the following mapping:
    The source contains the below fields:
    Source_MT -- Under this          1...1
       LineItem                                 1...Unbounded
         CompanyCode          1..1
         Amount               1..1
       SubTotal                               1...Unbounded
         CompanyCode          1...1
         Amount               1...1
    And the Target strunture should be:
    Target_MT -- Under this
       Target                               1...unbounded
         CompanyCode          1...1
         AmountMatched          1...1
    There will be multiple line items in the source for each compony code which I need to loop through and add the amounts. For a company code, The sum of the amounts in the line items should match with the amount in the Subtotal/Amount.
    For each company code, a target should be created with the result whther the amounts were matched or not.
    Below is the data example:
    Source:
    Line Item :
         CompanyCode          Amount
         ABC               5
         ABC               5
         XYZ               10
         ABC               7     
         XYZ               6
    Sub Total :
         CompanyCode          Amount
         ABC               17
         XYZ               5
    Target should be:
    CompanyCOde          Amount
    ABC               Matched
    XYZ               Not Matched
    Hope I am clear with my requirement. Please let me know if you need more clarity.
    I was able to create mapping, if the line items contains single company code. Need help with multiple company codes.
    Any help would be appreciated.
    Edited by: GP on Jan 29, 2008 5:55 PM
    Edited by: GP on Jan 29, 2008 5:57 PM

    I am still working on the same map (please refer above) for which you gave th3e solution. The solution almost worked.
    I need to validate the line items with the subtotals. If the validation fails, I should throw an custom exception. If the validation is successful, then do nothing (do not create the target element).
    Hope I am clear. Please let me know if I am not clear.
    LineItem1: 10
    LineItem2: 20
    SubTotal1: 30
    LineItem3: 5
    LineItem4: 5
    SubTotal2: 15
    In the above example, eventhough LineItem1 and LineItem2 sum up to Subtotal1,  LineItem3 and LineItem4 doesn't sum up to SubTotal2. So it should throw an exception because second validation failed.
    Also, it should not create target element because first validation was successful.
    I used the logic int he below link :
    [http://www.flickr.com/photo_zoom.gne?id=2229287904&size=o]
    In the "else" part of "If else" statement, I have a user defined function which throws exception.
    If the output is "true", I am avoiding creating the target element using "Createif" statement.
    But strangely, when the vaildation of first set fails (LineItem1, LineItem2 and Subtotal1), then it is throwing the exception.
    But when the validation of second set fails, then it is not throwing the exception.
    My current map looks like below:
    [http://www.flickr.com/photos/23389577@N02/2234471441/sizes/l/]
    Edited by: GP on Feb 1, 2008 6:46 PM
    Edited by: GP on Feb 1, 2008 6:50 PM
    Edited by: GP on Feb 1, 2008 7:01 PM

  • Help in Mapping please help

    Hi,
    I have a requirement with the source structure looking as
    Sourece :
    ACCOUNTGL 0....1
    item 0...unbounded
    ITEMNO_ACC 0....1
    CURRENCYAMOUNT 0....1
    item 0...unbounded
    ITEMNO_ACC 0....1
    CURRENCY_TYPE 0....1
    CURRENCY 0.....1
    XXXXXX 0......1
    TARGET STRUCTURE
    E1BPACGL09 0...Unbounded
    ITEM_TEXT 0......1
    All the fields of target E1BPACGL09 is mapped from ACCOUNTGL node of souce and the field ITEMTEXT under node E1BPACGL09 should have the condition .if the CURRENCY_TYPE is 00 and if ITEMNO_ACC in the segments ACCOUNTGL and CURRENCY AMOUNT are equal then we need to create a E1BPACGL09 with ITEM_TEXT concatinating CURRENCY and other field XXXXXX and pass it to ITEM_TEXT at target.Please help me in this .
    Is it possible through graphical mapping If so how please help .
    Thanks
    Rajesh

    Hello,
    Were you able to check my response to your earlier thread GL ACCOUNT Mapping help ?
    Regards,
    Mark
    Edited by: Mark Dihiansan on Jan 17, 2011 3:48 AM

  • Help in Mapping contexts

    Hi friends,
    my Source structure is
    ZField<0:10>
    ---Fname(Fields under Segment)(0:1)
    ---Sname(Fields under Segment)(0:1)
    This target node should be mapped to
    Name<1:1>
      ---Fname(1:10)
      ---Sname(1:10)
    with target node having 1:1 its not taking the values when Zfield node repeats..
    can you help me in solving this..
    My preferred output if the Zname node repeats twice means
    Name
    ---Fname
    ---Sname
    ---Fname
    ---Sname

    ur data type structure is not defied correctly.
    Name<1:unbounded>
    ---Fname(1:1)
    ---Sname(1:1)
    u will get below output for multiple Zfield for above structure this is wat r u looking for....
    Name
    ---Fname(1:1)
    ---Sname(1:1)
    Name
    ---Fname(1:1)
    ---Sname(1:1)

  • Help with Mapping

    Hi XI experts:
    I have a mapping question. This is the TLOG message coming from a POS into XI and needs to be mapped to the target.
    There are 2 types of nodes DTL (Detail) and DDC (Discount). They both have a common element DETAILNR. See the xml below.
    I need to take the QUANTITYSOLD field from the DTL node and multiply with the AMOUNT field of the DDC node and pass the result for matching DETAILNR and map to a field at the target side.
    The DTL and DDC nodes are at the same level, but the number of DTL nodes is more than that of the DDC node.
    Your help will be appreciated,<removed by moderator>
    Thank you.
    <DTL>
             <RECORDTYPE>DTL</RECORDTYPE>
             <DETAILNR>0065</DETAILNR>
             <QUANTITYSOLD>+0010</QUANTITYSOLD>
    </DTL>
    <DDC>
             <RECORDTYPE>DDC</RECORDTYPE>
             <DETAILNR>0065</DETAILNR>
             <AMOUNT>+00000000.89</AMOUNT>
    </DDC>
    Edited by: Mike Pokraka on Jul 24, 2008 1:16 PM

    Sameer,
    The XML is:
    Thank you.
    <ns:MT_TLOG xmlns:ns="urn:nslc:xi:BeanStore:POSI001:Tlog">
         <RecordSet>
              <HDR>
                   <RECORDTYPE>HDR</RECORDTYPE>
                   <STORECODE>2367</STORECODE>
                   <TRADINGDATE>20080719</TRADINGDATE>
                   <TRANSACTIONTYPE>003</TRANSACTIONTYPE>
                   <TILLID>003</TILLID>
              </HDR>
              <DTL>
                   <RECORDTYPE>DTL</RECORDTYPE>
                   <DETAILNR>0013</DETAILNR>
                   <SKUCODE>00000000000001000893</SKUCODE>
                   <QUANTITYSOLD>+0001</QUANTITYSOLD>
              </DTL>
              <DTL>
                   <RECORDTYPE>DTL</RECORDTYPE>
                   <STORECODE>2367</STORECODE>
                   <SKUCODE>00000000000001001939</SKUCODE>
                   <QUANTITYSOLD>+0010</QUANTITYSOLD>
              </DTL>
              <DTL>
                   <RECORDTYPE>DTL</RECORDTYPE>
                   <STORECODE>2367</STORECODE>
                   <SKUCODE>00000000000001001493</SKUCODE>
                   <QUANTITYSOLD>+0010</QUANTITYSOLD>
              </DTL>
              <DTL>
                   <RECORDTYPE>DTL</RECORDTYPE>
                   <STORECODE>2367</STORECODE>
                   <SKUCODE>00000000000001001493</SKUCODE>
                   <QUANTITYSOLD>+0010</QUANTITYSOLD>
              </DTL>
                   <DDC>
                   <RECORDTYPE>DDC</RECORDTYPE>
                   <DETAILNR>0075</DETAILNR>
                   <AMOUNT>+00000000.89</AMOUNT>
              </DDC>
              <DDC>
                   <RECORDTYPE>DDC</RECORDTYPE>
                   <DETAILNR>0065</DETAILNR>
                   <AMOUNT>+00000000.89</AMOUNT>
              </DDC>
              <TAX>
                   <RECORDTYPE>TAX</RECORDTYPE>
                   <STORECODE>2367</STORECODE>
                   <TILLID>003</TILLID>
                   <TRANSACTIONNR>00018947</TRANSACTIONNR>
                   <TAXNR>0001</TAXNR>
                   <TAXMETHOD>01</TAXMETHOD>
                   <AMOUNT>+00000734.97</AMOUNT>
              </TAX>
         </RecordSet>
    </ns:MT_TLOG>

Maybe you are looking for