Sorting View output on date - Generic extraction !!!

Hi All,
I created a generic data source based on the view, But my problem is like, for the same slection conditions ( same material in the same site) i may get two records, in that case i need to pick latest record based on the created date.
My approach was like I passed the data from generic data source to DSO and enabled overwrite functionality keeping material and site as key fields, thinking like latest record will overwrite old record, but interestingly old record is replacing the latest record,
i saw in PSA , the record number for latest record is 555. but record number for old record is 1000.
So my question is like, what determing the sequence of records that enter into BW system? Is it View? or the sequence of fields that i defined in the view? or any settings that i ignored at the time of defining view? How can i change the sequence of records entering into BI system, i want to change in sucha a way like record number of latest record should greater than the record number of old record.
Thanks,

before you assign the final values to FM output, sort the internal table by created date descending and delete adjacent duplicates. So you will have only latest record in output .
You can also do this in start routine of transforamtion from PSA to DSO

Similar Messages

  • Report painter -output parameters,Data source,Extract parameter, report

    Hi expert,
    1)What report painter -output parameters,Data source,Extract parameter, report mean for and what are the difference?
    2)I have create new report painter and transport to  Test server using T-code:GCTR and I find that the T-code always point to old report. As I had check the SE93 the D_SREPOVARI-REPORT is point to report group.Why this happen?
    3) Does creation of new report or modification of the report always need to select the extraction option so that it will able to display the relected changes? Because, I have done modification on the report but it is not reflected the changes even i save until i have to create the extraction is able to display the report but every time i run the report need to select the extraction with option to choose new extract or old. Kindly advice how to save and create the report painter and save will display reflected result .
    Please help

    Hi BR Christian,
    Thank you for the prompt reply.
    I have few querys as below:
    1)Do we every time create new report by copying the existing report painter need to select output parameter, data source and extract parameter in order to be able to display the new report?
    2)when modify existing report painter and save it do we need to select output parameter, data source and extract parameter in order to be able to display the modify report correctly?
    3) What are the different between right click copy the report inreport painter compare with create report painter with copy GRR1?
    4) What are the T-code for modify the report group?
    5) When I create a new report with the right click copy in GRR1 and modify the report painter column only and everything remain the same just the report name different why when execute the report it always appear in the selection screen with report button which have option button to select the 2 version  of report which one is the destination report that I copy from and one is the new report? How to set the report when execute will only display the new report only without need to select the option with just new report only?
    6)For transferring reports you can use GR37 (export) and GR38 (import) can be use to transport from one client to another client? What is difference between GR37 compare with  GCTR?
    7) If I use GR37 and GR38 it is mean no need to create the transport request which as usual we create transport se10?
    we can directly import to another client ussing GR38?
    8)When we create a new report with copy with the existing report with just modify the report colunm and the report name difference only what are the setting example: report,report group need to be selected to be include to export/transport to another client?
    9) What are the difference between library and report group?
    10) Can we set Se93 to execute only report not report group? How?
    11) when using GR37 to transport it is also include the report group,library and the particular report?
    12) Can I include the variable in the column header to display fiscal year which I have selected from the selection screen?
    How and which variable should i use?
    please help.
    many thanks
    Edited by: KH on Jun 18, 2011 6:52 AM
    Edited by: KH on Jun 18, 2011 6:55 AM
    Edited by: KH on Jun 18, 2011 7:06 AM

  • Any docs regarding Table/View,Function Module for Generic Extraction

    Hello All
    I need to do Generic Extraction,for that if anyone has docs., I need docs on how to create table,view,Function module and infoset query ,on that pl forward to my id
    [email protected]
    Many Thanks
    balaji

    hi Amit
    Thanks for your docs,but this docs i have already,do u have any thing different one,if so please forward?
    Facing a Problem
    Iam trying to create view(database view)for <b>vbak</b> and <b>vbap</b> and given in Tables in <b>Table/Join Conditions</b> tab and clicked in <b>Relationship</b> and the relantionship has been generated automatically,now when i tried to activate this view its saying like "<b>No tables and/or fields are defined for view xxxxx</b>(xxxx-> name of a view)
    what will be the problem?pl let me know how to create a view?
    And also I need to know the diffference between database view,Manintenance view,Projection view and help view?
    Pl let me know on this?
    Many Thanks
    balaji

  • Master Data-Generic Delta

    hello guys
    I have some doubts when it comes Generic Extraction of Master Data from a source system(say SAP R3) with possible deltas...
    1.I heard from my friend,that while working with Master Data Generic Extraction (involving deltas),we generally do FULL LOADS....itsnot a common practise to do initialisation and then delta update as in the case of Transaction Data...Is that true?
    I know that it varies from case to case,but generally speaking,how often do we do these FULL LOADS?
    2.Suppose,if I say,I will go the unusual way and choose to do Master Data Deltas exactly like we do with Transaction Data deltas(first initialisation with data transfer then delta updates now and then)....how do we choose if its time stamp or numeric pointer incase of Master Data fields....
    suppose,I want to set characteristic 'Location' as delta-field,what do I choose out of numeric pointer,calendar day and time stamp?and why should I choose it?
    how about incase of Characteristic 'Customer Phone number'?
    Thanks fr ur time
    S

    Hi ,
    In generic delta you can choose only one field as delta option ie whatever changes happens for a record thar field shold get updated only then you will get delta for those records.
    Choosing numeric pointer for text fields like location wont help for you. May be phone number you can try as numeric pointer if it is purely a number series which uses new numbers always.
    If you are choosing these fields whenever there in chamge in this fields you will get delta. No other change in the same record will be captured
    Thanks,
    Arun

  • When we go for Views and Function Modules for Generic Extraction

    Hi Experts,
    Can you please explain when we go for extracting the data using Views and when we got using Function Modules using Generic Extraction from R/3 system to BW with examples. And also can you explain when we go for delta for the above both scenarios.
    Thanks for you help in advance
    Rohith

    Hi,
    Scenario for Extarction using FM
    Imagine the scenario where you need to extract data from
    tables having no common field between them and thereby preventing you from creating a view on top of those tables..
    Or simply consider tables that are highly unrelatd in terms of fields, but you have a requiremnt to extract data from them.
    Also Refer.
    create generic extractor based on 2 tables
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Steps.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    http://help.sap.com/saphelp_nw04/helpdata/en/86/1c8c3e94243446e10000000a114084/frameset.htm
    Scenario for Extraction using View
    If there are more number of tables and data in those tables can be represented using joins then we can use this type of extraction
    For more info Refer these links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    For GEneric Delta refer these links
    [generic with delta;
    [https://forums.sdn.sap.com/click.jspa?searchID=11388803&messageID=5164737]

  • How to extract data by using function module in generic extraction please

    how to extract data by using function module in generic extraction please  give me steps  required

    Dear Deba,
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    If the requirement is like extracting data from multiple tables with some complex logic then views cannot be used..so u cna go for FM is used where it can be achieved.
    Chk these
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    check the following thread
    generic extraction with function module
    Generic Extraction with function module
    Regards,
    Ram.

  • When to go for generic extraction using view and infoset query?

    Hi,
                        Can anyone clarify me when we should go for generic extraction using view and when we should go for generic extraction using infoset query....
    Also what is the difference between view and infoset?
    I tried but could not find out....
    Regards,
    Kalyani.

    Hi Kalyani,
    We normally go for View or infoset when the data to be fetched in BW is distributed in different tables in SAP R/3.
    Had the data been available in one table we can easily build our datasource on that table but if there are more tables then its not possible to do it without Views or Infosets. You can use Function Modules to build your datasource in case it involves complex logic to figure out the data from various tables.
    Depending upon the table relationships we create view and include various fields from these tables in that view. Same is with the Infosets, you can have more flexible options like Outer Join, left outer Join etc.
    Regards,
    Pratap Sone

  • Generic extraction using function module and view

    hi every one ,
    iam new to bw and can anyone plz tell me how to extract the data from R/3 to bw using generic extractor by creating function module and a view
    thank u,
    kishore

    Hi Kishore,
    Check this blog:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Also Check this doc:
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm
    Generic Extractors
    Generic data sources
    Generic DS
    Bye
    Dinesh

  • Give me details about differrent views in generic extraction give details

    give me details about differrent views in generic extraction give details  such as  database view, projection view, help view, etc please give detail

    Dear Deba,
    Projection view - Just retrieves some fields from a single table.
    Help View - This is used for search help.
    Database View - This is inner join view of one or more tables
    Maintenance View - Helps in creating maintaining data of the application object. The data can be distributed among several tables
    Data Base View:
    A database view is defined in the ABAP Dictionary and automatically created on the database during
    activation. Accesses to a database view are passed directly to the database from the database interface.
    The database software performs the data selection.
    If the definition of a database view is changed in the ABAP Dictionary, the view created on the database
    must be adjusted to this change. Since a view does not contain any data, this adjustment is made by
    deleting the old view definition and creating the view again in the ABAP Dictionary with its new definition.
    The maintenance status defines whether you can only read with the view or whether you can also write
    with it. If a database view was defined with more than one table, this view must be read only.
    The data read with a database view can be buffered. View data is buffered analogously to tables. The
    technical settings of a database view control whether the view data may be buffered and how this should
    be done. The same settings (buffering types) can be used here as for table buffering. The buffered view
    data is invalidated when the data in one of the base tables of the view changes.
    Maintainance View:
    Data that is distributed on more than one table often forms a logical unit, called an application object.
    You should be able to display, change and create the data of such an application object together. Users
    usually are not interested in the technical implementation of the application object, such as the distribution of the data on several tables.
    You can maintain complex application objects in a simple way using a maintenance view. The data is
    automatically distributed on the underlying database tables.
    All the tables used in a maintenance view must be linked with a foreign key. This means that the join
    conditions are always derived from the foreign key in the maintenance view. You cannot enter the join
    conditions directly as in a database view.
    A maintenance interface with which the data of the view can be displayed, changed and created must be
    generated from the definition of a maintenance view in the ABAP Dictionary.
    When the maintenance interface is created, function modules that distribute the data maintained with the
    view on the underlying tables are automatically generated.
    The maintenance interface is generated with the Transaction Generate Table View (Transaction SE54)
    or from the view maintenance screen with Environment -> Tab.maint.generator.
    Database views implement an inner join. You only get those records which have an entry in all the tables
    included in the view.
    Maintenance views implement an outer join.
    Help View:
    A help view is defined analogously to a maintenance view. Help views can only be used as selection
    methods in search helps. Since the R/3 System cannot pass the selection directly to the database using
    a help view, it must generate its own access routines. The database view should therefore be used as
    selection method in preference to the help view.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Regards,
    Ram.

  • What is the disadvantage with views in generic extraction?

    hi
    what is the disadvantage with views in generic extraction?
    thanks in advance,
    srinivas.

    Hi ,
    <i>What is disadvantage of generic extraction ? </i>
    If i am asking this what you will say ......You have only less points to say if any one ask you like this .
    Similarly Generic extraction based on view has many advantegs It was given to extrct data when standard business content data source is not available .
    But we know Views can be created when the table you need to extract data has Primary Foreign key relation .So if you need to extarct data from many tables with no relation between them then you cannot use view .
    But if you need to extract data from tables that have complex relation ,Then you need to go for Function Module extration and write some ABAP code and using SQL ststements you fetch data from tables based on thier key fields and finally get the desired data by your coding logic .

  • Generic extraction (table,view,functionmodule)

    hi
    In generic Extaction when we use table and view and function module and sap qu (scenario)
    AND
    plz send some examples
    Please search the forums before posting

    Hi,
    when Standard Extractors are not supporting to your requirement then we go with Generic Extraction.
    Here we have Three different types to design generic extractors
    Table
    View
    Function Module
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    https://websmp103.sap-ag.de/~sapidb/011000358700007535452002
    Hope this will help you.
    Thanks
    Prasad

  • Generic extraction

    Hi,
    in generic extraction in which scenarios you extract data from  table,view,infoset query,FM
    sridhar

    Transparent Table
    If you're wishing to create a generic DataSource based on a single Transparent Table in the source R3/ECC system, then using that table as the source for your generic DataSource would be appropriate because it will expose all of the columns in that table to your generic extraction structure. There is one exception to this and that is, if you have more than one date field (e.g. Created On and Changed On dates) that you're going to use for generic delta. Pool/Cluster tables and structures wouldn't be allowable for this type of generic DataSource setup.
    View on Transparent Tables
    If your requirement is to create a generic DataSource based on multiple Transparent Tables in your source R3/ECC system, then a view would be appropriate. You can either use SAP delivered views in the source R3/ECC environment or create a custom view. The same exceptions (generic delta on more than one date field, pool/cluster tables and structures).
    Function Module
    A custom Function Module can be coded for the extraction of data for a generic DataSource. This type would be appropiate if you're extracting data from pool/cluster tables or structures. Another use for a Function Module as the source for a generic DataSource would be if you're going to use more than one data field for a generic delta. Finally, a Function Module would be used if there is some transformational-type logic required to be done on the extracted data before it is passed to BW.
    InfoSet Query
    An InfoSet (not to be confused with an InfoSet in BW) query in a source R3/ECC environment, is created in tocde SQ01, and is a way of creating "quick-and-dirty" reports with summarized values, derived values, et. al. This can be used as the basis for a DataSource, if the queries are already built. If not, then a Function Module can perform and necessary aggregations, derivations or other transformational-type logic, instead of creating a query. I say this because I'd highly discourage using this as a source for a generic DataSource because InfoSet queries are usually extremely inefficient and can consume a lot of the valuable system resources.

  • Generic Extraction (or) How to use table in R/3 system as datasource in BW?

    Hi all,
    Hope all are having a great day
    Can any1 tell me the steps, for Generic Extraction.
    It will be very helpful, if the steps are as much as simpler as posible.
    I know to create a simple cube in BW.
    I have this much knowledge, depending on this can any1 tell me the steps for Generic Extraction from R/3.
    examples wud be vry useful
    Regards,
    Sourav

    hi,
    Maintaining Generic DataSources 
    Use
    Independently of application, you can create and maintain generic DataSources for transaction data, master data attributes or texts from any kinds of transparent tables, database views, InfoSets of the SAP query or using a function module. As a result, you can make use of the generic extraction of data.
    Procedure
    Creating a Generic DataSource(RSO2)
           1.      Select the DataSource type and give it a technical name.
           2.      Choose Create.
    The creating a generic DataSource screen appears.
           3.      Choose an application component to which the DataSource is to be assigned.
           4.      Enter the descriptive texts. You can choose any text.
           5.      Choose from which datasets the generic DataSource is to be filled.
                                a.      Choose Extraction from View, if you want to extract data from a transparent table or a database view. Enter the name of the table or the database view.
    After generation, you get a DataSource whose extract structure is congruent with the database view or the transparent table view.
    For more information about creating and maintaining database views and tables, see the ABAP Dictionary Documentation.
                                b.      Choose Extraction from Query, if you want to use a SAP query InfoSet as the data source. Select the required InfoSet from the InfoSet catalog.
    Notes on Extraction Using SAP Query
    After generation, you now have a DataSource whose extract structure matches the InfoSet.
    For more information about maintaining the InfoSet, see the System Administration documentation.
                                c.      Choose Extraction using FM, if you want to extract data using a function module. Enter the function module and extract structure.
    The data must be transferred by the function module in an interface table E_T_DATA.
    Interface Description and Extraction Process Flow
    For information about the function library, see the ABAP Workbench: Tools documentation.
                                d.      With texts, you also have the option of extraction from domain fixed values.
           6.      Maintain the settings for delta transfer where appropriate.
           7.      Choose Save.
    When extracting, look at SAP Query: Assigning to a User Group.
    Note when extracting from a transparent table or view:
    If the extract structure contains a key figure field, that references to a unit of measure or currency unit field, this unit field must appear in the same extract structure as the key figure field.
    A screen appears in which you can edit the fields of the extract structure.
           8.      Editing the DataSource:
    &#61601;        Selection
    When scheduling a data  request in the BW Scheduler, you can enter the selection criteria for the data transfer. For example, you may want to determine that data requests are only to apply to data from the previous month.
    If you set the Selection indicator for a field within the extract structure, the data for this field is transferred in correspondence with the selection criteria in the scheduler.
    &#61601;        Hide field
    You should set this indicator to exclude an extract structure field from the data transfer. As a result of your action, the field is no longer made available in BW when setting the transfer rules and generating the transfer structure.
    &#61601;        Inversion
    Reverse postings are possible for customer-defined key figures. For this reason, inversion is only possible for certain transaction data DataSources. These include DataSources that have a field that is indicated as an inversion field, for example, the field update mode in the DataSource 0FI_AP_3. If this field has a value, then the data records are interpreted as reverse records in BW.
    Set the Inversion indicator if you want to carry out a reverse posting for a customer-defined field (key figure). The value of the key figure is then transferred in inverted form (multiplied by –1) into BW.
    &#61601;        Field only known in exit
    You can enhance data by extending the extract structure for a DataSource using fields in append structures.
    The indicator Field only known in Exit is set for fields of an append structure. In other words, by default these fields are not passed onto the extractor from the field list and selection table.
    Deselect the indicator Field Only Known in Exit to enable the Service API to pass on the append structure field to the extractor together with the fields of the delivered extract structures in the field list as well as in the selection table.
    9. Choose DataSource ® Generate.
    The DataSource is now saved in the source system.
    Maintaining Generic DataSources
    •        Change the DataSource
    To change a generic DataSource, in the initial screen of DataSource maintenance, enter the name of the DataSource and choose Change.
    You can change the assignment of a DataSource to an application component as well as the texts of a DataSource. Double-clicking on the name of the table, view, InfoSet or extract structure takes you to the appropriate maintenance screen. Here you can make changes required to add new fields. You can fully swap transparent tables and database views, but not InfoSets. If you return to the DataSource maintenance and choose Create, the screen for editing a DataSource appears. To save the DataSource in the SAP source system, choose DataSource  ® Generate.
    If you want to test extraction in the source system independently of a BW system, choose DataSource  ®  Test Extraction.
    •        Delta DataSource
    In the Change Generic DataSource screen, you can delete any DataSources that are no longer relevant. If you are extracting data from an InfoSet, delete the associated query. If you want to delete a DataSource, this must not be connected to a BW system.
    For more information about extracting using SAP Query, see Extraction using the SAP Query.
    hope this helps.
    assign point if so
    partha

  • Generic Extraction Delta Loads

    Hi Experts,
    I am facing problem is I want to extract the data in Generic Extraction in View, Suppose my requirement is I want to delta loads every 1 hour per day, how can i do, Generic Extraction possible are not delta records.
    Note:- LO Extraction is possible like we have update mode we can scheduled hours in everyday, But Generice Extraction possible are not.
    Please provide me solutions ASAP.
    Thanks in Advance......
    Regards,
    Bharathi.

    There are various delta method
    1.calday.
    2.time stamp.
    3.Numeric pointer.
    For youe requirement Time stamp will work.
    Please check weather you have any field related to time.
    Thanks,
    Saveen kumar

  • Deltas in generic extraction

    how can we set delta updates in generic extraction?can any one help in this

    Hi Praveen,
    Please do check the link for step by step for generic extraction
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    check the following
    http://help.sap.com/bp_biv235/BI_EN/html/bw.htm
    business content
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20co-pa%20extraction%203.0x
    https://websmp203.sap-ag.de/co
    http://help.sap.com/saphelp_nw04/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm
    (navigate with expand left nodes)
    Check these links:
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    <b>For Generic:</b>
    >Go to Tcode : RSO2,
    >There give the name of data source which you want to create like transaction data source or master data attribue or Text data source.
    >enter
    >again in the next screen you need to give application like SD or MM etc
    >in the same screen need to select table/view or infosetquery or function module. these are different ways of creating data sources.
    >Give the name for the same like if u r creating data source on table give the name of table.
    >click on Generic delta which will there in application tool bar and fill the required columns in that screen like type of delta and all
    >continue and save
    >it will give all the fieds
    >enable the check boxes based on your requirement like selection or hide or field only..
    >save
    Hope This Helps.
    Regards,
    Ravikanth

Maybe you are looking for

  • Rsync system backup to disk image

    Hi, I had quite 'small' HD ~60Gb and I backed up on ~1.5 Tb NAS with ext3 file system via DiskUtility - it was creating an exact copy of my hard drive in a .dmg file (and I can mont them, etc). Now I have ~250 Gb HD, and some free space, but also a l

  • Update problems with Premiere Pro and AAM (Adobe Applications Manager)

    I am using Premiere Pro CS6 via a Creative Cloud subscription and am having a problem. AAM (Adobe Application Manager) says that Premiere Pro needs updating to 6.0.1 but if I run Premiere Pro and check it's version, it says it already is 6.0.1 - so h

  • GPS problem - no location

    Hi! I have a problem with GPS on A1.  It doesn't find a location both in Google maps and in NavDroid, just search icon start blinking and can blinking for hours.  Reset didn't help. Clean sky, and sunny weather didn't help neither. Are familiar with

  • Copy to disk utility not working right

    My disk utility not work like it used to, it does not show up a disk when I put it in the drive. And I can't copy to disk anymore. A blank disk shows up as a removeable drive instead of a blank disk on the disk utility...??? I need to fix this so I c

  • In  tcode   ME2o SC Stock monitoring for vendor  for creating delivery

    hi This scenario in AFS for creating , for creating delivery in  tcode   ME2o SC Stock monitoring for vendor,  for creating delivery iam getting error like this Essential transfer parameters are missing in record:  000001., Depending on the category