Maps: How to generate a single node from multiple nodes

Hi,
I have a problem while mapping. I have a large complex input schema through which I generate a flat file output. I have used map for creating the output. Below is the
output and expected output.
Output:
E,651,120,3999,2013-12-01,2013-12-25,25,556,0.00,0
E,652,120,3901,2013-12-01,2013-12-27,27,6176.25,0.00,0
SR,17,120,2013-12-25,2022,122013,2,6732.25,1,01389399501
SR,17,120,2013-12-27,2022,122013,2,6732.25,1,01389399501
Expected Output:
E,651,120,3999,2013-12-01,2013-12-25,25,556,0.00,0
E,652,120,3901,2013-12-01,2013-12-27,27,6176.25,0.00,0
SR,17,120,2013-12-27,2022,122013,2,6732.25,1,01389399501
There should always be one SR node. The node which should be present should be the one which has maximum DATE. While mapping how can I check before hand that there will be more DATE values coming and then map only latest. It’s a complex mapping so I’m looking
for a simple solution.
I want some conditions like while generating output SR Node, if there will be various SCR nodes in output then select the node with maximum date value in insert that in output.
Thanks.

Thanks for the detailed response Aswin. It's very helpful. Please help in one more condition, sometimes there could be multiple SR with same Date. In that case SR is still repeating as all are equal so above maximun logic is creating n nodes. Eg:
Output:
E,651,120,3999,2013-12-01,2013-12-25,25,556,0.00,0
E,652,120,3901,2013-12-01,2013-12-27,27,6176.25,0.00,0
SR,218,504420120,2013-10-04,0451,102013,1,393.85,AD,501
SR,218,504420120,2013-10-04,0451,102013,1,393.85,AD,501
Expected Op:
E,651,120,3999,2013-12-01,2013-12-25,25,556,0.00,0
E,652,120,3901,2013-12-01,2013-12-27,27,6176.25,0.00,0
SR,218,504420120,2013-10-04,0451,102013,1,393.85,AD,501
So, if there are maximum in that cas select max, which is working now and if they are same then any one of those.

