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.

Similar Messages

  • 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.

  • 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

  • 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

  • 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.

  • 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

  • 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 datasource from view ZBSIS_VIEW

    Hi all,
    I could not create  the datasource on the database table BSIS as it said "Invalid extract structure template BSIS of Datasource". I had suggestions that I should create a view and then create the Datasource on it. So I created the view and tried. But still I am facing an error message while creating datasource from custom Database View ZBSIS_VIEW.
    "Invalid extract structure template ZBSIS_VIEW of DataSource"
    Can anyone help on this regard.
    thanks.

    Hi,
    Yes. You need a create a view on tables BSIS, BKPF and T001 as the currency/quantity fields in BSIS have reference fields from the other 2 tables.
    In BSIS, in the currency/quantity fields tab, you have some ref tables and fields. You would need to include these tables and join in the view. You would also need to include the ref fields like WAERS, HWAE2, HWAE3, etc in the view. Then you would be able to create the datasource.

  • Extract Structure not Being transported with custom Datasource

    I'm having trouble transporting a custom datasource from BW 3.5 dev to QAS.  The datasource is coming through and showing up in RSA6 but when I click on it I get the following error:
    "The extract structure ZOXDBW0123 of the DataSource ZRSPCTRIGTEXT is invalid
    Message no. R8444
    Diagnosis
    An invalid extract structure has been assigned to the DataSource. An extract structure has to be active in the DDIC. It cannot be a view, since the customer is not able to add append fields for filling in the customer exits to a view."
    Any ideas?
    Thanks,
    Luke

    Thanks for your input.  We managed to get through one of the errors on about the 8th try to transport everything together.  It might of had something to do with the way things were being grouped in the packages.
    So now were just getting an RJ044 Error: "ZRSPCTRIGTEXT: Only tables and views are permitted for extraction". 
    I think it may be some kind of program error after all, cause our basis consultant took a look and couldn't figure it out at all either.  The transport says that everything is going through, but the view were extracting from is still not showing up in QAS.  He suggested we blow everything away and try building the datasource again from scratch.  So if we can't figure it out today we may try that route tomorrow. 
    Anyway, thanks again for all the help.

  • Creating a custom datasource. Please help!

    Hi Experts,
    I'm creating a custom datasource in RSO2 to extract data from a custom view based on three z tables. I have filled the view with the join conditions and the fields. After activating it, I have checked the data and it's correct. The problem appears when I try to create a custom datasource based on this table, the following error appears:
    Invalid extract structure template ZXXX of DataSource ZXXX.
    You tried to generate an extract structure with the template structure ZXXX. This operation failed, because the template structure quantity fields or currency fields, for example, field AMOUNT refer to a different table.
    I have checked the quantity and currency fields in order to add the reference tables and fields. For example:
    0AMOUNT: ref table: EIPA; ref field: BWAER.
    The problem is that I don´t know how to join both tables (EIPA and my Zview) because the key is different in the tables and only non relevant fields like Net Price appear in both tables.
    If I add only the field EIPA-WAER, the data selectedis not correct, obviously.
    Please, what can I do? Any ideas?
    Thanks in advance! Any help will be more than welcome. Thanks!

    Hi all,
    I have created an Infoset but the problem persists. If I only join the tables I need, when I generate de Infoset, a warning appears telling that some fields (currency and quantity) will not be filled. At this point, if I execute de datasource in RSA3, the number of records is correct but these fields are empty.
    If I add the tables that appear in the warning message, the number of records extracted is 0, because these "auxiliar" tables only contain information about currency units but they don't have the same key values so thay cannot join.
    I have a question now... the tables that I have to upload into BI are also Z Tables. What happens if I ask my development team to add currency and quantity units in these tables? I think my problem will be solved if unit fields appear in the original tables. Would it be enough?
    Any suggestions on it?
    Thanks in advance!
    Edited by: Iñaki Rueda on Dec 29, 2009 12:02 PM

  • Generic DataSource by View on EKBE table.

    Hi All
    I am also trying to create View based on EKBE table . I am getting some errors even through  I have included at reference table ( EKBE,EKKO and T001)  with respective fields.
    View is Ok, only when I try to activate DataSource in  RSO2 , I am getting error like this
    Invalid extract structure template ZEKBE of DataSource ZPU_EKBE_FLEX1
    Message no. R8359
    Diagnosis
    You tried to generate an extract structure with the template structure ZEKBE. This operation failed, because the template structure quantity fields or currency fields, for example, field MENGE refer to a different table.
    Anybody had same issue ?
    Regards.
    E

    Hi Ram,
    Again Thanks for your reply.
    Like you said I have created everything from RSO2,  except View .
    I am not lucky yet. getting same error.
    Invalid extract structure template ZEKBE of DataSource ZEKBE
    Message no. R8359
    Diagnosis
    You tried to generate an extract structure with the template structure ZEKBE. This operation failed, because the template structure quantity fields or currency fields, for example, field MENGE refer to a different table.
    Kind regards.
    E

  • 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

  • Amendment to Datasource using Function Module

    Alright Guys,
    Can someone help me? I have amended the '0PU_IS_PS_43' datasource and I need to 'unhide' the new fields I have added. I have logged into trans RSO2 to unhide these fields, but received the following warning - how do I resolve this?
    "DataSource 0PU_IS_PS_43 is extracted using functional module FM_BW_BUDGET_ENTRY_DOCUMENTS
    Message no. RJ042
    Diagnosis
    Up to now, DataSource 0PU_IS_PS_43 has been extracted using function module FM_BW_BUDGET_ENTRY_DOCUMENTS If you edit and save the DataSource using maintenance of the generic extraction, the extraction  will no longer be extracted using this function module, instead this will be done using a database view, a transparent table, an InfoSet of the SAP query or a user-defined extraction module.
    If 0PU_IS_PS_43 is included in delivered SAP Content, you can reactivate the extraction using function module FM_BW_BUDGET_ENTRY_DOCUMENTS by transferring this content with transaction RSA5 or the IMG."
    Thanks,
    Scott

    Hi
    You do not hide/unhide or manipulate this DA thru RSO2 (as its also obvious from the message) but rather thru RSA5 and you should extend the DS via User Exit (CMOD).
    Reg's
    Edan

  • Custom DataSource plays in JMStudio, but not in my application

    hello everyone. I need someone to help me out who has played around a lot with DataSources.
    I have been playing around with custom DataSources for a small while and I have not been able to figure out something and its starting to get frustrating.
    First let me tell you what process I exactly follow when I want to create a Custom DataSource (using the "Generating Live Audio/Video Data" datasource code sample as an example - from JMF solutions http://java.sun.com/products/java-media/jmf/2.1.1/solutions/LiveData.html):
    1. Suppose the source files (DataSource.java and LiveStream.java) are lying at C:\customds\.
    I compile the files like this:
    javac -d . DataSource.java LiveStream.java
    As a result this directory is formed C:\customds\jmfsample\media\protocol\live which contains all the compiled (interpreted) files.
    2. Then I register 'jmfsample' in the Protocol Prefix list and commit the changes using the JMFRegistry GUI.
    3. Now if I run JMStudio and enter the URL live: it gives me an error that it can't create a player. I feel this is happening because some classpaths haven't been set correctly. Eventually I figured out that I have to place the \jmfsample\media\protocol\live\ directory inside the <JMF install dir>\lib\. Doing this fixes the problem and now I can go to JMStudio and run the protocol using the 'Open URL'. Giving it 'live://' plays the 'blue screen' like a gem.
    4. But here is the catch now. When I create an application which tries to create a player using live:// as a source, it doesn't run and keeps giving me a noPlayerException, or a noDataSourceException (as the case would apply; code given below).
    The funny part is that i checked the JMStudio source code for the method that is used to 'Open URL'. I haven't found any siginificant change in the way it opens urls.
    I also went a step further and tried to compile and run the JMStudio code myself to trace the code when it is in the process of opening a url. The weird thing is that when I try to do that, giving live:// as a URL gives me the same error that is given by my application. In other words JMStudio when compiled by me gives me same the error of "can't create a player..." when I open the url live://. Has Sun used a JMStudio compiled using a different source file?
    Please please anyone tell me what is wrong here.
    I have basically tried out these two kinds of things in my code, and both give me a noPlayerException error:
    Player guiPlayer = Manager.createRealizedPlayer(new MediaLocator("live://"));and
    DataSource ds = Manager.createDataSource("live://");
    Player guiPlayer = Manager.createRealizedPlayer(ds);Thanking in anticipation.
    regards

    Would it be possible for you to expand on your solution a little bit? I'm trying a similar approach, and having a similar problem to yours. From Googling, it appears as if this is a very common problem, and a lot of people give up before they solve it.
    I'm trying to use jmf.jag (and optionally add fobs4jmf.jar), not compile it from source. But I am trying to compile my own protocol from source and run it in a debugger. I have all the class files going out to the same output directory, and IntelliJ generally adds them all to the CLASSPATH automatically. But I keep getting NoPlayerException. (If I break down the players construction step-by-step, it seems to fail on "Processor ps = Manager.createProcessor(ds);".)
    I'm trying to play a Quicktime movie from memory, and I've confirmed that I'm returning "video.quicktime", that my stream is Seekable and isRandomAccess returns true, my prefix is in the protocol list, and that the package name is correct. I've tried with PLUGIN_PLAYER being true or false, media type being video.quicktime or unknown, and every other permutation I can think of.
    Any help would be greatly appreciated.

Maybe you are looking for

  • Select list coloured based on selected value

    Hello, Could anyone please tell me if it is possible to display a LOV with a background colour based on the selected value ? In fact , I have a report with many select lists whose value can be Y,N,N/A and I would like that the corresponding LOVs have

  • R/3 Contact person to CRM

    Guys, The contact person number in our R/3 46C system is different than the contact person number in CRM, i.e.  4567 (in R/3) is 500009876 (in CRM).  How I can determine its corresponding number using ABAP based on the R/3 contact person #?  Is this

  • How to restrict fileAdapter??

    Hi All, I am using JDev 10.1.3.3 and SOA 10.1.3.3. I have 100 files in a folder. I need to read the filenames and directory. I have done those things by using InboundHeader.wsdl. Now the requirement is I need to read only first 10 files. How can I st

  • Emailing from Reader 11.0.09

    Just installed Office 2013 32bit on a Win 7 Pro 64 bit machine. In fact, we've done apx 20 machines. I have one that will NOT bring up Outlook when clicking on the Email icon within the Adobe Reader. We're on an Exchange Server with Outlook. So manua

  • Disappearing Buttons

    Hi, I've run into a problem concerning buttons added to a form. Ive added buttons to the user defined fields area of item master data (formType = -150). This works fine, but when I close the user defined fields part and the reopen it the buttons disa