Invalid Extract Structure while creating a datasource

Hello,
I'm creating a datasource from a view. whenever i try to save it, it gives me an error saying that it is an invalid extract structure and that one of my fields is referenced to another table. After the threads on SDN, I think I need to remove this field from the view, activate my datasource, append my extract structure by adding the problem field and write an user exit to populate the field.
I don't have any experience in writing an user exit. I would appreciate if anyone would guide in it. Here are the details of my view:
View with 4 tables: EKBE, EKKO, EKPO AND EKKN
so that i'll get the line items of the purchase orders with the fields that i need. I didn't see any business content datasource for this.
problem field: DMBTR in EKBE table
this is referenced to T001.
How do i add this field in the extract structure and how do I write an user exit for this?
Regards,
Sam

Hi,
I am new to this foroum and BW module....
I too am facing the same problem.
I am creating a view from 2 tables VBAK and VBAP .
I was having problem with currency fields NETWR, WAERK, NETPR. So i removed the currency fields. Still i am having same error of not being able to create my data source from the view i have made. It gives the error....
Invalid extract structure template Z76_VEW_VBAK_VBP of DataSource Z76_DS_VIEW_VBAK_VBAP
Message no. R8359
Diagnosis
You tried to generate an extract structure with the template structure Z76_VEW_VBAK_VBP. This operation failed, because the template structure quantity fields or currency fields, for example, field NETPR refer to a different table.
Procedure
Use the template structure to create a view or DDIC structure that does not contain the inadmissable fields.
Can anyone help me out please.
Thnaks
Mansi

