Generic datasource based on custom table and hierarchy table

Hi Gurus,
I have a doubt regarding generic datasource.
my requirement: to create a datasource with 10 fields. (7 fields from custom table and 3 fields whose values can be derived from a hierarchy table).
I have a custom table. In this table one field refers to a hierarchy table. Using this hierarchy table, we can derive values to 3 new fields.
My question is, If i create a generic datasource based on the custom table, how can i include the extra 3 fields which gets values from the hierarchy table.
Where can i write the logic to extract the values for those 3 fields from the hierarchy table.
Thanks
Regards,
Aarthi
[email protected]

Hi Aarthi,
Sample code in the user exit woul be like this:
DATA:  i_biw_tab LIKE BIW_MARA_S.
WHEN '<data source>'.
    LOOP AT i_t_data INTO i_biw_tab.
      SELECT fields
        INTO <table from which you want the value
        FROM <table>
       WHERE <your condition>.
      IF sy-subrc = 0.
             MODIFY i_t_data FROM i_biw_tab.
      ENDIF.
    ENDLOOP.
Bye
Dinesh

Similar Messages

  • Can we create roles/permission list based on custom table

    I wanted to create Roles and Permission list based on custom table (which holds Business Logic),like if column value is 3 then certain roles and 2 then certain............ is it possible in PS?
    Thanks

    Are you looking at restricting the data that is shown or access to pages? Please elaborate your requirements so that a solution can be provided.

  • Create generic extractor based on 2 tables

    hey BI gurus,
    I have to create a generic extractor based on these 3 tables:
    eban - i need all fields
    vttk - i need only 4 fields i.e
                                         route,
                                         tknum,
                                         datbg,
                                         daten
    ekbe - budat.
    now the problem is thr is no common field between vttk & eban AND vttk & ekbe. but thr is a common field between eban & ekbe.so i can create a view only on these 2 tables but i want 3 tables
    how do i proceed???

    Hi,
    Sometimes, if your application or requirement makes it necessary, you have to create your own function module to extract the data from whatever sap system to bw.
    Therefore you normally make a copy of the standard fm 'RSAX_BIW_GET_DATA_SIMPLE'. To make this new function work for you, you have to realize the following.
    1.) the fm gets called by the extraction api for at least 2 times. First time is for initialization and from the 2nd time on it is for data extraction.
    2.) right after the last data package (somehow you need to make sure that it is the last one) you have to raise the exception no_more_data.
    Refer this links for more Info
    SAP BI Generic Extraction Using a Function Module
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    SAP Network Blog: Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Take the help of an ABAPer if your are new to this process
    Regards
    Karthik
    Assigning points is the way to say thanks

  • CM25: Sort standard table based on custom table.

    Hi Experts,
    I need to sort the CM25 capacity table based on a ZTABLE where we will define the sequence number of each material. So when CM25 is executed the material should get sorted based on sequence number maintained in Ztable. Now the challenge is how to achieve this sorting before we display the capacity table.
    anybody has faced such scenerio please help us.
    There are few user exits available but not able to find out how to achieve the required functionality.
    Regards,
    Raghav
    Edited by: Julius Bussche on Jul 30, 2009 9:29 AM
    In future threads with meaningless subject titles will simply be deleted as you appear to be doing this intentionally

    First, let me say that I have no experience with this CM25 table and where/how it is used or displayed, but here's how I look at it:
    But what is the real problem?
    1. Don't know the user exit / BAdI to be used?
    2. Don't know how to do the sorting?
    3. .....?
    Answer:
    1. This will be a matter of trying I would say and reading the documentation of the exit/BAdI.
    2. You can do dynamic sorting of an internal table (if it is an internal table that is used before displaying it).
    DATA: lv_sort1 TYPE CHAR10 VALUE 'NAME_OF_COLUMN_FROM_ZTABLE',
               lv_sort2 TYPE CHAR10 VALUE 'NAME_OF_OTHER_COLUMN_FROM_ZTABLE'.
    SORT itab BY (lv_sort1) ASCENDING (lv_sort2) DESCENDING.
    Edited by: Micky Oestreich on Jul 30, 2009 7:34 AM

  • Extraction from generic datasource

    Hello,
    We are planning to build a generic datasource on a custom table in ECC. I wanted to know if there will be any issues with the extraction if records are being inserted into the table while the extraction is going on?
    Any help would be appreciated.
    Thanks
    Viraj

    Hi,
    The lower safety interval actually helps not to have the data loss but again it is not 100% full proof method. It's correctness depends on how you set the safety interval.
    Not necessaraly but sometime it may happen that any record is going beyond safety interval and still failing to get extracted in delta.
    You can refer the following thread for more detailed information about time stamps.
    [Safty intervel in generic Extraction;
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Jul 20, 2011 3:02 PM

  • Application Hierarchy in BW and Generic Datasources

    Hi,
    I am not able to see the updated Application Hierarchy in BW. ie with the Datasources I installed from RSA3 in the R3 system. I am successfully using then by loading them but it shows in New_Hier_root and then shows in Nodes_not_connected.
    I had done the following
    - in R3 - rsa5 - activated extractor,
                 rsa6- check extractor,
                 sbiw - transfer application comp hier
    in BW - replicate data sources - assign - install Biz content - use it in loading
    I need to create a Generic Datasource for a Y Table, again I am not able to specify an application component for the same, since it shows the unupdated applicaiton component hierarchy.
    Please help
    Thanks
    Pranab

    Dear Ravindra,
    I am not able to address that issue through that.
    When i go to SM31 and go to table you suggested it
    - Its attributes indicate it is transportable in R3 and in BW
    Kindly help the Issue has not be addressed yet .

  • How to create characteristics in BW based on generic datasource fields

    hi ALL,
       Actually, i created generic datasource based on database view in SAP R/3
    Database view is created based on table LFA1.
    Replicated the the datasource in SAP BW
    Now, I have to create characteristics (master data) based
    on generic datasource fields
    Thanks in Advance.
    Best Regards
    M A Mubeen

    Hi Abdul,
        for that you just create  one  charecterstic  of  Info object (with the  same technical charecterstics of R/3 field).. and  maintain master  data..
    now create one data source in  BW side.. and  select your data source and replicate  data with your generic datasource...
    and load the data..
    regards
    @jay

  • Faglflexa table :Generic datasource

    Hi
    I have to pull the data from the FAGLFLEXA table.     
    im plaaning to create a generic datasource because here we do not have 0fi_gl_14 datasource.
    so how can handle delta from faglflexa table.
    even can i use old standard datasoucre like 0fi_gl_4
    i need to take cost from faglflexa and doctype from bkpf.
    the data to be accumaled at region and profit centre hierarcy.
    Thanks

    Hi you can can create generic extractor based on faglflexa table and use the TIMESTAMP filed from it. Just create view of FM based on your FAGLFLEXA and BKPF of BSIK/BSID table and use TIMESTAMP field.

  • Generic Datasource on table IMRG in R/3- delta on timestamp is it ok ?

    Hi
    I am creating Generic datasource based on table IMRG in R/3, This has stoppages related data. which we need in BI report. There is a field for Time-stamp in the table, i have checked values in table IMRG, but in R/3 it shows no data for the time-stamp.
    Now i want to create delta basis for this generic datasource based on table, so shall i create delta based on time-stamp or date field.  
    If I create delta based on time-stamp will it create problem in delta extraction subsequently? Please share your experience in such a cases.

    There is a field for Time-stamp in the table, i have checked values in table IMRG, but in R/3 it shows no data for the time-stamp.
    Delta specific field should be something which defines changes in your table, not something which is blank always.Based on the change in this delta specific field only delta will be pulled.Having it blank will never pull you delta.
    Hope this helps.

  • How to catch the delta of generic datasource created on table EBAN?

    Hi Guru,
    I am facing a problem about the delta of generic datasource i created on table EBAN.
    when I convert a PR into PO, this PR was created  several month ago, this PR will not be caught into delta package.
    how to get this PR again after it was converted into a PO?
    many thanks.
    brgds/steve

    hi,
    If you have any fields(calday,timestamp,nemric pointer) in your table , using this fields any one we can enable delta.otherwise one option is there but your table is small valoum of datas.
    first data load(full) r3 to bw side cube,then using open hub service download data from cube to any file (excel ,csv) then r3 side create one table using that flat file, then load download file to r3 new table using (LSMW - tcode r3 side).
    now compare your genric extroction table and new table using ABAP coding , then you have any new record or changed find update new table first then BW side .
    using this type we can enable delta for genric extrocation.
    regards,
    sundar.

  • Field in Append Structure for Generic Datasource

    Hi:
    I created a Generic Datasource based on a view. After that, I created an Append to the Extraction Structure to include a field not originally on the view (and not related to any table in the view) to be calculated using customer exit in CMOD.
    At the moment of activating the Datasource, this new field doesn't appear in the selection window but in RSA6 it shows there with options "Hide Field" and "Field only Known in Customer Exit" checked.
    Again, I try to edit the Datasource but this field is not in the list to change those two checks.
    Any idea?
    Thanks.
    Luis Sales

    Dear Luis Sales,
    I was having the same requirement. I tried it hard for removing the tick mark on the HIDE option. But it was not working at all.
    I tried these steps.
    1. From RSO2 went to Extract structure. Edit Mode-> append structure.
    2. Appended required fields and activated both append structure and extract structure.
    3. Back to datasource and Save it.
    4. Came out of transaction RSO2. ( latter Logged of system )
    5. after re login - RSA6 selected given Datasource and change. there I could change the selection of HIDE field. ( Even earlier I was not able to do that)
    May be these steps help you out.

  • Delta issue on a Generic Datasource

    Hi
       I had a Generic Datasource on a Z table.
       The Z table had a Date field on which Delta is based.The Postings are performed manually.
      How to solve the delta issue in the below scenario.
    Ex; A user made a manual posting with a date 09AUG2010 today and delta is extracted to BW.
        But tommorow a used made another posting with a date 14JULY2010....
    Currently that record is not being extracted....how can i resolve this
    Thanks

    Hi,
    Once the data source is created you will extract the data till that date and as the delta is set it will fetch the newly updated records .But i dont think one can post with the back dates in R/3 side.
    If i'm not wrong if you are asking regarding record got missed out them wht need to be done?
    Then do the repair full request and pull the missed delta records and it wont effect the delta settings.
    Regards
    KP

  • Horizontal Bar in the RSA3 is not showing up for Generic Datasource.

    Hi There,
    Created a Generic Extarctor based on a two tables PAYR and REGUH.
    Included 60 fields in the Generic datasource. Everything is fine and when i check the data in extract checker
    RSA3, the horizontal bar is not showing up and i could only see 15 fields. I couldn't able to see the rest of the fields.
    Can someone suggest what should i do to see all the fields in RSA3?  Why Horizontal bar is not showing up?
    Out of 60 fields only very few are hidden and it should show atleast 40 fields, but not happening..
    Thanks
    Vandana

    HI There,
    Thanks for all your responses.
    1 - Tried to change the layout by going into Menu Settings --> Layout ---> Current, but no option to change.
    2 - If I check the value of a particular field in the magnifier, then I could able to see all the fields
    3 - After executing the RSA3, tried to change to ALV Grid by going into LIST, but again no option available to change.
    4 - Checked the RSA2, and to my surprise all the fields are ticked as Key. Is that something why i'm able to see all fields in   
         the browser?
    5 - But when the check the datasource in RSA6, only 3 were ticked as Key and those three fields i can see before
         extracting  the data using extract checker RSA3.
    6 - Why all fields are ticked and showing and Key in RSA2 ?
    The above is the current status of this issue. Can anyone please suggest how i should go head?
    Thanks
    Vandana

  • Generic Datasource on SAP Infoset CFM_POSITIONS

    Hi All,
    I've  created a generic datasource based on ECC infoset CFM_POSITIONS (actually ZCFM_POSITIONS after implementing OSS NOTE 1051893). In this infoset, that is build on top of Logical Database FTI_TR_POSITIONS a lot of variables are created standard.
    When I try to test my generic datasource I need to fill a lot of variables and after executing I get a new pop-up screen 'Generated Query' where I still need to fill some other variables.
    After doing that I get some data out of the datasource (RSA3).
    When I try to execute the extractor in BW, I get error messages and the 'generated query' screen doesn't pop up. (Error occurred in the data selection)
    Is there anybody who has allready implemented a generic datasource on top of this infoset/logical database and who is getting data into BI?
    Thanks for your help.

    Hi Raf,
    Thanks for you reply.
    I removed the extra selections as explained in the note, but still the extra selection page pops up (in the extractor checker) that can not be used during BW extraction.
    Even though SAP especially created a note on this one (removing the extra selections) for generic datasources , it still doesn't seem to be possible to create a working extractor on top of it
    I will try the solution you proposed to use a custom abap based on the logical database, but this will be time consuming I fear...
    Thanks again for your help.

  • Missing new fields in generic extractor but present in table view

    Hi
    I can't see new fields in generic extractor but they are present in the table view.
    Few days ago I created a generic datasource based on table view. Now I included 2 more fields in the table view but these fields doesn't show in RSA6 and RSO2.
    how can i resolve this.
    thanks

    Hi Bhat,
    GO to RSA5 and give ur generic extractor name ....
    Click on edit the newly added fields will be hided ...so u need to uncheck the hide olumn
    once this is done save that.
    U will find the fields in RSA3 and RS02
    Regards
    vamsi

Maybe you are looking for

  • IPod no longer connects to home Wi-Fi at distance

    Got home yesterday to find that my iPod only connects to my WiFi when I'm right in front of the hub (BT). I can no longer get WiFi on my iPod anywhere in the house (where I always had 2 bars of signal), but all other devices (tablet, phone, xbox, lap

  • Copy from Fact: "Invalid selection passed"

    Using OS5.0 SP2, has anyone received this error while running a standard copy from fact table package---"invalid selection passed"? Odd thing is, the copy package will work with the exact same parameters. I didn't find anything about this in the sap

  • Behaviour of PriorityQueue using Java 6

    Hi, I have a below code to test PriorityQueue ordering of elements using it's natural order. Output of SOP1 is clear to me. I was expecting SOP2 as : [a, b, d] SOP3 as : [a, b, c, d] import java.util.*; class PQTest { public static void main(String..

  • SUBTITLES CUT OFF AND OUT OF BOUNDING TEXT BOX

    SUBTITLES CUT OFF AND OUT OF BOUNDING TEXT BOX by Ben Martin on Jun 24, 2008 at 9:57:39 am I use Encore version 2.0 and have problem with subtitles on a 30 minutes video. I have not imported these subtitles, but made them, one clip at the time. The f

  • Deactivate elements 8

    i need to deactivate photoshop elements 8