How to implement mapping logic?

Hi Experts,
i have 5 idocs coming with structure as this.
IDOC-1* SEGMENT-EKPKF*
    SEGMENT-EKSEG
    field-KOART=D
    field-SKHZG=H
    field-WRBTR=200.00
   SEGMENT-EKSEG
    field-KOART=D
    field-SKHZG=S
    field-WRBTR=230.00
IDOC-2 SEGMENT-EKPKF
    SEGMENT-EKSEG
    field-KOART=D
    field-SKHZG=H
    field-WRBTR=50.00
   SEGMENT-EKSEG
    field-KOART=D
    field-SKHZG=S
    field-WRBTR=290.00
now two fields of reciever structure should have value as
FIELD-1
add WRBTR for each idoc when KOART=D and SKHZG=H
i.e result should be 250.00
FIELD-2
add WRBTR for each idoc when KOART=D and SKHZG=S
i.e result should be 520.00
can someone tell me how to implement this.....
regards
Akhil
Edited by: Akhil Rastogi on Mar 13, 2008 11:03 AM

EKPKF>RemoveContext>EKPKF
EKSEG>RemoveContext>EKSEG
SKHZG----
Constant(H)>IFWITHOUTELSE ()> WRBTR-->FIELD1
                         SKHZG==H
SKHZG----
>
Constant(S)>IFWITHOUTELSE ()> WRBTR-->FIELD2
                         SKHZG==S