Similar Messages

  • Invalid extract structure template &2 of datasource &1

    Hi all,
    I really need help in this one. I am trying to create a generic datasource and it gave me this error. I did little research and found that my key figures are pointing to the currency or unit which is in an include. and one of the note says that the currency and unit has to be in your field list. I am using notes 335342 and 202162.
    I am copying a part which I am not able to understand since I am doing this for the first time so Please help.
    "If the currency or the unit a key figure refers to is not located in a table but in a structure, the key figure has to be removed from the view and read via a customer exit (see below). Structures cannot be included in a view.
    ATTENTION!! Often the key of the table in which the referenced unit is located, does not agree with the key in the table with the corresponding key figure. In this case, the join condition of both tables is not unique in the view definition, that means for each key line of the table with the key figure, several lines of the table with the unit may be read: the result is a multiplying of the number of lines in the view by a factor corresponding to the number of lines that fit the key figure, in the unit table. To be able to deliver consistent data to a BW system, check whether the unit of the key figure in question should always have a fixed value. If yes then you can determine that in the view definition via 'GoTo -> Selection conditions'. If no, then you must proceed as follows:
    a) Remove the key figure from the view
    b) Define the DataSource
    c) Enhance the extract structure by key figure and unit for each append (Transaction RSA6)
    d) Add the key figure and the unit in a customer exit
    2. A view is already used for the extraction.
    Thanks for all the help in advance.

    Hi AHP,
    It beats me as to how can I add those fileds from FAGL table in the view, I am just not getting it. Or is there any other table that I can add these views.Some times it gives me this error "Field TCURC-RTCUR does not exist in any of the base tables." or similar to that I dont know what does that mean, Can you let me know plz?
    Also all the links that you have given are really great, I will doing the FM for first time so it took me time to sink in the process and concept. I am trying to use one of the code that Dinesh has given in one of that posts and just adding my table names in his tables just as starting point. I am not getting what exactly do I have to do in these two sections can you help me understand.
    cursor
    S_CURSOR TYPE CURSOR.
    Select ranges
    RANGES: L_R_ZYEAR FOR YSALES-ZYEAR,
    L_R_ZMONTH FOR YSALES-ZMONTH.
    why exactly is it zyear and zmonth can we change it? what criteria?
    OPEN CURSOR WITH HOLD S_CURSOR FOR
    SELECT (S_S_IF-T_FIELDS)
    FROM YSALES .
    select BUKRS
    ZYEAR
    ZMONTH
    WERKS
    MATNR
    SLSCAT
    KNDNR
    SPART
    MATKL
    MENGE
    DMBTR
    VV702
    VV703
    VVADS
    VV704
    VV731
    INTO CORRESPONDING FIELDS OF TABLE I_YSALES
    FROM YSALES
    WHERE ZYEAR IN L_R_ZYEAR
    AND ZMONTH IN L_R_ZMONTH.
    WHERE MATNR IN L_R_MATNR.
    WHERE WERKS = WERKS
    AND MATNR = MATNR
    AND KNDNR = KNDNR
    AND SPART = SPART.
    IF SY-SUBRC = 0.
    SORT I_YSALES BY WERKS MATNR .
    ENDIF.
    Do we have to add here all the fileds that we want from the table? and what does "WHERE KNDNR = KNDNR" means , how should i relate it to my table.??
    Thanks again for all the help.

  • 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

  • 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

  • Unable to create Custom Datasource on AFRU -Invalid extract structure error

    Hello folks,
    All SDN experts I need urgent help with an issue here.I am trying to create a custom datasource on a view on AFRU table.But i am getting this error 'Invalid extract structure template ZAFRU_V ' , i know it could be cuz of the field SMENG which is refrenced to AFVV tables MEINH field.My boss needs to have this field.I would like to know what can i do to get it, do i need to write a user exit, will that help or not. Please tell me what to do.
    Thanks,

    i tried what you asked me to do, this was my joing condition
    AFRU     MANDT     =     AFVV     MANDT
    AFRU     AUFPL     =     AFVV     AUFPL
    AFRU     APLZL     =     AFVV     APLZL
    But then what i ran into was if the counter (APLZL) was 0 or blank it wouldnt get that data for me.That means i will loose hundreds or thousands of records if they have confirmation and routing number  of ops in order but no counter.Please assist.
    And to answer is open so please any one who sees this and knows the answer please reply.
    Thanks.

  • Custom Datasource using View COVJ - R8359 Invalid extract structure

    I'm trying to build a custom datasource so I can get at plan line item data with partner object (I've tried using 0CO_OM_CCA_1 but I dont get the partner object for plan data - no idea why). So I thought if I create a datasource using COVJ I can get it out. However when I try and save the custom datasource (created using RSO2) I get the error R8359 Invalid extract structure: You tried to generate an extract structure with the template structure COVJ. This operation failed, because the template structure quantity fields or currency fields, for example, field WOG001 refer to a different table.
    I saw posts saying when people get this error thye should reference the table these fields come from in the view. So I've talked to our ABAP'er and I asked him to reference the table these fields come from but he said this cant be done because these come from a structure not a table.
    Any ideas?
    Thanks
    Joel

    The WOG* columns in table COEJ, one of the tables contributing to the COVJ view, use CCCUR-CURKY as the reference table-column for those quantities. The ABAPer you spoke to is correct that CCCUR is a structure. View value fields inherit their reference table-column from the source, in this case COEJ, and since this source table is an SAP delivered table it cannot be modified change this reference.
    This means that you're only option for extracting the data out of the COVJ view would be to create a Function Module and use that Function Module as the basis for your DataSource.

  • Invalid Extraction Structure Template

    Hi All,
       Am getting "Invalid Extraction Structure Template"
       error while creating generic datasource, am creating
       datasource based on a view.
       please suggest a solution.
    Thanks

    Hi,
      If we have any quantity or amount fileds in views, we have to provide refernce objects for Units.
    Goto Viwe -->> check for tab Units and provide units from source tables(like : <tablename>-<fieldname>)
    Srini

  • Getting Error while creating Genric Datasource

    Hi,
    I was try to create genric extracter where i was getting error
    While creating view genric extracter where i am getting error "Entry A ZV_ZFRT  does not exist in DD02L - check your entry".
    My requirement is need to create extracter which is getting populated from three modules like SD,MM,FI/CO.From these three module i am using several tables and some of the tables don't have relation btween these tables as like foreign key and refrence key.
    Which extracter i need to create as given scenario?
    Does view will fullfill with my requirement or any other extracter.
    Please some one can help me in this scenario.
    Answer would be great appreciate.

    Hi,
    Rather than writing a program write a function module. Create a structure and include all the necessary fields in the structure. Then in the function module write the logic to extract the values for those fields. While creating the datasource specify the function module and structure name.
    Refer this link:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Hope this helps.
    PB

  • Invalid extract structure template

    Table YCUSTOMER
    This table has 2 fields referenced by T001-WAERS.
    I want created extractor from  YCUSTOMER, but it donu2019t and I have this message:
    u201CInvalid extract structure template YCUSTOMER of DataSource Z YCUSTOMER.u201D
    But I havenu2019t the fields BUKRS on my table YCUSTOMER.
    I donu2019t know how I can create join between YCUSTOMER and T001?
    Have you any solution?
    Best regard
    francoise

    Hi,
    when you are creating data source if it is based on some view
    in both the tables there should be a primary key and foreign relation ship between tables then create the view and use that view for data source creation.
    This table has 2 fields referenced by T001-WAERS.
    I want created extractor from YCUSTOMER, but it donu2019t and I have this message:
    u201CInvalid extract structure template YCUSTOMER of DataSource Z YCUSTOMER
    in your case the amount field the  currency is refereing from t001 table so it is showing that error
    if you are going with structure and function module in structure level u should declare that currency reference with the  structure name.
    then u can create the datasource and check
    at the time of view creation it may not show.
    again that atable currency is referenig from some other(t001) table so taht is invalid structure.
    Thansk & Regasrd,\
    sathish

  • 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

  • Change an extract-structure in an existing datasource

    Hello,
    I want to change an extract-structure in an existing datasource (0COORDER_TEXT), but I don't know how to do.
    (I first thought I can do it with trx RSA6.)
    Can anybody give me a hint how to change the extract-structure?
    Kind regards
    Udo

    Hi,
    yes, you can change an extract-structure in an existing datasource . The enhancemet of DataSource is the process of enhancing your extract structures by creating an append with your ZZ/YY fields and filling these fields using a specific user exits. Then you have to fill those fields with some ABAP custom code that can be anything from some simple calculations or table lookups to complex business logic requiring access to multiple database tables. You can do that by CMOD, creating a project and using the enhancement:RSAP0001.
    You have to follow bellow steps:
    1. Go to RSA6.
    2. Select the Data Source.
    3. Select display Data Source (Ctr+F2).
    4. Double click on the Extract structure.
    5. Click on the Append Structure.
    6. Add the required field .
    7. Activate the Append Structure.
    8. Go to CMOD.Give the Project, select Display.
    9. Click on ZXRSAU01.
    10.you have the bellow exits:
        a).Transaction data: EXIT_SAPLRSAP_001
        b).Master data attributes: EXIT_SAPLRSAP_002
        c).Master data texts: EXIT_SAPLRSAP_003
        d).Master data hierarchies: EXIT_SAPLRSAP_004
    11. select Transaction Data EXIT,then you have to write the ABAP CODE
    12. save and activate.
    13. check the data in RSA3.
    These steps will help you.
    Regards,
    Suman.

  • Recieving ORA-01722 invalid number error while creating a materialized view

    Hi,
    I am receiving a ORA-01722 invalid number error while creating a materialized view. when run the select statement of the view i don't get any error, but when i use the same select statement to create a materialized view i receive this error. Could any please help in resolving this error. Here is the code i am using to create a materialized view.
    CREATE MATERIALIZED VIEW MV_EBS_CH_CLOSED
    REFRESH FORCE ON DEMAND
    AS
    SELECT DISTINCT kr.request_id, org.org_unit_name,
    ebs_ch_ticket_type (kr.request_id) ticket_type,
    DECODE
    (kr.status_code,
    'CLOSED_SUCCESS', kr.last_update_date,
    'IN_PROGRESS', (SELECT MAX (start_time)
    FROM ebs_ch_datastore ecd1
    WHERE kr.request_id = ecd1.request_id
    AND workflow_step_name =
    'Final BA Review and Deployment Exit Criteria')
    ) closed_date,
    substr(krhd.visible_parameter12,1,10) siebel_start_date,
    kr.creation_date itg_start_date
    FROM kcrt_requests kr,
    kcrt_request_types krt,
    kcrt_req_header_details krhd, kcrt_request_details krd1,
    (SELECT koum.user_id user_id,
    DECODE (koup.org_unit_name,
    'IT Implementations', 'CHS - Service Management BA',
    koup.org_unit_name
    ) org_unit_name
    FROM krsc_org_unit_members koum, krsc_org_units koup
    WHERE 1 = 1
    AND 'Y' = koup.enabled_flag
    AND koum.org_unit_id = koup.org_unit_id
    AND EXISTS (
    SELECT 'X'
    FROM krsc_org_units kouc
    WHERE koup.org_unit_id = kouc.org_unit_id
    START WITH kouc.parent_org_unit_id =
    ANY (SELECT org_unit_id
    FROM krsc_org_units krsc_org_units1
    WHERE 'Clearinghouse' =
    org_unit_name)
    CONNECT BY kouc.parent_org_unit_id =
    PRIOR kouc.org_unit_id)
    UNION
    SELECT kou.manager_id user_id,
    DECODE
    (kou.org_unit_name,
    'IT Implementations', 'CHS - Service Management BA',
    kou.org_unit_name
    ) org_unit_name
    FROM krsc_org_units kou
    WHERE 'Y' = kou.enabled_flag
    START WITH kou.parent_org_unit_id =
    (SELECT org_unit_id
    FROM krsc_org_units krsc_org_units2
    WHERE 'Clearinghouse' = org_unit_name)
    CONNECT BY kou.parent_org_unit_id = PRIOR kou.org_unit_id) org
    WHERE krt.request_type_id = kr.request_type_id
    AND krt.request_type_name IN ('Bug Fix', 'IT Enhancement')
    and kr.REQUEST_ID = krd1.request_id
    and krd1.batch_number = 1
    AND kr.request_id = krhd.request_id
    AND org.user_id in (krd1.parameter4, krd1.parameter5, krd1.parameter7)
    AND ( 'CLOSED_SUCCESS' = kr.status_code
    OR 'IN_PROGRESS' = kr.status_code
    AND kr.request_id IN (
    SELECT request_id
    FROM (SELECT DISTINCT request_id,
    MAX
    (start_time)
    closed_date
    FROM ebs_ch_datastore
    WHERE 'Final BA Review and Deployment Exit Criteria' =
    workflow_step_name
    GROUP BY request_id))
    Thanks,
    Shaik Mohiuddin

    This error occurs when you try to create a materialized view , but if you run the sql the results are perfectly fine. Well it happend to me also and to fix this I made sure all the coulmns have the same data type which are used in joins or in where clause.
    use
    where
    to_number(col1)=to_number(col2) and to_number(col3)=to_number(col4)
    hope this helps..

  • Why do we deactivate the extract structure while doing extraction

    Hi experts please let me know
    why do u deactivate the extract structure while doing extraction

    Hi,
    We will never deactivate the extract structure while doing extraction.
    When we try to appends some new fields to the extract structure, then automatically it gets deactivated. After we append the fields, we have to activate extract structure and data source.
    Finally, the DS has to be replicated in BW.
    Regards,
    Suman

  • Invalid extract structure template && of DataSource &&

    Hi,
    While creating a z datasource i have received the above error. Fom the previous threads here (and from notes 202162 & 335342) I can understand that when there are Currency or Quantity fields included in the datasource, their key fields (CUKY for currency and UNIT for Quantity) shoul also be included in the same view and structure.
    In this case I am taking data in the view from table EKBE. I need to have MENGE & DMBTR. For this I am also taking fields LSMEH (Datatype - Unit) and WAERS (Datatype - CUKY) respectively. Yet the error is coming.
    If i try to join EKPO table in the view then this error does not come as I give EKPO-MEINS as ref table and ref field for MENGE. This thing works even if datatype of EKPO-MEINS is also UNIT Datatype. BUt I can not use join on EKPO table as while extracting the data in RSA3 it is giving me data from both tables (which is not the requirement)
    Plz help.

    Hi,
    Try giving EKPO-MEINS as ref table and ref field for MENGE. without joining EKPO.
    Hope it helps
    Regards,
    Rathy

  • 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

Maybe you are looking for

  • Mbp core 2 duo, no display after applying 10.7.5 update

    My wife just did an update from 10.7.4 to 10.7.5 and after reboot the display would not come up. I can screen share to the MBP but I can not get the local display to work. Tried doing a NVRAM reset no luck. Connected external monitor, also no display

  • Using an iPad in Bermuda

    Does any one in Bermuda, who is using a Bermuda credit card, find it impossible to register a valid account?  I keep getting told that my card is invalid.  I have also noted that I get messages telling me that an app is unavailable in Bermuda.

  • Itunes cannot find original file would u like to locate it

    I have backed up my music to dvds and now want to delete the backup from my desktop. as far as i knew itunes stored all the music but when i delete my backup music ,itunes asks me to locate the songs. surely i dont have to keep 2 sets of all my music

  • Uninstalling the drivers and programs for Windows 7 SP1 64 bit of the OfficeJet 7410 All-In-One

    Hi Which utility should be used to properly and completely uninstall the drivers and programs for Windows 7 SP1 64 bit installed with the OfficeJet 7410 All-In-One printer? Thanks Bye balubeto

  • Opening exe file

    How do I open an exe file on my mac? Do I have to download a Windows program? I need an easy way to do this......its not a big file like a game.