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

Similar Messages

  • 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

  • Error while creating Generic Extractor via Function Module

    Hello Guys
    I have created a Generic Extractor through a Function Module. I took the Standard FM: RSAX_BIW_GET_DATA_SIMPLE, gave it a new name and activated it. I made a few changes in it, like giving my structure name for E_T_DATA and giving the list of tables, from where I need to get the data. Then I created the datasource in RSO2 by giving this function module and the extract structure.
    The DS was created properly, but when I check in RSA3 for records, its giving me an error: ---> <b>The extraction program does not support object YCNA_INVY_TRNS</b>
    What do i do now? Can someone please tell me, what changes I need to make in the standard FM to suit my requirements??
    Thanks.

    Hi,
            Just try to reactivate the structure once again. And when you open the function module, if the problem still persists just try to press Return key several times. The message you are getting is just a warning message.
    PS: I am not sure whether this is the correct way, but i personally resolved this by pressing the ENTER key 4 or 5 times. So just give a try.
    Regards
    Sunil

  • How to reduce long extraction time - Generic extractor based on view

    Hello. The previous thread about this error was closed without any answer.
    I'm in the same configuration.
    "Using a generic extractor (Delta enabled on confirmation date) based on view to load data from ECC6 to BI.
    Now my issue is that the delta extraction is running for a long time (around 1 hr) even if the data volume is very small
    While checking the job overview in source system i saw that the job is hanging at the below step for almost 1 hr."
    1 LUWs confirmed and 1 LUWs to be deleted with function module MF RSC2_QOUT_CONFIRM_DATA.
    I am not understanding why this is happening.
    Here is the log of the job:
    30.05.2011 03:58:11 Job started
    30.05.2011 03:58:11 Step 001 started (program SBIE0001, variant &0000000166864, user ID ALEREMOTE)
    30.05.2011 03:58:11 Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
    30.05.2011 03:58:11 DATASOURCE = 0CO_OM_WBS_6
    30.05.2011 03:58:11 *************************************************************************
    30.05.2011 03:58:11 *          Current Values for Selected Profile Parameters               *
    30.05.2011 03:58:11 *************************************************************************
    30.05.2011 03:58:11 * abap/heap_area_nondia......... 4000000000                              *
    30.05.2011 03:58:11 * abap/heap_area_total.......... 8000000000                              *
    30.05.2011 03:58:11 * abap/heaplimit................ 100000000                               *
    30.05.2011 03:58:11 * zcsa/installed_languages...... DEFS                                    *
    30.05.2011 03:58:11 * zcsa/system_language.......... E                                       *
    30.05.2011 03:58:11 * ztta/max_memreq_MB............ 2047                                    *
    30.05.2011 03:58:11 * ztta/roll_area................ 6500000                                 *
    30.05.2011 03:58:11 * ztta/roll_extension........... 2000000000                              *
    30.05.2011 03:58:11 *************************************************************************
    30.05.2011 03:58:11 1 LUWs confirmed and 1 LUWs to be deleted with function module RSC2_QOUT_CONFIRM_DATA
    30.05.2011 05:02:53 Call customer enhancement BW_BTE_CALL_BW204010_E (BTE) with 171 records
    30.05.2011 05:02:53 Result of customer enhancement: 171 records
    30.05.2011 05:02:53 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 171 records
    30.05.2011 05:02:53 Result of customer enhancement: 171 records
    30.05.2011 05:02:53 Asynchronous send of data package 1 in task 0002 (1 parallel tasks)
    30.05.2011 05:02:53 IDOC: Info IDoc 2, IDoc No. 4667050, Duration 00:00:00
    30.05.2011 05:02:53 IDoc: Start = 30.05.2011 03:58:11, End = 30.05.2011 03:58:11
    30.05.2011 05:02:53 tRFC: Data Package = 1, TID = AC11082D38B44DE308DD028A, Duration = 00:00:00, ARFCSTATE = RECORDED
    30.05.2011 05:02:53 tRFC: Start = 30.05.2011 05:02:53, End = 30.05.2011 05:02:53
    30.05.2011 05:02:53 Altogether, 0 records were filtered out through selection conditions
    30.05.2011 05:02:53 Asynchronous transmission of info IDoc 3 in task 0003 (0 parallel tasks)
    30.05.2011 05:02:53 IDOC: Info IDoc 3, IDoc No. 4667051, Duration 00:00:00
    30.05.2011 05:02:53 IDoc: Start = 30.05.2011 05:02:53, End = 30.05.2011 05:02:53
    30.05.2011 05:02:53 Synchronized transmission of info IDoc 4 (0 parallel tasks)
    30.05.2011 05:02:53 IDOC: Info IDoc 4, IDoc No. 4667052, Duration 00:00:00
    30.05.2011 05:02:53 IDoc: Start = 30.05.2011 05:02:53, End = 30.05.2011 05:02:53
    30.05.2011 05:02:53 Job finished
    Thanks for your help.
    Yann

    Parth Kulkarni,
    following the note and the other thread, I've check the index 4 of the table COEP.
    Here is what I got:
    Index ID           COEP             - 4
    Short text         MANDT/TIMESTMP/OBJNR, Index for Delta read method (CO-PA)
    Last changed       SAP             04.01.2010
    Status             Active          Saved
                       Does not exist in the database
    DB index nme
        Not defined as DB index in the ABAP Dictionary
    Is the fact that it doesn't exist in the database a problem ?
    Is the fact that it is active is good enough ?
    By the way thanks for your speedy reply !
    Yann
    Edited by: Yann GOFFIN on May 30, 2011 1:35 PM

  • 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

  • The Generic Extractor DataSource's TimeStamp table?

    We known the FI DataSource has the TimeStamp table BWOM2_TIMEST which provide two fields TS_LOW and TS_HIGH to store the Safty Interval information. I think the Generic Extractors DataSource may has the similar TimeStamp table too. If it is right, where is the TimeStamp table to Generic Extractors DataSource? Thanks for your reply.

    Many thanks for all of you. I have checked the tables and data flow.
    The result is below,FYI
    Field   comment
    ROOSOURCE-OLTPSOURCE (The DataSource name)
    ROOSOURCE-DELTASAFE1 (The Safety Interval Lower Limit)
    ROOSOURCE-DELTASAFE2 (The Safety Interval Upper Limit)
    ROOSOURCE-TSTPDAT (The DataSource create date)
    ROOSOURCE-TSTPTIME (The DataSource create time)
    ROOSGENDLM-OLTPSOURCE (The DataSource name)
    ROOSGENDLM-DELTAID (The Current Delta update Timestamp)
    ROOSGENDLM-REPEATID (TheLast Delta update Timestamp)
    RSA7->Current Status (The Current Delta update Timestamp)

  • How to create SAP Extractor based ODP on Hana?

    Hi SAP Gurus,
    I am a HANA begginer and trying to create an SAP extractor based ODP.
    Till now i have created a source system under "ODP - SAP (Extractors)" node of source system screen. I didn't enter any source system and type because there was no choice in the help list.
    Connection test and authorization test through sm59 are working with no problem.
    In the source system i activated  datasource 0FI_GL_4 and made sure that's working through rsa3 . I can retrieve more than 1000 line of data. So everything seems alright but when i try to replicate data source in HANA system i got this error;
    "Destination DTYIDS_IDS_00: ping waiting time (5 seconds) exceeded
    Message no. RSDS571"
    Some information on this issue and latter steps in order to create an ODP will be greatly appreciated.
    Best regards,
    Yağız

    I got the solution.
    CREATE OR REPLACE FUNCTION conv_str_to_date(c VARCHAR2) RETURN DATE
    deterministic AS
    BEGIN
    RETURN(TO_DATE(c,'MM/DD/YY'));
    END;
    CREATE INDEX my_date_index ON XML_TEST
    et (conv_str_to_date (et.xml_msg.extract('//DDate/text()').getStringVal()));

  • Reg : delta field for vbbe table while creating generic extractor

    hi
    i want to know which field should i use to do delta from vbbe table.
    do i have to ask my functional consultant for what field should ibe using or
    should i decide on my own
    your answer would be defintely rewarded
    thanks a lot
    pallavi

    Hi,
    I would suggest you to create a new sales document and try to find out how does it the new entry is entered in VBUK, VBUP, VBEP and VBBE tables. Also, try to change / modify and delete existing record and see the changes in the table. You need to check which date fields or any deletion indicator is set / modified or not. Do all this one by one and see the changes in the tables. Also, all these changes will be logged in change log table such as CDHDR and CDPOS. This will have all the history of changes for one sales document. Once you identify all this then it will be very easy for you to identify the delta fields. The other way is to speak to functional consultant and ask him how all these tables are affected when you change / modify / add / delete records.
    Hope this helps.
    PB

  • Generic extractor based on specific function module with delta update

    Hi everybody,
    I'm trying to create a specific extractor using a specific function module and a specific structure of record.
    In my F.M i merge record from standard table MKPF and MSEg and return the result trhu the structure.
    In initialisation mode, there's no problem . But now i'm must be able to use the DELTA mode but i don't know how to do it.
    Can somebody help me?
    Here is the code of my function module , i know it's not a standard one because i'm not using cursor but i got everything i need. The delta mode must be on creattion time of record in mkpf .
    FUNCTION z_bw_extract_mvt_sortant.
    ""Interface locale :
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SBIWA_S_INTERFACE-REQUNR
    *"     VALUE(I_ISOURCE) TYPE  SBIWA_S_INTERFACE-ISOURCE OPTIONAL
    *"     VALUE(I_DSOURCE) TYPE  SBIWA_S_INTERFACE-ISOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SBIWA_S_INTERFACE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SBIWA_S_INTERFACE-INITFLAG OPTIONAL
    *"  TABLES
    *"      E_T_DATA STRUCTURE  ZBW_MVTSORTANT OPTIONAL
    *"      I_T_SELECT TYPE  SBIWA_T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SBIWA_T_FIELDS OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *récupération des données.
      CASE i_initflag.
        WHEN space.
          transfert_record it_mvtsor e_t_data i_maxsize.
         DESCRIBE TABLE it_mvtsor LINES sy-tfill.
         IF sy-tfill GT i_maxsize.
           APPEND LINES OF it_mvtsor FROM 1 TO i_maxsize TO e_t_data.
           DELETE it_mvtsor FROM 1 TO i_maxsize.
         ELSEIF sy-tfill GT 0.
           APPEND LINES OF it_mvtsor FROM 1 TO sy-tfill TO e_t_data.
           FREE it_mvtsor.
         ELSE.
           RAISE no_more_data.
         ENDIF.
        WHEN OTHERS.
    raffraichissement des variables de travails.
          FREE : r_werks , r_bwart , it_mkpf , it_mseg , it_mvtsor .
          CLEAR : r_werks , r_bwart , it_mkpf , it_mseg , it_mvtsor .
    récupération des paramètres.
          PERFORM set_selection_criteria TABLES i_t_select.
          PERFORM init_code_mouvement.
          SELECT * FROM mkpf
          APPENDING CORRESPONDING FIELDS OF TABLE it_mkpf.
    WHERE cpudt = sy-datum.
          CHECK NOT it_mkpf IS INITIAL.
          SELECT * FROM mseg
            APPENDING CORRESPONDING FIELDS OF TABLE it_mseg
            FOR ALL ENTRIES IN it_mkpf
            WHERE mblnr = it_mkpf-mblnr
              AND mjahr = it_mkpf-mjahr
              AND werks IN r_werks
              AND bwart IN r_bwart.
          LOOP AT it_mkpf ASSIGNING  .
            ENDLOOP.
          ENDLOOP.
      ENDCASE.
    ENDFUNCTION.
    Thanks in advance.

    Hi,
    first of all: The use of delta in a generic Datasource by FM is not supported by SAP standard. You need to change the extraction method in table ROOSOURCE from F2 to F1. There is no standard transaction to do this, you have to do a hard table update. Be careful not to change any standard datasource by error, otherwise you can get serious problems.
    The interface for the FM will change with the new extraction method. You will need a new parameter I_UPDMODE of type SBIWA_S_INTERFACE-UPDMODE to distinguish between Init, Delta and Full Load.
    For an example coding please refer to FM RSVD_BW_GET_DELTA_DATA.
    Hope that helps
    Stephan
    Message was edited by: Stephan Müller

  • Error while creating a extractor based on Functional Module

    Hi,
    I am building an extactor based on afunction module.I created a DS and created a structure in Se11.When i am trying to put the extract structure in the Tables tab of the function module it gives me an error saying Tables parameters are obselete and doesnt allow me to activate or go back and front to other tabs.Can anyone please tell me what might be the reason?
    Thanks,

    Hi,
            Just try to reactivate the structure once again. And when you open the function module, if the problem still persists just try to press Return key several times. The message you are getting is just a warning message.
    PS: I am not sure whether this is the correct way, but i personally resolved this by pressing the ENTER key 4 or 5 times. So just give a try.
    Regards
    Sunil

  • Can I create a view based on two tables that have the same column name?

    I have two tables A and B. Each table has 50+ columns.
    I want to create a view that includes all the columns in A and all the columns in B. I created a view with a select statement that says
    Select A.*, B.*
    From A, B
    where A.id = B.id
    It returns an error because in each table I have a column that keeps track if a record has been changed called Modified_By. That's where it chokes up on I figure. I would like to write the view without explicitly writing each column name from A and B as part of the select statement. The actual select statement works fine and only bombs when trying to turn the select statement into a view.

    You will have to type the full column list at least once. You can save a few keystrokes (i.e. alias. on every column) by providing the column names to the CREATE part instead of in the SELECT part. Something like:
    SQL> desc t
    Name                                      Null?    Type
    ID                                                 NUMBER
    NAME                                               VARCHAR2(10)
    SQL> desc t1
    Name                                      Null?    Type
    T_ID                                               NUMBER
    LOC_ID                                             NUMBER
    NAME                                               VARCHAR2(15)
    SQL> CREATE VIEW t_v (id, t_name, t_id, loc_id, t1_name) AS
      2  SELECT t.*, t1.*
      3  FROM t, t1
      4  WHERE t.id = t1.t_id;
    View created.HTH
    John

  • Dynamically create a class based on database tables

    I am trying to build a database and tables on the fly, and save to the harddisk(done). Then I need to create a class using the info from the tables on the fly.
    For example,
    I built a database BANK, and a table Customer,
    Customer
    ID
    Phoneno
    Address
    Could I create a class named CUSTOMER (table name)
    dynamically, and have ID, PHONENO, ADDRESS,as the attributes of the class?
    Could anyone help or show the direction?
    Cheers.

    You could use a HashMap, and use the String keys "Customer", "ID", etc, and if you have primitive values like an int, you just wrap it inside Integer or any of the other wrapper classes, because HashMap only works with objects.
    Then you can use an ArrayList to hold all the records (one record is one HashMap as described above).

  • Generic Extractors for HR Reports using views and Infoset Query

    Hi Friends... I am working to come out with the HR reports in BW for the HR reports which are already there in R/3. The HR reports in R/3 are created based on Infoset Query.I could not find any standard business content cubes which can give me these reports.
    1)So please can anyone give me step by step approach so to create a generic extractors based on Infoset Query.
    2)And also how to populate the data into the fields of the generic extractor which is created by Infoset Query( Please provide any sample ABAP code if available)
    3)can anyone give me step by step approach so to create a generic extractors based on View/Table.
    4)And also how to populate the data into the fields of the generic extractor which is created by View/Table( Please provide any sample ABAP code if available)
    Thanks

    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 extractors on pool table and Cluster tables

    Good Afternoon all,
    Can we create generic extractors on Cluster or pool Table. If yes Let me know how?
    I am trying to create a Generic Extractor on BSEC Table but it is not allowing me to do this. It throws error that"Extraction from pool tables and cluster tables is not permitted"
    Kindly guide me on this
    Thanks,
    Vaishali.

    Hi
    you cannot do generic extraction directly on pooled or cluster tables.
    You can create a function module, then you can create a Generic Data source based on this..
    Hope it helps,
    Thanks,
    Teja
    Edited by: Teja badugu on Apr 15, 2008 12:24 PM

  • Error creating form based on a table

    This is wierd. I am running WebDB2.2
    and up until now it has been no problem
    creating forms from tables. But now in
    this schema called SUMI I am unable to
    create a form based on a table. I get
    the error below. I have assigned SUMI
    almost every possible permission
    (DBA, WebDeveloper) so I
    don't think it is a permissions issue.
    Any ideas? Thanks in advance. Marvin.
    ---Error Message--
    14/Aug/2001:13:12:28
    ORA-06550: line 5, column 7:
    PLS-00302: component 'FORM_NOTWORK' must be declared
    ORA-06550: line 5, column 2:
    PL/SQL: Statement ignored
    ORA-06550: line 5, column 7:
    PLS-00302: component 'FORM_NOTWORK' must be declared
    ORA-06550: line 5, column 2:
    PL/SQL: Statement ignored
    VARIABLES IN FORM NOT IN PROCEDURE:
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
    null

    I am bumping this up. Can anybody help or
    at least point me in the right direction?
    Thanks!

