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.

Similar Messages

  • 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

    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

  • 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 Structure Template KNKK of  DataSource KNKK_DataSource

    Hello,
    I am trying to create a Generic DataSource in R3 for BW.  My goal is to create a Generic DataSource for table KNKK in R3.  I am following some Generic DataSource instructions which appear to be very straightforward. I have named the DataSource "KNKK_DataSource".  I follow the steps, but when I try to save the DataSource, I get this error message, "Invalid Structure Template KNKK of  DataSource KNKK_DataSource".  I can see a field on this page that is called "ExtractStruct", but I am not able to enter anything into this field, and even if I could, I do not know what to enter.
    Can anyone provide some guidance?
    Thanks!

    hi Jim,
    yes, seems no infoproviders for 0fi_ar_9.
    take a look oss note 688859. however, there is ODS 0FIAR_O09 - oss 656687, please check if it's suitable,
    i have no access to system now.
    hope this helps.
    688859-Business Content for 0FI_AR_9 (Credit Management DataSource)
    Symptom
    There are no InfoProviders shipped by SAP for DataSource 0FI_AR_9
    (Credit Management: Control Area Data with Delta Extraction).
    You want to understand the reasons for this, and
    you are looking for guidance on possible usage scenarios for 0FI_AR_9.
    Other terms
    KNKK 0FI_AR_9 BWFI3D_GET_FIAR_CM_CAD DTFIAR_9
    Reason and Prerequisites
    This is a consulting note.
    Solution
    By standard, SAP does not offer any queries for 0FI_AR_9. The main reason for this is the following one: SAP R/3 ERP allows multiple n:m relationships between Customer, Credit Control Area, and Company Code. (For example, one customer could be allocated to many credit control areas, and one company code could have relations to many credit control areas, or vice versa). Moreover, those foreign key (n:m) relationships vary by customer installation. This makes it difficult to develop business content applicable to a wide variety of installations.
    There are multiple ways, however, how the information contained in 0FI_AR_9 could be made available e.g. for A/R reports. Some of those options include:
    - MultiProviders.
    - Reading of 0FI_AR_9 (from ODS) via update rules.
    - Central consolidated ODS layer.
    - Inclusion of relevant fields as attributes, e.g. for 0CUSTOMER.
    When doing so, make sure to pay particular attention to the following:
    - Potential implications of n:m relationships, as pointed out above.
    - Implications for delta behavior of 0FI_AR_9.
    - Possibly required mapping of calendar month to fiscal period.

  • 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

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

  • Fileds available in extract structure but not in Datasource.

    Dear All
    I n the extract structure BIW_MARC_S of 0MAT_PLANT_ATTR,  fields like reoder point, safty stock are available but these are not showing up in the data source 0MAT_PLANT_ATTR . How can I bring them in the data source...
    Thanks in advance
    Dinesh Sharma

    Hi Dinesh,
    I have the solution for this.
    Go to contents of the table ROOSFIELD in SE11, give your data source 0MAT_PLANT_ATTR. These steps are to be done in ECC. There you can find the fields of datasource. Trace for your field safety stock.
    Double click on that. you will get the details of that field. In that screen, the selection is shown as A, it means hidden.
    You have to change it either P or X in debug mode. Then the required field will be available for your datasource.
    Do revert in case of queries.
    Regards,
    Rama Murthy.

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

  • Changes in Logistics DataSource Extract Structure

    Hi All,
    We intend to transport our enhanced extract structure of our Logistics DataSource. We know that extraction queue and delta queue must be emptied first before the transport starts.
    However, we are wondering whether a re-INIT of delta also must be done or not. At this moment, we have delta up and running already.
    Please advice. Thanks.

    Hi Reddy,
    Thanks for your fast reply.
    No, we don't need that historical data. Perhaps, to be more specific, we are wondering whether a Re-INIT without data transfer should be done again or not ?
    We have two cubes. One is old one with up and running delta. The other is new one which we are going to transport soon.
    So, we plan to use same delta infopackage later for these two cubes.
    The concern is now about the delta.
    Please advice again. Thanks.

  • Difference between Extraction Structure and Datasource

    Hi Gurus,
    I have a very basic question here.Can anybody explain to me in detail the difference between an extraction structure and Datasource.
    Thanks in advance

    Hi:
    I am pasting a summarized def. from sap notes.
    http://help.sap.com/saphelp_bw30b/helpdata/en/ad/6b023b6069d22ee10000000a11402f/frameset.htm
    Data Source:
    Data that logically belongs together is stored in the source system in the form of DataSources. A DataSource contains a number of fields in a flat structure used to transfer data into BW (Extract Structure).
    Extract Structure:
    In the extract structure, data from a DataSource is staged in the source system. The extract structure contains the amount of fields that are offered by an extractor in the source system for the data loading process.
    You can edit and enhance DataSource extract structures in the source system. To do this, in the BW Administrator Workbench choose Goto à Modeling à Source Systems à Your Source System à Context Menu (right mouse click) à Customizing Extractors à Subsequent Processing of DataSources.
    While, you are on the topic, you have one more structure.
    Transfer Structure:
    The transfer structure is the structure in which the data is transported from the source system into the SAP Business Information Warehouse.
    It provides a selection of the extract structure fields for the source system.
    It may be a good idea to look into a sample Business Content extractor to get a better understanding of how they are related.
    Chamarthy

  • Extract structure not existing/not active

    Hello BWers,
    I have transported my Data Mart settings to the new BW prod environment (not yet in production). However I get an error message when importing saying:
    "The extract structure /BIC/CE8Z0PCA_C01 of the DataSource 8Z0PCA_C01 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."
    I have checed and the structure doesn't exist. It automatically seems to have been added to dev package $TMP (local objects) and was therefor excluded from transport...
    Now, what I wonder, is how do I get this missing structure into my production system? I have the data sources, but the actual structure is missing...
    Best regards,
    Fredrik

    hi Fredrik,
    seems you post the same questions twice,
    as mentioned in your other thread, try 'generate export datasource' in your new production system.
    also take a look similar problem
    Export DataSource problem
    Trasport error while trasporting the Masterdata infosource
    hope this helps.

