Implementing Outer join Views in creating Generic datasource

Guys,
Iam bringing the Purchase document level data from R/3  into BW.I have couple
of other Ztables also from which i need to collect the information.So iam going to create a generic datasource based on the view.
In case of Database view it is taking inner join, which is undesirable since the
final data coming out of view will be reduced as we join the main base tables with ztables..Since Ztables may have very less data.And inner join gives complete information only if all tables contain the information given out in the view output.
One option is to use maintainance view which uses outer join. Is it recommendable
to use maintainance view in case of basing the Generic datasources on the view.
Please inform me if any of you have done generic datasources using database view.Any idea in this regard is welcome.

Hi,
I think you may have to develop your Generic Datasorce with "Function Module" since there is no common field.
Regards,
Suman

Similar Messages

  • Create generic datasource by using view

    Iu2019ve to create generic datasource by using view.
    View has to be build on top of two tables which have key relationship. While creating it asking type of view, I mean database view, projection view, maintenance view like that.
    Which type of view is best one?
    Advance thank you very much

    Hi,
    for understanding all view type just refer this link
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm.
    and for our purpose as already said use database view.
    Regards,

  • Creating generic datasource using function module in R/3 4.6c

    Hi,
    I am not able to see the option (in TC RSO2) to create generic datasource using function module in R/3 4.6c. Is there any special plug in or some SAP Note to be applied to get the option ?
    Waiting for a quick response.
    Thanks and Regards,
    Deepak

    Hi Sat,
    Thanks for the reply.
    I know that creating generic datasource from function module is available in R/3 4.7.
    In 4.6c version there are only two options available. They are Extraction from DB View and Extraction from SAP Query.
    The third option i.e. Extraction from Function Module is not available in 4.6c. I wanted to know if there is any plugin that needs to be installed to get this option.
    Thanks and Regards,
    Deepak

  • Error while creating Generic Datasource

    Hi,
    I try to create generic datasource using function module in RSO2, it is giving the following errors and the datasource is not creating.
    "Units field WAERK for field TOT_REV of DataSource ZIPO_TRANSCATION is hidden Message no. R8147"
    "Units field WAERK for field EXP_REV of DataSource ZIPO_TRANSCATION is hidden Message no. R8147"
    TOT_REV and EXP_REV fileds datatype is CURR.
    Fuction Module is working fine. Please give me any inputs, it is very urgent.
    Best Regards,
    SGK.

    hi,
    let WAERS field be present in your structure defn
    In the Currency/Quantity fields tab of your extract structure give the refernce of the same structure and same field
    Regards,
    Sampat

  • How to understand the way OBIEE implements outer joins?

    Hello guys
    I have a few scenarios where I have to implement outer joins and inner joins between dimensions and facts..
    There are 2 ways as far as I know that allows me to implement outer joins in BMM layer.
    1, Join the Logical dim table A to Logical Fact table B using outer join. The modeling will look like the below:
    A Dim ---outer------B fact -----------inner----C Dim
    By this design, the query that selects columns from all 3 tables will look at this:
    select columns from ((B fact inner joins C on key1 = key2) left outer joins on A dim) on key3=key4)..
    2, Join logical dim table A to fact table B inside the LTS of fact B by mapping the LTS B to dim A using outer join. then join fact B to C:
    B fact (mapped to fact B outer join Dim A) ------------inner -------C dim
    By this design, the query that selects columns from all 3 tables will look at this instead:
    select columns from C, B left outer join A on key1=key2 where key3=key4
    Comparing these 2 queries, the first one seems to do inner joins first and then outer join the result set to Dim A, the second query seems to outer join Dim A first and the result set inner joins to Dim C..
    I ran the same report using these 2 different designs, and the data comes out very different. The report of the first query is much smaller than the report of the second query...
    Can anyone help me understand how OBIEE understands outer joins? The second query is so far giving the right result, however, I can't get rid of the outer join in the query even if not selecting columns from Dim A, which is impacting the performance of other reports without Dim A.
    Your inputs will be greatly appreciated
    Thanks
    Edited by: user7276913 on Apr 20, 2010 9:31 AM
    Edited by: user7276913 on Apr 20, 2010 9:31 AM

    Xcode is the IDE.
    Objective-C is the language typically used.
    There's lots of getting started stuff at https://developer.apple.com

  • Can anybody explain me creating Generic Datasource using Function module?

    Hi,
    can anybody explain me creating Generic Datasource using Function module?
    Thax in advance,
    Ravi.

    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    1. Create s structure with the fields that you need from the 4 tables . Activate.
    2. Goto SE 80 Select The Function Group , Copy , Select the Function module
    " RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
    Y or Z .
    3. SE37 ->Your Function module name -> Change , In table tab give your structure
    name by deleting the associated type given in " E_T_DATA " .
    4. Now select source code and Do the coding . Give Data source name in Coding .
    In your case you have to take data from more that 1 table .
    5. Activate the Function Group .
    6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
    7. RSA3 -> Give data source name and Check for the Records .
    Creation of custom datasource. (Using function module)
    <b>is an example</b>
    1.Create a function group .
    2. Structure ZTEST123
    ZMATNR MATNR CHAR 18 0 Material Number
    ZMTART MTART CHAR 4 0 Material type
    ZMBRSH MBRSH CHAR 1 0 Industry sector
    ZMATKL MATKL CHAR 9 0 Material group
    ZBISMT BISMT CHAR 18 0 Old material number
    ZMAKTX MAKTX CHAR 40 0 Material description
    3. Create function module (i.e. ZTEST….) .
    FM - YMARA_DATA_TRNS
    FUNCTION YMARA_DATA_TRNS.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
    *" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *" TABLES
    *" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *" E_T_DATA STRUCTURE ZTEST123 OPTIONAL
    *" EXCEPTIONS
    *" NO_MORE_DATA
    *" ERROR_PASSED_TO_MESS_HANDLER
    data : ZTEST123 type ZTEST123 occurs 0 with header line.
    Maximum number of lines for DB table
    STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    S_COUNTER_DATAPAKID LIKE SY-TABIX.
    DATA: begin of t_mara occurs 0,
    ZMATNR type MATNR,
    ZMTART type MTART,
    ZMBRSH type MBRSH,
    ZMATKL type MATKL,
    ZBISMT type BISMT,
    end of t_mara.
    DATA: begin of t_makt occurs 0,
    ZMATNR type MATNR,
    ZMAKTX type MAKTX,
    end of t_makt.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
    IF I_INITFLAG = SBIWA_C_FLAG_ON.
    Check DataSource validity
    CASE I_DSOURCE.
    WHEN 'ZZMARA_DATA'.
    WHEN OTHERS.
    IF 1 = 2. MESSAGE E009(R3). ENDIF.
    this is a typical log call. Please write every error message like this
    LOG_WRITE 'E' "message type
    'R3' "message class
    '009' "message number
    I_DSOURCE "message variable 1
    ' '. "message variable 2
    RAISE ERROR_PASSED_TO_MESS_HANDLER.
    ENDCASE.
    Fill parameter buffer for data extraction calls
    S_S_IF-REQUNR = I_REQUNR.
    S_S_IF-DSOURCE = I_DSOURCE.
    S_S_IF-MAXSIZE = I_MAXSIZE.
    ELSE. "Initialization mode or data extraction ?
    Data transfer: First Call OPEN CURSOR + FETCH
    Following Calls FETCH only
    First data package -> OPEN CURSOR
    IF S_COUNTER_DATAPAKID = 0.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
    select MATNR
    MTART
    MBRSH
    MATKL
    BISMT
    from mara up to 10 rows
    into table t_mara.
    if not t_mara[] is initial.
    select MATNR
    maktx
    from makt
    into table t_makt
    for all entries in t_mara
    where matnr = t_mara-zmatnr.
    endif.
    loop at t_mara.
    read table t_makt with key zmatnr = t_mara-zmatnr.
    ZTEST123-zmatnr = t_mara-zmatnr.
    ZTEST123-ZMTART = t_mara-ZMTART.
    ZTEST123-ZBISMT = t_mara-ZBISMT.
    ZTEST123-ZMBRSH = t_mara-ZMBRSH.
    ZTEST123-ZMATKL = t_mara-ZMATKL.
    ZTEST123-zmaktx = t_makt-zmaktx.
    append ZTEST123.
    clear ZTEST123.
    endloop.
    clear E_T_DATA.
    refresh E_T_DATA.
    E_T_DATA[] = ZTEST123[].
    ENDIF.
    S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
    ENDIF. "Initialization mode or data extractio
    ENDFUNCTION.
    3. Create the data source using transaction (RSO2).
    4. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter ‘E_T_DATA’.
    5. Test the datasource in R/3 using transaction RSA3.
    6. Transfer the data source to BW –System and replicate it in the BW-System.

  • Invalid Extract Structure error while creating "Generic DataSource" on a view...

    Dear All,
    I have created a view on following tables MARA, AFKO and MSEG. The Table/Join condition is as follow:
    AFKO--AUFNR  = MSEG--AUFNR
    AFKO--PLNBEZ = MARA--MATNR
    I have included all the fields from MSEG and other all fields from MARA and AFKO. The view is created successfully and contents/records are also being fetched/displayed from this view.
    See screen shot as well:
    But when I go to RSO2 to create a "Generic DataSource" on this view. I get a series of warning messages and then error message "Invalid Extract Structure" and therefore I'm unable to create my DataSource on this view. See below screen shots of warning and error messages.
    Other warning messages are as follow:
    Field GAMNG with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
    Field PLSVB with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
    Field PLSVN with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
    Field LODIV with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
    Following is the screen shot of error message:
    1. How can I get rid of this error message and be able to create my "Generic DataSource" on top of this "View"?
    2. What should I do to resolve the above warning and error messages?
    I will appreciate your reply.
    Many thanks!
    Tariq Ashraf

    Hi Vipul,
    as you can find in CKIS table, the reference feild for value feild "WERTN" is missing.
    As per the table the reference feild is HWAER. This should have been used in place of FWAER.
    Try mentioning this in your view and this should work.
    Also I am a little enthusiastic to know, what are you trying to get from the datasource.
    If you are trying to get the cost estimate of multi level BOM, not (just one child level), then this approach may not work.
    There is a BAPI that gives such itemization split. Just FYI, in case you are looking for multi level explosion.
    "BAPI_COSTESTIMATE_ITEMIZATION".
    Hope this helps.
    Naveen.A

  • 'table does not exist' when creating generic datasource

    I went to SBIW->Business Content DataSources->Transfer Business Content DataSources-chose "content delta". it said 'comparison bct <-> cust version ' then it counted thru several objects for a few minutes and finished with no warnings.
    then I selected each datasource under co-om-cca and activated those with no problems.
    problem: now when i try to create came generic datasource using co-om-cca application component i get mssg when saving 'the specified table does not exist'...so now it isn't even letting me create a datasource at all using a standard application component either.
    I have been having many problems with creating datasources and using application components and this is why I did the first paragraph because I don't know what else to try.
    Please help, thanks.

    I have answered my own question.  I wasn't entering the view/table and it was my own complete oversight.

  • Problem while creating generic DataSource using table

    Hello all,
    I am creating a generic DataSource using table EKBE. It is giving error " invalid extract structure template EKBE ". The reason is " The system tried to generate an extract structure with the template structure EKBE. This operation failed, because the template structure quantity fields or currency fields, for example, field MENGE refer to a different table (EKPO)".
    Could you suggest how to approach?
    Thanks,
    Zak.

    hi zahir,
    In your case the reference table used for quantity is ekko and the field is meins.
    and the reference table used for currency is ekpo and the field is waers.
    So you are not taking data from a single table. so you better create a view give the table name ekbe and select the corresponding fields you want.
    Add MEINS and WAERS and as well your required field in the view for example Zview and for Quantity field mention Zview as reference table and reference field as MEINS same for WAERS.
    try this if it doent work, tell me what error you are facing.
    with regards!
    ramesh

  • BI : Error while creating generic datasource

    Hi Experts,
    While creating the generic DS , It is giving the me the below error:
    :Invalid extract structure template ZFI_AGED_TR_BAL of DataSource ZFI_AGED_BALANCE". Kindly advise.
    thanks & regards,
    M.S

    Hi ,
    I am creating Generic DS on Extract stucutre ZFI_AGED_TR_BAL.
    It is containing the below fields as currency fields which is referrering to table T001.Kindly advise how should i include the currency field.
    Field,Data Element,Datatype,Ref table,ref field , description
    BUCK2,DMBTR,CURR,T001,WAERS,Amount in Local Currency
    Thanks & regards,
    M.S

  • Creat generic datasource"customising undependent of mandant is inadmissibl"

    Hello,
    I am creating a generic datasource through for a SAP (MCSI) table:
    1. After entering the DS name and descriptions and table name, by saving i recieve the error message: "repository change: customising undependent of mandant is inadmissible". With this error, i cannot save the datasource.
    2. By clicking on the delta generic: How can i configure the fields (the table is for sales order):
      - Field: Which field can i choose: For example there are the fields "data analysis date, data analysis month, .. and ...
    - Do i have to choose "Stamp or kalender" radio button and for which reason
    - The intervalle (smaller and higher value)
    3. The datasource is to transfer data in BI.
    Thanks
    Ar.

    Hi
    I hope your first problem is solved ( because of server used QA not DEV)
    2. By clicking on the delta generic: How can i configure the fields (the table is for sales order):
    - Field: Which field can i choose: For example there are the fields "data analysis date, data analysis month, .. and ...
    Ans : Its depends upon which date you business want your delta shuld work, click the F4 help and choose from drop down table.
    - Do i have to choose "Stamp or kalender" radio button and for which reason
    Again for Transactional data we used TIMESTAMP and for Master data it should be CALENDERDAY.
    - The intervalle (smaller and higher value)
    For TIMESTAMP +/-30 mins and for CALENDERDAY +/- 2 Days.
    3. The datasource is to transfer data in BI.
    Yes, Many std. datasources are provided by SAP which also we can modify by doing enhancement.
    Also we can write our own DS as per need and requirement.
    Thank-You.
    Regards,
    Vinod.

  • Creating generic datasource

    Hi Experts,
    while i have created a generic datasource from RSO2 and when i am trying to check data for that datasource it is giving that that datasource is not there in the source system.
    can any pls explain how to solve this and when i am creating datasource i could not able to give the specific application for the data source. where should we assign source system for this generic datasource.
    thans,
    sree

    Hi,
    Which type of data source you have created.are you able to see your data source in RSA6??
    If you are able to see it there then only you can use RSO2 for it.
    Try RSA2 for the data source and see if it shows you or not.
    You have to put in transaction or master or text and then check in RSO2.
    Generally the data source is assigend to the area which it belongs..like if the datsource is related to SD module then create it in the SD application area.You can also create a Z apllication area for generic data source and assign them to the newly created data source...but still should prefer to create in the area related to the data source...and replicate them to BW.
    Thanks
    Ajeet

  • Error message R8281 after creating generic datasource

    Hi Guys,
    I created a datasource, and when i go to RSA6 and run a check it gives me an error message: R8281 . Does anyone know how i can rectify this?
    Thanks

    Hi, this is what i got in the error Log: can anyone tell me how to resolve this please?
    You tried to assign a DataSource to the application component NEW_HIER_ROOT. This application component is, however, not entered in the RODSAPPL table as an application component
    System response
    The DataSource is saved, but is not visible in BW under the node NODESNOTCONNECTED.
    Procedure
    You do not have the option yet to transfer the application component hierarchy from the Content.
    You transfer the hierarchy with Business Content.

  • View on EKBE for creating Generic Datasource

    Hi,
    I want to create a Generic data source on Table EKBE.But while creating view I am facing problem with reference  fields
    of table T001 .I want to include this table in join condition but there is no common field between EKBE and T001.
    How to resolve this issue ?
    Edited by: dharmatejandt on Jun 11, 2011 8:47 AM

    Hi,
    I think you may have to develop your Generic Datasorce with "Function Module" since there is no common field.
    Regards,
    Suman

  • Outer join for a database view

    Dear Experts,
    Could you tell me what is the outer join and the example of this?
    Is it possible I can create an outer join view for generic extraction?
    Thanks.
    Arthur

    This is what a nested loops would look like in ABAP.  It is not a function module, but it could be made into one very easily.
    REPORT zz_temp.
    DATA: l_t_tstc    TYPE TABLE OF tstc,
          l_t_tstct   TYPE TABLE OF tstct,
          l_s_tstc    TYPE tstc,
          l_s_tstct   TYPE tstct.
    SELECT *
    INTO CORRESPONDING FIELDS OF l_s_tstc
    FROM tstc AS t.
      SELECT tt~ttext
      INTO CORRESPONDING FIELDS OF l_s_tstct
        FROM tstct AS tt
        WHERE tt~tcode = l_s_tstc-tcode
        AND tt~sprsl = sy-langu.
      ENDSELECT.
      WRITE:/ l_s_tstc-tcode,l_s_tstct-ttext.
    ENDSELECT.

Maybe you are looking for

  • Error in JVM crash - JDeveloper

    I'm using JDeveloper 11g Release 1, error when running the application. # A fatal error has been detected by the Java Runtime Environment: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6da5df84, pid=5528, tid=2640 # JRE version: 6.0_14-b08 # Java

  • How do I get my mac on thie internet?

    I have a Preforma 6300CD Power PC, I also have a linksys wireless router, and a netgear 8 port gigabit switch. I have other computers on this network primarily linux and windows pc's. How do I get my mac to connect to the internet over tcp/ip connect

  • Help. Flash CS5 - How to create a hyperlink to offline source

    Helllo, I have not been able to solve this one as I am new to Adobe Flash, and would require some help. I have created a button, and once you hit the button (within the HTML page), I want it to open another HTML page in the same frame, both HTML page

  • Regarding Classical Reporting

    Hi all, I want to know how to write the code in calssical reporting to get field headngs. In ALV means we use Field catalog merge FM, But in classical it is differnt. I want one example program to get field catalog in classical Reporting out put, My

  • Report does not show Quotation price

    Dear friends, What may be the reason, that my report does not show the quiotation price, though Sales order price, revenue price shows normal? Please give some probabilities. Rao