Maybe you are looking for

  • Cannot install full solution package for 2600n in Windows 7

    I have downloaded and run the Full Solution Package (hp_CLJ_2600n_Full_Solution-v20110217-50132926-RC5​-Signed) for the Color Laserjet 2600n Printer networked to my Windows 7 computer. The Plug and Play Driver installed properly but when I try to ins

  • IPhone 4S with iOS 6 can't connect to open Wi-Fi network on HP/H3C WX5004 controller

    After upgrading from iOS 5.1.1 to iOS 6, iPhone 4S devices can no longer connect to an open wi-fi network on our campus. We have a controller based WLAN from HP/H3C managed by a WX5004 controller with AP models WA2620-AGN and WA2620E-AGN. Symptom: In

  • How do I remove or change tags in a photo?

    In some of my images, the wrong tags have appeared on some people's photos. How do I correct or remove these?

  • Anyone using Spyder 3 Elite

    I just purchased Spyder 3 Elite to use on my Imac and my macpro. I do not know how to manually adjust the ambiance lighting, or the RGB sliders. Does anyone know of a good tutorial of how to use the Spyder?

  • Using Remote Desktop - Windows RT 8.1

    Hello, I was directed here from the Microsoft Answers community site about my issue regarding Remote Desktop on my Surface 2 RT. I am trying to connect my Surface 2 to my Windows 8.1 Pro desktop (it has Media Center on it as well). The problem that k