Maybe you are looking for

  • Why are the thumbnails on the comments sections of blogs covering the text in safari?

    Why doe my iPhone make the size of the thumbnails so large that they cover up the text in the comments section of different blogs? They're mobile sites and they appear this way in safari and chrome. This is a new occurrence after the latest update.

  • File file = new File(URL) - no can do on 1.3?????

    I'm using java v1.3 and when I try to use the constructer File file = new File(URL) I get this error : C:\myservlets\TestServlet.java:26: cannot resolve symbol symbol : constructor File (java.net.URL) location: class java.io.File      file = new File

  • SRM 7.0 - Service Request item add Service Provider (empty list)

    Hello, Up on creating an Service Request item in a SHC (operational purchaser) an error message is shown: 'Enter at least one source of supply' The tab 'Supplier / Service Agents' tell me: Here you see all available suppliers for the selected product

  • Adobe Flash Professional CS5 Extension for AIR 2.5 について

    ここで質問していいのかわかりませんが間違ってたらすみません. Android用にFlashCS5を使ってなにか作ってみたいなと思い.いろいろ調べていたのですが スレッド名にも書いていますがAdobe Flash Professional CS5 Extension for AIR 2.5というのを AdobeLabsからダウンロードしてきて・・・という方法が比較的簡単そうに思えたので それをAdobeLabsなどで検索したのですがダウンロードの項目がありません. 代わりに 「The extens

  • How is v 3.5 better than v 3.0

    I have Final Cut Express HD 3.0. The latest version, I believe, is 3.5. Would I be better off upgrading? I've read that there is full keyframe control now. Would this include the Motion control? If I have 3D text, could I rotate it and see all angles