Sorting ODS records before posting to other ODS

Gurus, we have a strange issue where we have one ODS (lets call it DELV) that feeds another ODS (TOTSALS).  We have records in the DELV ODS like this:
K-DelDoc   K-Item    Mat    SchdLn   GMSt   Qty
10000      900001    MATX   1        C      10
10000      900002    MATX   1        C      15
10000      900003    MATX   1        A      0
10000      900004    MATX   2        A      0
In our TOTSALS ODS we get:
K-DelDoc   K-SchdLn    GMSt    Qty
10000      1           A       25
10000      2           A       0
Note: K- denotes key field
The problem is for SchdLn 1, we want the GMSt=C (not A).  We cannot filter to omit 'A' records from posting to the TOTSALS ODS, otherwise we would lose visibility to SchdLn 2.
My question, can we sort the records in the update rules of DELV to TOTSALS?  Or can we change the update rule for mapping GMSt so that in this scenario, we get the value of C?
I would appreciate the feedback and will award points.

Why dont we try this way... (assuming that you have only two values for GMSt)
Follow the same procedure  as mentioned above (creating two ODS's ODS1 and ODS2, loading one value of GMSt (lets say A) into ODS1 and the other value into ODS2 (GMSt = C). Now from these two ODS's load into your target ODS which is TOTSALS. When loading into TOTSALS ODS, set the keyfigures to addition mode in the update rules.
This gives you the flexibility to decide the order of loading. For example if you want the value of GMSt = A to be overwritten by value of C, then load TOTSALS from ODS1 first and then ODS2.
Hope this helps.
FYI, if you want to achieve this with just one ODS (TOTSALS) instead of three ODS's...it is possible to do so but is a little more complex (two cases in start routine).
Good luck!

Similar Messages

  • Other MSI Products - before posting, please read

    Hi there!
    This forum is where you can find help for all the other little devices that MSI produces that don't have a home elsewhere in this forum.
    These devices include MegaPlayer, MegaStick and MegaView MP3 / Portable Media Players, and MSI's communication devices, such as Bluetooth dongles and Wireless LAN routers & cards as well as StarCam, MegaCache, PocketDTV etc.
    Before posting your question, read the Forum Rules, and use the button to see if your question has been answered already. But please don't hijack old dead threads, start your own new topic, giving as much information as you can, as well as what you have tried already. Posting to a two year old thread saying "i have same problem, did you ever fix it??" won't help at all. Read any stickies that have been posted here already, they may contain valuable information to solve your problem.
    Have you read the manual? The manual supplied with your product is usually just a multi-language Quick Guide. Look on MSI's Product Support Pages (http://global.msi.com.tw/index.php?func=prodindex). You can find updated complete manuals, which will usually contain more information than the one supplied in the box. You would be surprised how many questions posted here can be answered just by looking in the manual! You can also find the latest drivers and firmware there, as well as popular FAQs.
    If your problem is related to using your device with your PC, then please post full system specs, in case your problem is actually caused by your PC.
    There's a good possibility that as this is a user-to-user forum, and no-one from MSI visits here, there are no answers yet, or nobody is able to help you yet. In that case, your best option is to contact MSI Support themselves, and see if they can help you with your problem.
    Find MSI Support links here: https://forum-en.msi.com/index.php?topic=107326.0
    Please note, that when contacting MSI Support, you should describe the problem as clearly as you would here, and give as much background information as you can. If you write to them "my MegaStick doesn't work, what can i do", then don't complain if you get a stock generic reply back from them .
    Please, if you get an answer from MSI that solves your problem, or helps you to fix the problem yourself, join the helper's club here and post your solution, so that others can benefit from your wisdom!
    Thank you, and good luck!

    sorry, think i must have slipped on something

  • Report to check Taxes before posting invoice to accounting..

    Hi All,
    Could you please help me if there are any report  to see the taxes before  the invoices are posting to accounting?
    If we dont have it in invoice level then its ok if we can check the taxes at  sales order level.
    In sales order i undestand we can  check in VBAK-Doc Condition field pull the sales order to KONV to enter the Doc condition # that  shows all the condition types and values.
    However, this does not show the sales order number and it wont be helpful at user level.
    Hope there should be some standard report for this function and seeking help here.
    Thanks in advance
    Best Regards,
    Ram

    Hi Ram
    Instead of letting users report on taxes, rather tighten up on controls within SAP:
    1. Make tax condition types mandatory in the pricing procedure(s)
    2. Configure the tax condition types such that only automatically determined values are allowed
    3. Ensure that you have tax condition records to deal with all eventualities (including zero value condition records).
    HTH
    James

  • Before POST & COMMIT

    hi all,
    I have a problem hope it get solved here.
    I want to check whether any user is entering duplicate records before it is commited or posted to the database .
    like suppose if a user has inserted some records in the detailed block like say patr#, Partdescription ...
    001 , XYZ..
    002 ,abc..
    004,POL...
    NOW Suppose if he tries to enter 001 again then a messaged should be displayed that u have already entered the record and should not be duplicated .
    it should be noted that I havent posted the records or commited the form.
    Similarly like suppose i have a form where in i can enter records like suppose 100 records i have entered without saving just going to next record by arrowkey . now here also i need to prevent duplicate entry without posting and commiting
    how can i do
    can any one help me

    See this thread:
    <p>    Re: Duplicate item value in a Multi-Record Block

  • Need Sorter java  file   for sorting the records in webdynpro java

    Hi  Gurus
       I  had urgent requirement please give your inputs
       In my webdynpro java i need to sort entire records in table
       I now we need One sorter java class please provide that java file
       please suggest the all the steps how  to do
    Thanks
    renu.

    1. Implement class comparator wich will compare records according your sort preferencies,
    like this:
         public class record_Comparator implements Comparator{
              public int compare(Object emp1, Object emp2){
          // here is your code for return -1if 'before'  or 0 if equal or 1if 'after'
                   int stepId_1 = ((record)emp1).get_someValue();       
                   int stepId_2 = ((record)emp2).get_someValue();
                   if(stepId_1 > stepId_2)
                        return 1;
                   else if(stepId_1 < stepId_2)
                        return -1;
                   else
                        return 0;   
    than call method sort() with your collection of records,
    like this:
    Collections.sort(record_collection, new record_Comparator());

  • Message before posting new thread

    How about displaying a message before posting new threads in abap devlopment forums which tells the members to use search button before posting new threads.
    I think this may improve the quality of forums to an extent.
    Plz give ur comment on this.

    I think most people who answer simple questions do so because they are genuinely trying to help and are perhaps not familiar with the type of user IDs who ask such questions.
    But they should heed the warnings (in most cases they realize this themselves before a warning is required). I also know a numer of people who stop visiting SDN when they realize this, and that is a big pity.
    Users who carry on and on and on without heeding the warnings are deleted as well. This has happened already and there are two more in the pipeline. But Guestification is a last resort and not a perfect one either. It is only really effective when points are the reason for the misuse.
    I am sure that without a points system in its current form we would have less noise, but we would only eliminate the childish points gamers.
    What I think we need to work on is further improving the reputation of the SDN forums for quality content.
    Eg. when someone posts something which is incorrect or questionable, then question it (politely as possible / appropriate).
    That way people who answer will realize that their accounts have a track record for questionable quality, and will think twice before posting some bla-bla-bla or not reading the question carefully => if the question is "What is reports and tables" then when thinking twice, they wont answer at all....
    Cheers,
    Julius
    PS: I will start drafting a sticky thread for FAQs and memorable discussions, and then we can make a team effort of contributing to it and the mods can update it as appropriate.
    Edited by: Julius Bussche on Sep 27, 2008 10:20 PM

  • Sort all records except one

    I have a mysql table with three attributes.
    att1 | att2 | att3
    1 | 0.1 | 0.2
    2 | 0.4 | 0.3
    3 | 0.2 | 0.1
    4 | 0.3 | 0.5
    Now through my program, I select one record according to attribute 2. Suppose in this case I select the value 0.2(from att2) and get the index. Now what I want to do is: sort descending(here is want to exclude index 3 since it has already been identified by the first part of the program) according to the rest values in att3. I want the corresponding index of of these values too.
    Can anyone help plz.... I have tried to make the problem clear...In case of doubt please ask me..
    Thanks in advance
    Rakesh

    hai,
    be too specific. dont think that ur ques has to be short. type more about ur question and make us clear to clear ur doubt. please type how the record will be before ur program get executed and how the answer has to be after ur program has to be executed. that is show them as u showed the records before.
    by
    bvrk.

  • Want to sort the records based on non-base table item

    I have a multi-record block and I am trying to sort the data based on nbt item
    I have a table called X which has x_type,x_code fields.
    The table on which the block is created is Y. the table Y has x_type and y_desc as its fields
    form layout is like below .the x_type is key field on which I have to query the records
    and x_code is a non-base item in the form.I want to sort the records by X_code.
    x_code y_desc
    A     xyz
    c par
    B     lmn
    my pre-query has this code
    select x_type from y
    where
    x_type := x_type;
    post-query has this code
    select x_code from x
    where x_type = :x_type;     
    It works fine in Enter-Queryand execute query mode. but when I am sorting the records on
    nbt item x_code by SET-BLOCK-PROPERTY it doesn't do any thing

    Hi Tony ,
    I have created a function and in Pre-Query & have add this
    SET_BLOCK_PROPERTY('b1', ORDER_BY, 'fn_get_code(x_type)');
    and the function created is as below
    Function fn_get_code (p_x_type in varchar2) return varchar2 is
    v_code varchar2(40);
    begin
    select x_code into v_code
    from X, Y
    where X.x_type = Y.x_type
    and y.x_type = p_x_type
    return v_code;
    end;
    when I run the form and execute query it comes up with the error message
    FRM-40505 and when I pressed display error it shows
    SQL Statement error:
    SELECT ROWID,X_TYPE,X_CODE
    FROM Y order by fn_get_code(x_type)
    Error:
    "ORA-00904: "FN_GET_code": invalid identifier"
    Is it that I need to create a function on the database?. As I have created function
    in program unit section

  • Duplication of record when posting (post)  in Form6i

    Duplication of record when posting
    I have three tables as follows
    Master Table 1
    PurchaseOrder
         TNo                         Number,
         PurchaseOrderNo      Varchar2(100),
         PurchaseOrderDate      Date,
         PartyCode                Varchar2(30)
    Detail Table 2
    PurchaseOrderDetail
         TNo                         Number,
         SNo                         Number,
         SerialNo               Number,
         ItemCode               Varchar2(30),
         Quantity1               Number
    Detail of Detail Table 3
    PurchaseOrderDetailFooter
         TNo                         Number,
         SNo                         Number,
         FooterHeadCode          Varchar2(30)
         footerValue               Number
    Relation
         1. PurchaseOrder.TNo = PurchaseOrderDetail.TNo
         2. PurchaseOrderDetail.TNo = PurchaseOrderDetailFooter.TNo
              and
              PurchaseOrderDetail.SNo = PurchaseOrderDetailFooter.SNo
    In Form6i     
         post required to move record to next record in PurchaseOrderDetail Block
    But some time when post is executed, PurchaseOrderDetail record duplicated
    I am unable to find the reason
    Message was edited by:
    HARISH

    Do you have call to any procedure which does some DML.
    Try to figure out whther it is trying to insert into same table before you post???
    As I dont see your form, this is what I can think visually, or your Block might have a duplicate entry populated?????
    You need to investigate as this is specific to your application.
    Thanks and Regards,

  • Enhancement for MB01 - Need to check the document before post

    Hi All,
    I need to check a material document before posting in MB01 for a field "GR/GI Slip No" which we are using to enter "gate entry no".The issue now is as i'm using a table control screen to post GRs in bulk . i want to avoid duplicate GRs of a particular gate entry.during analysis i found that an exit/Badi at MB01 - end  may serve my purpose well.
    thanks and regards,
    sachin soni

    Hi,
    You may try the EXIT:
    MBCF0005  Material document item for goods receipt/issue slip
    or BADIs:
    MB_BAPI_GOODSMVT_CREATE
    MB_BATCH_MASTER
    MB_DOCUMENT_BADI
    Regards,
    Renjith Michael.

  • Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!!

    Welcome to the SDN ABAP Development Forums!
    Please see the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting to avoid potential problems (e.g. your posts are deleted).
    The [ABAP Development Forums|https://forums.sdn.sap.com/category.jspa?categoryID=42] have dedicated forums for the following ABAP related areas:
    => General questions about the ABAP language and language implementations. If in doubt, use this forum and do not cross-post.
    => Tables, views, structures, data elements, domains, search helps and types in the underlying relational database.
    => SAPscript and Smartforms form generation, editing and printing and the corresponding programs.
    => Classical Dynpro, Screen Painter and Controls Framework (ALV grid, Table Controls).
    => Enhancing ABAP code through techniques as CMOD, SMOD and the newer BADIs, Switch and Enhancement Frameworks.
    => Code quality, ABAP Unit, Testing, Debugging, efficient code techniques and database reads, SQL trace tools and Runtime Analysis.
    => Data Transfer Techniques, Batch Data Communication, Legacy System Migration Workbench, Application Link Enabling, IDOCs, BAPIs.
    => ABAP Object definition and implementation including encapsulation, interfaces and inheritance in ABAP Objects.
    Please...
    - Use the correct or most appropriate forum,
    - Do not cross-post or multiple-post, and
    - Search for information before asking basic questions, again.
    Using these categories will enhance performance in the forums and improve the chances that your questions are answered quickly and more accurately!
    Other relevant blogs and rule related infos are:
    - Michael Schwandt's blog about [Moving to strict rules to improve quality and control|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/10047].
    - Michael Schwandt's blog about [Quality: Invitation To Clean Up Your Forum Threads|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11978].
    - Please follow-up on your threads and assign points correctly, as this also contributes to the [UN Food Program|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7898].
    Enjoy the forums and happy posting!!

    Start of related discussions about the above rules. Feel free to discuss the rules here...
    Dear Jan
    Sometime i found very difficuties and time taking process in putting questions in forum bcos i have to elaborate the whole pictorial process in words.
    Why Cant we make our this forum more Interactive in way of asking questions by allowing us to attach print preview of what we face in the system.
    If you kindly give a glance on this issue and try to implement it for us, forum members like us will be benefited and it will be beneficial for those who are all into in this forum.
    Thanks & Regards
    Saifur Rahaman

  • Read Before Posting - Where to find Business Objects Java SDK Resources

    Before posting you should look through the various resources below for the answers to your questions. A lot of the "how to" or "where can I find" questions are already answered in the material below.
    Search the Forums
    Use the search feature in these forums to see if your question has already been answered.
    SDK Libraries
    [BI 4.0|http://www.sdn.sap.com/irj/boc/sdklibrary]
    [BusinessObjects Enterprise XI 3.0|http://www.sdn.sap.com/irj/boc/sdklibrary?rid=/webcontent/uuid/90db428d-71ba-2e10-7eb7-d3286eec5ac0]
    [BusinessObjects Enterprise XI Release 2|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm]
    [BusinessObjects Enterprise XI Release 1|http://devlibrary.businessobjects.com/BusinessObjectsXI/en/devlib.htm]
    Crystal Enterprise 10, Not available online.
    [Online Viewable JavaDocs|http://help.sap.com/javadocs/index.htm#sapbobj]
    SAP Notes
    (Formerly known as the Business Objects Knowledge Base)
    This is a good location to find known issues, look up error messages, and general tips and tricks with the BusinessObjects Enterprise product line.
    [https://service.sap.com/notes] (this requires logon to the SAP Service Marketplace).
    Crystal Reports Server, Crystal Reports and Xcelsius SAP Notes are accessible here:
    [https://www.sdn.sap.com/irj/sdn/businessobjects-notes]
    Sample Code Search
    [BusinessObjects Enterprise SDK|https://wiki.sdn.sap.com/wiki/x/HQBmBQ]
    [RAS SDK|https://wiki.sdn.sap.com/wiki/x/HgBmBQ]
    [Web Services SDK|https://wiki.sdn.sap.com/wiki/x/HwBmBQ]
    [Report Engine SDK|https://wiki.sdn.sap.com/wiki/x/IABmBQ]
    [Crystal Reports Java SDK|https://wiki.sdn.sap.com/wiki/x/JgBmBQ]
    [Java Reporting Component SDK|https://wiki.sdn.sap.com/wiki/x/JwBmBQ]
    Business Objects Downloads
    - Service Packs and Fix Packs
    - Merge Modules and Installation Packages
    - Sample Reports and Databases
    [http://service.sap.com/bosap-downloads] (requires logon to SAP Service Marketplace).
    Crystal Report For Eclipse
    [WIKI|https://www.sdn.sap.com/irj/boc/crystalreports-java]
    [Product Portal|https://www.sdn.sap.com/irj/boc/crystalreports-java]
    Crystal Reports Server, Crystal Reports, and Xcelsius Downloads
    [https://www.sdn.sap.com/irj/sdn/businessobjects-downloads]
    Business Objects Articles
    [https://www.sdn.sap.com/irj/sdn/businessobjects-articles]
    Edited by: Aasavari Bhave on Oct 25, 2011 8:49 AM

    Thanks. That was useful.
    -Rajini

  • TS3451 Can't record keeps posting "DISK TO SLOW"

    Trying to record vocals in garage band, and Can't be as soon as I hit the record button posting appears saying DISK TOO SLOW.
    and then ask me to continue and there no recording.

    Try this. Find your hard disk. Highlight it and the do a Get Info (command-I). Look at the bottom of the resulting window. Find Ownership and Permissions. Look at the details. Unlock the lock if needed. Set it to System and do it for all enclosed items. See if that helps.
    A shot in the dark...but an educated guess (since permission related error message).

  • Log for changes done before posting LIV in Tcode MIRO

    Hi
    By default data will be fetched from PO/GR for LIV however our users are changing few details such as payment terms, tax code, vendor code, vendor invoice amount etc., before posting LIV in tcode MIRO. We don't have any log for these changes done by our users.
    We want to know what are fields which have been changed by our users at the time of doing LIV (i.e. before posting LIV).
    Can any one help us in this regard.
    Regards
    P Karthikeyan

    If you know those fields, you can find the differences for those field in table EKKO and EKPO for PO, the similar value will be available for IR in table RBKP and RSEG.
    Like as payment term, The payment term is saved in table RBKP - ZTERM for MIRO.
    The same will be available in table EKKO - ZTERM for PO.
    If the value for both fields are same, then user has not changed the field at the time of MIRO.
    If the value mismatched, then user has changes the value in MIRO.
    In this way, you can find the differences for other fields.

  • FI Report showing Discount amount before posting a Document

    We are paying Vendor's invoices.  While creating document, we enter Discount base amount and payment terms. Discount amount appears only after document is posted.  Is there any way I can print/display discount amount before posting the document?
    Thank you

    Ashok, it's F-43 to create a Vendor Invoice.   After creating, when you display the document through FB03, on screen 302, you will find Disc Base, payment term.  The Disc Amount would be blank, as it is not yet posted.
    Thanks

Maybe you are looking for