Similar Messages

  • How to implement mapping for a slowly changing dimension

    Hello,
    I don't have any experience with OWB and I need some help.
    I just don't know how to create the ETL process for a slowly changing dimension.
    My scenario is that I have 2 operative systems providing customer information, a staging area and a dwh with a customer dimension with SCD type 2 (created within OWB).
    The oltp data is already transferred to the staging area. But how should the mapping for the dwh table look like? Which operators have to be used?
    I have to check whether the customer record is new or just updated. How can I check every attribute? A new record shall be loaded, an updated record shall be historized (as I configured it in the SCD type 2). I just don't know how the trigger of the SCD is activated. Do I have to try an update on the trigger attribute and then automaticalle a new record is created? But with which operator can I do this? How should the mapping look like? Or is this impossible and do I have to implement this functionality with SQL code only?
    I know how to implement this with SQL code, but my task is to implement this in OWB.
    As you see I did not understand the logic of OWB so far and I hope somebody can help me.
    Greetings,
    Joerg

    Joerg,
    Check the blog below which provides good detail and also check the OWB documentation
    http://www.rittmanmead.com/2006/09/21/working-through-some-scd-2-and-3-examples-using-owb10gr2/
    Thanks,
    Sam.

  • How to implement maps in obiee11g and configure map viewer

    Dear All,
    Greeting for the day,
    I am trying to explore obiee11g, ,how to implement the maps that is one of the finest features incorporated in obiee11g, and what all configurations(if required) are to be done. or any helpful documentation regarding same.
    Please help!!!!
    Thanks in advance
    Regards

    Hi,
    Check the RittmanMead-blog
    http://www.rittmanmead.com/2010/08/oracle-bi-ee-11g-map-views-integration-with-mapviewer/
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • How to implement this logic in odi

    suposse my table is like this
    a b c
    1234 01-JAN-09 0
    1234 02-JAN-09 1
    1234 05-JAN-09 1
    1244 06-JAN-09 1
    1234 10-JAN-09 0
    1234 13-JAN-09 1
    1234 25-JAN-09 0
    1234 27-JAN-09 1
    1234 30-JAN-09 1
    1235 01-JAN-09 1
    1235 02-JAN-09 0
    1235 05-JAN-09 1
    1245 06-JAN-09 1
    1235 10-JAN-09 1
    1235 13-JAN-09 3
    1235 25-JAN-09 2
    1235 27-JAN-09 0
    1235 30-JAN-09 0
    i want out put like this
    a b c
    1234 01-JAN-09 0
    1234 02-JAN-09 1
    1234 05-JAN-09 2
    1244 06-JAN-09 3
    1234 10-JAN-09 3
    1234 13-JAN-09 4
    1234 25-JAN-09 4
    1234 27-JAN-09 5
    1234 30-JAN-09 6
    1235 01-JAN-09 1
    1235 02-JAN-09 1
    1235 05-JAN-09 2
    1245 06-JAN-09 3
    1235 10-JAN-09 4
    1235 13-JAN-09 7
    1235 25-JAN-09 9
    1235 27-JAN-09 9
    1235 30-JAN-09 9
    to get out put like that iam using this query
    select a,b,sum(c) over(partition by a order by b) from table.
    how to implement "sum(c) over(partition by a order by b)" in odi interface mappings

    Hi
    if you don't want to aggregate try to define a user function
    analytic_sum($(value))
    implémented by
    sum($(value))
    after that
    replace your
    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    by
    analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)

  • How to implement the logic in the code

    Hi,
    i want to do sum for each and every line item of the delivery quantity and compare it with final purchase order quantity if it is equal do not display in the output.(how to use at last/at end of ) in this code,
    below code wat i have ritten is only comparing first record quantity (not total line items quantity )with final purchase order quantity and displaying the output, but i want sum of each and every line item of the delivery quantity (total)and compare with final quantity(purchase order quantity) and which are greater than final purchase order quantity those wil be displayed in the output.
    if possible try modify this code
    clear:wa_final,wa_kopoo,wa_likpp1.
    loop at it_kopoo into wa_kopoo.
    move wa_kopoo-ebeln to wa_final-ebeln.
    move wa_kopoo-ebelp to wa_final-ebelp.
    move wa_kopoo-matnr to wa_final-matnr.
    move wa_kopoo-txz01 to wa_final-txz01.
    move wa_kopoo-menge to wa_final-menge.
    move wa_kopoo-meins to wa_final-meins.
    move wa_kopoo-werks to wa_final-werks.
    move wa_kopoo-matkl to wa_final-matkl.
    move wa_kopoo-reswk to wa_final-reswk.
    move wa_kopoo-aedat to wa_final-aedat.
    move wa_kopoo-ekgrp to wa_final-ekgrp.
    move wa_kopoo-EINDT to wa_final-EINDT.
    read table it_likpp1 into wa_likpp1 with key vgbel = wa_final-ebeln
    vgpos = wa_final-ebelp.
    if sy-subrc eq 0.
    if wa_final-menge > wa_likpp1-LFIMG.
    else.
    continue.
    endif.
    endif.
    append wa_final to it_final.
    clear:wa_final,wa_kopoo,wa_likpp1.
    endloop.
    endif.
    Thanks in Advance

    Try this
    sort it_kopoo by ebeln ebelp.
    clear:wa_final,wa_kopoo,wa_likpp1.
    loop at it_kopoo into wa_kopoo.
    move wa_kopoo-ebeln to wa_final-ebeln.
    move wa_kopoo-ebelp to wa_final-ebelp.
    move wa_kopoo-matnr to wa_final-matnr.
    move wa_kopoo-txz01 to wa_final-txz01.
    move wa_kopoo-menge to wa_final-menge.
    move wa_kopoo-meins to wa_final-meins.
    move wa_kopoo-werks to wa_final-werks.
    move wa_kopoo-matkl to wa_final-matkl.
    move wa_kopoo-reswk to wa_final-reswk.
    move wa_kopoo-aedat to wa_final-aedat.
    move wa_kopoo-ekgrp to wa_final-ekgrp.
    move wa_kopoo-EINDT to wa_final-EINDT.
    at end of ebelp.
    read table it_likpp1 into wa_likpp1 with key vgbel = wa_final-ebeln
    vgpos = wa_final-ebelp.
    if sy-subrc eq 0.
    if wa_final-menge > wa_likpp1-LFIMG.
    else.
    continue.
    endif.
    endif.
    endat.
    append wa_final to it_final.
    clear:wa_final,wa_kopoo,wa_likpp1.
    endloop.
    endif.
    always use code format while pasting the code. it will be easy for reading
    //Kothand

  • How to implement this logic in the discoverer...

    select test_emp.status
           from test_emp te
           where not exists (select 'x' from test_emp b
                                   where  te.job = b.job                    
                                     and     te.sname = b.same              
                                     and     b.sdate > trunc(sysdate));

    You could try creating a calculation like:
    max(sdate) over (partition by job, sname)then creating a condition like:
    <calculation> > trunc(sysdate)

  • How to implement subquery in OWB mapping

    I am trying to build a mapping (OWB 10gR2) which uses a single driver table (COLLEGE) and requires additional columns from 2 other tables (CONTACT and DEMOGRAPHIC) which have a many-to-one relationship with the driver table. The output should be a single record for each record in the driver table.
    For the join to the CONTACT table I only want to return the first record found. The join for the DEMOGRAPHIC table should return the record with the MAXIMUM year. In SQL I would handle these relationships via subqueries. Here is a sample of the SQL that I would use:
    select college_CODE,
    college_DESC,
    contact_NAME,
    contact_PTYP_CODE,
    demographic_DEMO_YEAR,
    demographic_CALENDAR_TYPE,
    demographic_ACCREDITATION_TYPE
    from college, contact, demographic
    where college_code = contact_sbgI_code
    AND contact.ROWID = (SELECT MIN(A.contact.ROWID)
    FROM contact A
    WHERE A.contact_SBGI_CODE = college.college_CODE )
    AND college.college_CODE = demographic.demographic_SBGI_CODE
    And demographic.demographic_DEMO_YEAR = (SELECT MAX(B.demographic_DEMO_YEAR)
    FROM demographic B
    WHERE B.demographic_SBGI_CODE = college.college_CODE)
    How do I implement this logic within OWB? Is there any way to do it without using views?
    Thank you in advance!
    Chuck

    Hi,
    Try this way....join college and contact tables (if u r maintaining history in contact table use the dates also to join) and get the min of effective date form the contact table thru the aggregator...this will give u the first record....then join the result with the DEMOGRAPHIC table and get use the aggregator to get max of the year...this should give u the right result...
    Regards
    Bharath

  • How to implement multi-source XSLT mapping in 11g PS3 BPEL  ?

    Hi
    How to implement multi-source (single destination) XSLT mapping in 11g PS3 BPEL ? Is there any good example step by step ?
    thx
    d

    Hi d,
    Also there's a sample available at samplecode.oracle.com mapper-105-multiple-sources.zip.
    Regards,
    Neeraj Sehgal

  • How to implement this complex logic on rpd

    How to implement following sql logic on OBIEE 10g RPD...whole thing to be implemented as single column on presentation layer.
    to calculate numerator===
    select sum(flag) as ap_account_no,exp from                                                                                           
    (select a.invoice_id as invid,a.payment_no, max(a.payment_dt) as payment_dt,max(a.due_dt) as due_dt,b.expenditure_type as exp,                                                                                          
    case when max(a.due_dt)+ 3 > max(a.payment_dt)                                                                                           
    then 1                                                                                           
    else 0                                                                                           
    end As Flag                                                                                          
    from Supplier_inv_pymt_map a, po_invoice_map b                                                                                          
    where a.invoice_id= b.invoice_id and a.invoice_dt!=a.due_dt and a.usd_gross_AMOUNT >0 and a.PAYMENT_STATUS!='VOIDED' and to_char(a.payment_dt,'MON-YYYY')='JUN-2011'                                                                                          
    group by a.invoice_id, a.payment_no,b.expenditure_type) GROUP BY exp                                                                                          
    to calculate denominator===
    select count(invid),exp from                                                                                      
    (select a.invoice_id as invid,a.payment_no, max(a.payment_dt) as payment_dt,max(a.due_dt) as due_dt, b.expenditure_type as exp                                                                                     
    from Supplier_inv_pymt_map a, po_invoice_map b                                                                                     
    where a.invoice_id= b.invoice_id and a.invoice_dt!=a.due_dt and a.usd_gross_AMOUNT >0 and a.PAYMENT_STATUS!='VOIDED' and to_char(a.payment_dt,'MON-YYYY')='JUN-2011'                                                                                     
    group by a.invoice_id, a.payment_no,b.expenditure_type) GROUP BY exp                                                                                     
    tables n column used in sql r available on physical layer....
    can anyone help

    Hi
    if you don't want to aggregate try to define a user function
    analytic_sum($(value))
    implémented by
    sum($(value))
    after that
    replace your
    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    by
    analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)

  • How to implement this aggregate logic at target column in odi inteface mapp

    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    how to implement this aggregate logic at target column in odi inteface mappings

    Hi
    if you don't want to aggregate try to define a user function
    analytic_sum($(value))
    implémented by
    sum($(value))
    after that
    replace your
    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    by
    analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)

  • How to implement wafer mapping using LabVIEW?

    Hello LabVIEW Masters!
    I am having an incoming project which includes controlling and gathering information from a PROBER. One of the difficulties I am having now is how to implement a WAFER MAP using LabVIEW. According to my customer requirements, the wafer element ranges from 6k to 23k. I guess doing all the element (one die = one led ctl/indicator) will be a hell of a task, especially on how to effectively manipulate each elements. Does anyone have better idea on how to this?
    Please, I badly need your help.. 
    Thanks and Regards,
    Dennis DG
    Solved!
    Go to Solution.

    Hi Dennis,
    Is it okay if you send to me the working VI also?
    No, it's not ok. I made that program for my customer...
    As I am not too familiar in using intensity graph.
    That's no reason to hand over programs for free...
    My customer also request me that if the cursor hover on the wafer map, he wants the x,y corrdinates to be displayed.
    I also have such a feature. Did you notice the little yellow cursor near the center of the wafer? One could easily change that to use a MouseMove event instead...
    He also wants to select some elements in the wafer map and come up with the coordinate values to do some testing.
    That's related to the cursor thing...
    Some points:
    - You have a customer that pays you. Why should I offer work for free?
    - You can send me contact dates of your customer, I will make him an offer...
    - When you take an job to provide software you should be able to code the software...
    - The VI(s) are now some years old. I didn't code so well back those days and don't want to hand out those VIs as they are right now.
    - I included some "license management" deep inside that program, I would have to remove this and spend time on testing afterwards...
    - The VIs are based on the PROBER output format used by the customer. All the file handling has to be changed for/by you...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to implement Comparator in Map

    hi,
    Can any one explain how to implement camparator interface in map. i want to sort the map by the values stored.
    Thanks in advance.

    H&#111;ly Chr&#105;st!
    We are being overrun by double posting numbnuts today.

  • How to implement a client side map with ObjectImage control?

    We need to implement a client side map with an ADF Faces ObjectImage control. In the code below, the JSF Faces GraphicImage contol does support a client side image map using the usemap property. However, it appears that the ADF Faces ObjectImage control does not support a client side map. Is there someway of implementing this functionality in an ObjectImage control?
    <h:graphicImage url="/images/map-usa.gif"
    usemap="#m_mapusa"
    binding="#{backing_map.graphicImage2}"
    id="graphicImage2"
    style="border-style:none;"/>
    <af:objectImage source="/images/map-usa.gif"
    binding="#{backing_map.objectImage2}"
    id="objectImage2" />
    We could use the Graphic Image control except we have a problem by mixing a JSF GraphicImage control in the same table with a variety of ADF Faces controls in that when a user clicks on the GraphicImage, then the browser windows scrolls down to center the GraphicImage control. A user then needs to scroll back up to see the rest of the page. If an ObjectImage control is used with an onClick action, then the page does not scroll, which is what we want. So if we can figure out how to add a client side map to an ObjectImage control we would get the desired results.
    An alternative might be to use a server side map with the ObjectImage control. But our question here is how to implement the existing client side image map in a backing bean. As the following map code shows, not all image map areas are rectangles - some are polygons.
    <area id="_state_05" href="#"
    shape="rect"
    coords="681,38,702,50"
    target="_self" value="VT" alt="Vermont"
    onclick="javascript:getDtl(this);"/>
    <area id="_state_06" href="#"
    shape="poly"
    coords="221,442,209,436,209,418,191,403,155,382,116,367,101,370,98,364,
    122,355,158,367,203,388,212,394,242,427"
    target="_self" value="HI" alt="Hawaii"
    onclick="javascript:getDtl(this);"/>

    Hi,
    Any news about that issue, we are also interested in any solution.
    Thanks
    Math

  • How to implement exist some x, all x these higher order logic in F#?

    http://www.cl.cam.ac.uk/~mjcg/OGI/Notes/HOL.pdf
    how to implement exist some x, all x these higher order logic in F#?
    where can find the example of open source code have these implementation?
    computing nightmare

    i do not know the whole code.
    i just imagine all x  is just a full one in logic table
    i guess that there are two cases
    for example,
    case 1
    Or(All x, B) 
    1 0 -> 1
    1 1  -> 1
    1 0 -> 1
    1 1 -> 1
    case 2
    All x such that B and C
    v x And(B, C)
    And(Or(v x , B), Or(v x, C))
    1 0      
    1 1
    1 0
    1 1
    becomes
    1
    1
    1
    1
    but all these just my guess, i still do not know how all x works in logic table
    is there open source example code in github show all x and exist some?
    exist some in logic table
    0   or    1  or  1  or 1 
    1          0       1      1
    1          1       0      1
    1           1      1       0
    computing nightmare

  • How to implement Dynamic Context Node Mapping between Components

    Hey genuis:
               I am looking for how to implement context mapping bwteen two components. I read some threads, and try to use external context mapping. The example works fine. However, my requirement is more than that.
    I have a context node in Component B, and the attributes in it are dynamically generated. Component A is the main component which use Component B's function. Both A and B work fine by theirselves. 
    When I assemble A and B (external mapping), the system gives me a exception:com.sap.tc.webdynpro.progmodel.context.ContextException: MappedNodeInfo(T8UploadCompInterface.data): cannot create nodes, no mapping defined yet.
    Please give me some suggestion?
    Any responses are appreciated.

    I miss this thread.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44
    This is almost the right solution for my problem.

Maybe you are looking for