Similar Messages

  • How to generate a single report  using multiple Databases

    Hi All
    Is it possible to create a single report using multiple databases
    I am working on Database A to generate reports usually,, but now i have a second database for which the data is coming from flat files now i have to use few tables from
    Database B to generate a single report,,,,, can any one help with the process

    Hi,
    i didn't see this properly in your post:
    but now i have a second database for which the data is coming from flat files if you have ETL then make flat files as source then create target tables in db:B itself.. .Now, import them in the rpd..
    If not, import both those tables into rpd with different connections..
    Create physical joins by selecting those tables and perform joins operations over db's in physical layer..

  • How to return a single datetime from multiple rows of MAX(value) in DAX

    Hi
    I have a Results table with ResultTime, Balance, Equity which is updated with a new row every 5 minutes. I've used SUMX to find opening and closing balances and it has worked so far.
    Res_OpeningBalance:=SUMX(TOPN(1,Results,Results[ResultTime],1),[Balance])
    Res_ClosingBalance:=SUMX(TOPN(1,Results,Results[ResultTime],0),[Balance])
    But when I tried it with dates, the whole thing fell apart.
    Res_MaxBalance_Date:=SUMX(TOPN(1,Results,Results[Balance],0),[ResultTime])
    Since the highest Balance is likely to be represented through many rows due to it lasting more than 5 minutes, ResultTime (which is unique to each row) is summed up and returns messed up dates well into the future. How to return only one date (first or last
    datetime) from the rows where Balance is at max?
    I tried a TOPN of TOPN, but Excel was not amused.
    =SUMX(TOPN(1,Results,Results[Balance],0),TOPN(1,Results,Results[ResultTime],0))
    TIA!
    Re
    Dennis

    I still don't understand RANKX, but I figured it out anyway. I get the correct data by using:
    Res_MaxBalance:=MAX(Results[Balance])
    Res_MaxBalanceDate:=CALCULATE(MAX(Results[ResultTime]),FILTER(Results, Results[Balance]=MAX(Results[Balance])))
    Res_MinBalance:=MIN(Results[Balance])
    Res_MinBalanceDate:=CALCULATE(MAX(Results[ResultTime]),FILTER(Results, Results[Balance]=MIN(Results[Balance])))
    Res_MaxEquity:=MAX(Results[Equity])
    Res_MaxEquityDate:=CALCULATE(MAX(Results[ResultTime]),FILTER(Results, Results[Equity]=MAX(Results[Equity])))
    Res_MinEquity:=MIN(Results[Equity])
    Res_MinEquityDate:=CALCULATE(MAX(Results[ResultTime]),FILTER(Results, Results[Equity]=MIN(Results[Equity])))
    Re
    D

  • How to get the data from multiple nodes to one table

    Hi All,
    How to get the data from multiple nodes to one table.examples nodes are like  A B C D E relation also maintained
    Regards,
    Indra

    HI Indra,
    From Node A, get the values of the attributes as
    lo_NodeA->GET_STATIC_ATTRIBUTES(  IMPORTING STATIC_ATTRIBUTES = ls_attributesA  ).
    Similarily get all the node values from B, C, D and E.
    Finally append all your ls records to the table.
    Hope you are clear.
    BR,
    RAM.

  • How to delete a single request from DSO in BI 7.0

    Dear Experts,
    Could you please tell me how to delete a single request from DSO?
    I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
    Please suggest me this issue.
    Regards,
    Prathap

    IN DSO--its a very basic thing....
    ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
    So ,each new request has a realationsip with the older request.
    So in the cases:
    1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
    e.g older request  entries:
    a x 1
    new request
    a x 2
    change log
    a x 1
    a x -1
    a x 2
    so its quite obvious you can't have  a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
    2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
    I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
    thats request reverst posting
    IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
    regards,
    rk

  • How can I create a single order from multiple quotations?

    How can I create a single order from multiple quotations that I have created by the transaction VA21 ?
    Thanks in advance for the answers.

    hi
    Go to transaction: /nva01
    Enter order type : ZOR
    Sale org :xxxx
    Dist.channel:xx
    Division :xx
    Press enter
    Click on “Sale document” and select Create with reference
    Then enter 1st quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation1 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 2nd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation2 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 3rd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation3 copy to order.
    Now save the sale document.
    Kindly give reward points
    Edited by: WISH on Mar 19, 2008 2:25 PM

  • How to move the process chain from Unassigned node to a new node in 3.5?

    Hi all,
    I have created a new process chain in the development and it is falling under the Unassigned nodes. I want to move that process chain to an another node. but i am unable to do that
    Can anyone let me know how to move the process chain from unassigned node. I have drag and dropped but still the same in BW 3.5 ?
    Thanks
    Poooja

    Hello,
    Try this....
    Double click on your process chain. Via the menu select:
    Process chain > Attributes > Display components
    Select F4 (possible entries)
    At the bottom of the window you will find a create icon
    to make your own component.
    After you created it, assign it to your process chain.
    Don't forget to save the process chain.
    Regards,
    Sivaram

  • How to generate the BPEL interface from XSD?

    I am new to the BPEL. How to generate the BPEL interface from XSD because I need the inputed payload to have a complex type instead the simple string?
    Thank you

    I made the following change to the xsd file, however when the input type change to emailDataType, it is underline by red color. and the bpm process, activity guide, organization become the unknown project object.
    <?xml version="1.0" encoding="UTF-8"?>
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/SampleBPM/SampleEmailNotification/SendEmail"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="process">
              <complexType>
                   <sequence>
                        <element name="input" type="emailDataType"/>
                   </sequence>
              </complexType>
         </element>
         <element name="processResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="emailDataType" >
    <sequence>
    <element name="toEmailAddress" type="string" />
    <element name="ccEmailAddress" type="string" />
    <element name="emailSubject" type="string" />
    <element name="emailContent" type="string" />
    </sequence>
    </complexType>
    </schema>
    The XSD file is viewed by the design mode is fine on JDeveloper. Please help!

  • How do I create. A single PDF from multiple files? PDF pack on iOS

    How do I create. A single PDF from multiple files? PDF pack on iOS
    The primary reason I signed up for. PDF Pack was to create a single PDF from multiple image files and other PDFs .
    Is this possible? If so how
    thanks in advance
    rich

    Hi Rich,
    The combine files feature isn't available when you're using Reader for iOS. However, you can log on to the web interface at Adobe Acrobat.com using your Adobe ID and credentials, and use the Combine Files feature there.
    Please let us know if you need further assistance.
    Best,
    Sara

  • How to generate power point slides from web forms?

    Hello,
    Anybody know how to generate power point slides from the web forms. the data will in the database just like how we generate a report, just like that is there any way we can generate power point slides? if so could you please provide information please. Any examples are appreciated...
    Thanks so much....

    Hi,
    i have never tried it but in
    this link you can see the it should be possible with the
    powerpoint viewer.
    Regards,
    Markus

  • How to drag and drop user from one node to other node.

    Dear All,
    How to drag and drop user from one node to other node.I tried but no success.
    What are precautions to be taken.
    Cay anybody kindly explain it.
    Thank you.

    Hello, if you had this message you had created BP....
    Now you don't have to user USERS_GEN this transaction is used only in first action, when you create the user in R/3 and then you pass this user to EBP in the organizational structure.
    Now you have to:
    1) Go to PPOMA_BBP
    2) Double click on organizational unit that you want to put this user (purchasing organization or purchasing group box for example)
    3) Select assign button in the top of the functions in the transaction
    4) Click on incorporates -- position
    5) Put userID that you want to add in this organizational unit
    6) Click Save
    Thanks
    Rosa

  • How to delete a node from a node network

    How do I delete a node from a node network?
    <P>
    <OL>
    <LI>Follow the instructions on page 30 of the Calendar Server (CS) 3.x Admin Guide,
    and page 62 of the CS 4.0 Admin Guide "Deleting (excluding) a Node from the
    Network".
    <LI>Shut down the Directory Server.
    <LI>Backup the LDAP directory to an LDIF file.
    <LI>Edit this LDIF file and delete references to the
    6 calendar reserved users for the node to be deleted.
    <LI>Restore the LDAP directory with this changed LDIF file.
    <LI>Run unidbfix -export -n all
    <LI>Edit the resulting remotenodes.ini
    files and delete all
    references to the node to be deleted.
    <LI>Run unidbfix -import -n all
    <LI>Start the Directory Server.
    <LI>Start the Calendar Server.
    <P>
    Note: This next step is for Calendar Server 3.x * ONLY *
    <P>
    <LI>Run unireqdump -delete
    to delete all requests to the node
    to be deleted.
    </OL>

    Divya wrote:
    Hi,
    I'm using forms6i.
    I want to delete unselected nodes from a tree
    How can it be done??
    ThanksIf you mean empty branches as unselected nodes,
    set Allow Empty Branches property to 'No' in the Trees property.

  • How can i import the data from multiple sources into single rpd in obiee11g

    how can i import the data from multiple sources into single rpd in obiee11g

    Hi,
    to import from multiple data sources, first configure ODBC connections for respective data sources. then you can import data from multiple data sources. When you import the data, a connection pool will create automatically.
    tnx

  • How to generate an IP core from an available Verilog code ?

    Hi everyone,
    Currently, I would like to test a Active Noise Cancellation (ANC) system on Zedboard. This system consist of a ANC Chip embedded inside FPGA and written by Verilog language and a earphone which includes a microphone and loudspeaker. This means we need to use ADAU1761 Chip for testing on Zedboard. I also have studied and known that in order to use and control this Audio Chip by writing Verilog code is so difficult.I also referred Lab4 on Xilinx website and I understand that my problem can be solved by synthesizing an IP core from Verilog (which I am programming for ANC chip) as FIR filter in Lab4. My biggest problem, I don't know how to generate an IP core from my Verilog code and I also don't know any tools can help me solve this problem.
    Please kindly let me know the way to generate an IP core from my Verilog code or  the tools I can use for this problem. Any your suggestions to solve this problem are  significant with me.
    Thanks in advance !

    h,
    I would start reading the users guides, and reference manuals.  I would work example through the tools.
    An IP block is nothing but a verilog or VHDL block that you decide to use over again.  Once your block is working, the tools (ISE or Vivado) allow you to capture it, and encapsulate it as an IP block that can be re-used later in other projects (it becomes a library function).
    So, first get it to work.  Then worry about making it an IP block, and then, only if you need to use it again and again in other projects.  If not, then there is no need to go to the trouble of making it an IP block -- just use the verilog or VHDL whenever you need it.
     

  • How to generate .SQL format file from oracle database?

    How to generate .SQL format file from oracle database?
    I have a database of Oracle 8.1.6,now want to generate script file (including table structure,index,etc.) from it,What should I do?
    Thanks.

    Your question pertains to the Database Export/Import. This forum exclusively focusses on the export/import utilities that come along with "Oracle Portal" which is a web-based tool. Could you please post your question under the RDBMS export/import or migration forum.

Maybe you are looking for

  • Look up table

    I want to prepare a look up table for voltage vs acceleration level in my program. This look up table will be used to search for the level of voltage to be fed to DAQ card  for the desired  acceleration in my application. Also how to read  the look u

  • VPN 64 bit client is not working properly

    I have a user using windiows 7 64 bit. I tried vpnclient-winx64-msi-5.0.07.0290-k9.exe and vpnclient-winx64-msi-5.0.07.0440-k9.exe. Installation is fine. Connecting is fine. But no traffic goes through. The remote end cisco is 1811 VPN Server split t

  • Needing a mini to video/audio edit/produce.

    been digging deeper and deeper into video and audio production and editing. currently im running a 24" imac 2.4ghz, 1gb ram, i use it as my everyday computer and i been playing around with some video editing and a good bit of audio production. (im go

  • Text missing from iCal

    Hi Everyone, I recently typed in a lot of text in my iCal giving details on specific events that take place for several hours. When I came back in today and opened my iCal I found that half of the longer explanations in calendar events was gone and r

  • Removing my iPhone 4s out of lost mode

    How to take iPhone 4s out of lost mode