Urgent........Generic data extraction........

Hi Experts,
I created a Generic extractor using a function module
1.I created a Function Mudule and tested the same in debugging mode it seams it is fetching the data properly.
2. I created the extract structure using SE11 in my extract structure I have around 15 fields of type CURR. so I specify the reference table and reference field for all the above 15 fileds.
3. I try to  ctreate a Generic data source using RSO2 using a field AEDAT .
I got 15 error messages that the 
" the unit field CURR of the field PKAZ1 of the data source ZBWNXXXXX is not visible or stopped out or hide or..........ausgeblendet."
How shall I handle this issue........
Thanks in advance.
Cheers
Sailekha

Hi
I am not tested in RSA3. I just tested whether data is fetching properly or not by   Debugging the Function Moudule.
to be frank I am new to this concept. How shall I populate currency and unit fields for Keyfigures in FM.
In my case the data for these KF's is comming from a table
to get the data from the table
I use the following code
Wertarten puffern *********<b>KF Buffering</b>
TODO: Eventuell zu Performanceverbesserung die zu
       selektierenden Wertarten weiter einschränken
       select  POS_SEQ_GUID
               VAL_TYP
               CURR
               VALUE
               PERC
          from /bwn/npos_vl
          into table ct_pos_vl
          for all entries in ut_polpos where
                  POS_SEQ_GUID = ut_polpos-POS_SEQ_GUID.
Fetching the KF data  
  FORM wertarten_fuellen  USING     US_POLPOS type s_polpos     
                                                      UT_POS_VL type t_pos_vl
                         CHANGING           CS_DATA   type Z_S_POLPOS.
data: ls_pos_vl type s_pos_vl.
  loop at ut_pos_vl into ls_pos_vl
              where POS_SEQ_GUID = us_polpos-POS_SEQ_GUID.
case ls_pos_vl-val_typ.
      when '001'.
    Originalversicherungssumme - VAL_TYP = 1
        cs_data-ZIOVB     = ls_pos_vl-value.
        cs_data-ZIOVB_C   = ls_pos_vl-curr.
      when '002'.
    Signed Line in Summe - VAL_TYP  = 2
        cs_data-ZIZVS        = ls_pos_vl-value.
        cs_data-ZIZVS_C      = ls_pos_vl-curr.
       endcase.
    endloop.
endform.
I used the above code to buffer the KF data and and to fill the KF data . is it  the correct apporach to populate the KF's in FM
can you please send  me sample code to to do this.
any suggestions please............
Thanks in advance

Similar Messages

  • Generic Data Extraction From SAP R/3 to BI server using Function Module

    Hi,
    I want step by step procedure for Generic Extraction from SAP R/3 application to BI application
    using Functional module.
    If any body have any Document or any PPT then please reply and post it in forum, i will give point for them.
    Thanks & Regards
    Subhasis Pan

    please go thr this link
    [SAP BI Generic Extraction Using a Function Module|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/sap%20bi%20generic%20extraction%20using%20a%20function%20module.pdf]
    [Generic Data Extraction Using Function Module |Re: Generic Data Extraction Using Function Module;

  • Delta in Generic data extraction

    Hi all,
    I have a doubt here,
    What is the delta in Generic Data extraction?
    What are the types?
    and what are their significances?
    Please give reply.
    Thanks
    Surya.

    Hi Surya,
    If a field (date, progressive document number, timestamp) exists in the extract structure of a DataSource that contains values which increase monotonously over time, you can define delta capability for this DataSource. If such a delta-relevant field exists in the extract structure, such as a timestamp, the system determines the data volume transferred in the delta method by comparing the maximum value transferred with the last load with the amount of data that has since entered the system.  Only the data that has newly arrived is transferred.
    To get the delta, generic delta management translates the update mode into a selection criterion. The selection of the request is enhanced with an interval for the delta-relevant field. The lower limit of the interval is known from the previous extraction. The upper limit is taken from the current value, such as the timestamp or the time of extraction. You can use security intervals to ensure that all data is taken into consideration in the extractions (The purpose of a security interval is to make the system take into consideration records that appear during the extraction process but which remain unextracted -since they have yet to be saved- during the next extraction; you have the option of adding a security interval to the upper limit/lower limit of the interval).
    After the data request was transferred to the extractor, and the data was extracted, the extractor then informs generic delta management that the pointer can be set to the upper limit of the previously returned interval.
    Hope now is clearer...
    Bye,
    Roberto

  • Error while activation Function module for generic data extraction

    Hi,
    I have created a generic data source ZMATERIAL in which i have selected the Extraction by Function module. I copied the function module RSAX_BIW_GET_DATA_SIMPL to ZMATERIAL_FM, but when i activate this module it gives me error
    REPORT/PROGRAM statement missing, or program type is I (INCLUDE).
    The main program of the function "Z_BWGENDATAMATERIAL" does not begin with "FUNCTION-POOL".
    Please help me in this.

    Hi Dipika,
                  I think a similar issue is discussed
    Refer this thread
    REPORT/PROGRAM statement missing, or program type is I (INCLUDE).
    Compiling INCLUDE progam
    question related to includes
    question related to includes
    Hope these helps
    Regards
    Karthik

  • Generic data extraction

    Hi guru's.
    I like to know how many fields can be taken from table for the view in GE , Is there any limit? we need to set  delta  for each field for delta extraction?.
    Regards.
    Harry

    Hi Harry,
    I am not aware of a limitation for the number of view fields, but in  case of a generic delta you only have the choice for one field (a timestamp, a date or a numeric pointer).
    Siggi

  • Generic Data Extraction : Setting of Upper and Lower Limits

    Hi all,
    I'm doing the delta extraction for this non-standard infocube which stores data about measuring documents. The strategy I used was to first update a ODS with the new/changed measuring documents determined by their last changed date. Then it will update the infocube with the new values. In order to get the delta measuring documents to go into the ODS, I specify a upper limit of 1 and lower limit of 0 in the extractor's generic delta settings to get measuring documents that are created/changed the previous day. But the system will still take in the full set of measuring document.
    Is there something that I have missed out?
    Thanks

    Hi,
    I dont see anything wrong with what you have done. That is correct, it is recommended that the upper safety interval should be set to 1.
    But according to you, the system still gets the newly changed records as of current day. Have you checked the update mode? It should be <b>DELTA UPDATE</b>. It might be marked as <b>FULL UPDATE</b>.
    Have you successfully initialized the <b>DELTA Update</b>?
    Are you using an appropriate DELTA field? It should be a Calendar Day.
    Hope I did help and if i did, please grant points...
    --Jkyle

  • Generic data extraction and loading to cube

    Hello guys, I am trying to load R3 data thru Gernic extraction to infocube in bw3.5.
    I just created generic DS and activated it and also Replicated in BW side.
    I am trying to extract transaction data - from FI , DS has Ship Info Table fields in the extraction structure.
    Everything got activated and now i am in BW side, just assigned DS to infosource.
    But i am stuck in Transfer rules, all infoobjects on the left are empty and it wont let me activate.
    I am really confused, Should i be creating infoobjects first , because i havent created infocube yet.
    My DS has about 12 fields , I really need someone to tell me why its not activating Transfer rules, Comm structure is still empty.
    Should i be creating INfocube first with KF and Chars?or how am i supposed to map these DS fields in the Infocube (my data target)?
    I guess i am not clear at this point, even with LO extraction I could get create DS and replicate in BW , but once i am in BW i become clueless i should say.I did search other posts here but couldnt find anything that help me understand this.if someone could explain me in a simple terms i would appreciate it.
    I have created DS with extraction structure, i am in BW , so whatever field i selected in extract structure in R3 side f rom the table , is that going to be Chars and Key figures in my Infocube once i complete Loading ? or how would that work? Why would we need to chose specific Table when creating view , assuming that we already know the data that we need for reporting purposes, we would know those data should be on what table correct?
    please drop some lines to help me thanks

    hello again, i am writing this since i didnt get any response. I would really appreciate it if someone could give me little hint , i have been practicing on my own using bw system and need help from you Pros.
    My previous question was regarding Transfer rule . I am still not able to get through that steps.
    This is what i have done so far:
    -created DS generic for transaction data,  using View VBAK table (not sure if this was the right table, i just wanted to see if i would be successful loading data in the cube).
    - ACtivated DS, replicated in BW, Assigned INfosource.
    - I selected 15 Fields from DS (extraction structure ) from that VBAK table.
    - But when i am in Transfer rule ./structure screen, there are many fields appearing.
    - It will let me active the Transfer Rules, however i also created InfoCube , it asked me to chose at least one Time Chars, and KF. But i used Template using my infosource, there were no KFs . so i figured i need to change Transfer rule. I tried to create Key figure infoobject on the right side of the screen in Transfer rules, but it will not move to the right when i tried to transfer it.
    My question is, why there are more fields in this screen and some fields are not appearing the one i selected.
    Since i chose transaction Generic DS,is that why i have to have Key figures? did i chose worng table VBAK for practice purpose? i dont really see much Keyfigures when i looked the content of this table using SE16.
    Guys please suggest me , what route should i take to get through this confusion.
    My main objective here is to simply load R3 data using Genric DS(transacitonal)  into a customized infocube.
    I get error when creating Update rule, infosource and infocube wouldn not link, i think its becoz i didnt have any keyfigures available when creating Infocube ? how would i chose one?
    anyone please throw me some suggestions ..i would really appreciate it.thanks again for reading

  • Generic data extraction from R/3 into BI

    Hi Friends,
    We need to extract some data available in the R/3 side to BI. I have written code in a function module which brings the output into the table e_t_data. now by attaching this function module, we created a Data source also. and then from BI side we replicated this Datasource. when tried to extract the data at BI from R/3, the process keeps on running with out bringing any data into BI.
    Regarding this, i referred some docs in the forums. They say that we have to go with the approach followed in the FM 'RSAX_BIW_GET_DATA_SIMPLE'. I have done all the coding and settings similar to this function module. there is no syntax error and code produces the required output in e_t_data.In that FM they used some Select statement under the Open Cursor statement. But in our requirement, we are not selecting anything from Table. but we generate some data by some calculations and these data will be our output. If it is the case, can't we use that open cursor approach...? we need to get the output data not by any select statement but the output will be some internal table entries which are created by some calculations.
    Please suggest how to handle this.
    Thanks in advance...
    Regards
    Ram

    Hi,
    just fill the output table in your FM by yourself - it will work.
    I guess at the beginninig you are selecting data from one (or more tables) and than calculate the final output later. You may use the cursor for packing the data into suitable packages. However, an exact package size is - in most cases - not possible with that scenario.
    Kind regards,
    HP.

  • Generic Data vs Generic Delta

    Hello,
    When do we use Generic Data Extraction?
    When do we use Generic Delta Extraction?
    Thanks

    Roshan,
    When you create a Generic DataSource you have the option to make it support delta functionality using your specified charactetistics which will be used to track deltas for example document date etc....
    We create a Generic DataSource if the existing BC does not provide a standard datasource for the same.
    Whether you want it to be delta enabled or not it depends on your scenario.
    Hope this helps.....

  • Error while doing DELTA Extraction (generic data source)

    Hi BW Experts,
    In my R/3, I have a generic data source ZBUT_VW.
    It receives data from a View which is created based on couple tables.
    When I do full load to the corresponding ODS, it is successful.
    But after that I delete the ODS and created CUBE with DELTA
    I have Initialized delta.
    When I do DELTA extraction, it fails.
    The error “The ALE inbox of the SAP BW is identical to the ALE outbox of the source system
    and/or
    the maximum wait time for this request has not yet run out
    and/or
    the batch job in the source system has not yet ended.”
    I delete the initialization load and trying to do DELTA extraction again and it Fails.
    With the same error
    Please let me know how can I resolve this problem.
    URGENT
    gaurav

    I dont think it is possible to have to additive delta with creation date.
    Try a full load to cube to check if the extractor is working.

  • Generic Data Source Creation (Very Urgent)

    Hi Friends,
           I am getting errors while i am creating Generic Data source using Table "ECMCT" .This table contains all fields which is required for my Data Source.
    ---> I gave <b>ECMCT</b> table in "Extraction from DB view " but when i click save its showing error message "INVALID EXTRACT STRUCTURE TEMPLATE ECMCT OF DATASOURCE ZFI_ECMCT(is name of my data source)".
    > I created Function Module using this Table.
    In Function Module "Tables tab"
    i gave "ITAB LIKE ECMCT".
    In "Source Code tab"
    i gave "SELECT * FROM ECMCT INTO TABLE ITAB".
    In RSO2 "Extraction Using Function Module"
    i gave FM name and Extract Structure name as ECMCT. After clicking save its showing ERRORS:
    1) ZFI_ECMCT(is my data source name) : Tables parameter E_T_DATA for     Extractor ZFI_CONSOLIDATION(is my Function module)
    2) Units field CURR1 for feild HSLVT of datasource ZFI_ECMCT is hidden.
    3) ......................................HSL01.....................................................
    4)........................................HSL02...................................................
    ;etc.
    Could u anybody suggest me where i am doing wrong. This is very very urgent for me.
    Thanks,
    Mani.

    Hi,
    For " Extraction Using Table" the system does not create an extract structure automatically if  the  Amount field (type CURR) and currency key field (type CUKY )  are in different tables . Hence u create a View of  the data table and the reference table (Say PA0002 and T001) wherein, include all the fields from PA0002 and just the referenced fields from T001 so that all the fields come under the view.
    But if the above solution is not possible say for ex. if the key fields don't match , then u should go for function modules.
    Regards

  • Urgent.. generic data source... table not activated.....

    Dear all experts,
    i am extracting generic data source
    while doing it, it is saying as the table which i have selected in the screen SE11 has not activated
    can anybody please tell solution...
    its very urgent.
    points will be assigned to your help.....
    regards
    vinay

    Dear Kalpana M ,
    can you please tell, how to activate tables..
    i m using makt and mara.... and i have created view on them.
    how to activate these tables.
    plz reply, its very urgent.
    regards
    Vinay

  • Error while testing Generic Data Source extraction

    I've created generic data source for Texts and Attributes in R/3 based on VIEW (Z table)
    I get  error "Error 6 in function module RSS_PROGRAM_GENERATE" while trying to test the data sources through RSO2
    I guess there can be a lot of reasons... Please name me anybody who knows them...
    thanx in advance

    Hi,
    Please Check the OSS note 328948 and it provides solution to same error what you have. Additionally you can have a look into this OSS note 705212 too.
    Syntax error in the generated extraction program Symptom
    You notice the error by one of the following symptoms:
    The loading of transaction data from an R/3 system terminates with a syntax error in the generated extraction program. The monitor displays the error messages:
    R3027 "Error & during the generation of the data transfer program"
    RSM340 "Error in the source system"
    The extraction within the extractor checker terminates with error message RJ028 "Error 6 in function module RSS_PROGRAM_GENERATE".The activation of transfer rules ends in BW with error message RG102 "Syntax error in GP$ERR$, row... (-> long text)" from the source system. Usually, the diagnosis in the long text of the error message is: "...could not be interpreted. Possible error causes: Incorrect notation or... "
    Other terms
    OLTP, extractor, data extraction, DataSource, Service API, SAPI,
    R3 027, R3 27, RSM 340, RJ 028, RJ 28
    Reason and Prerequisites
    The error only occurs in the source system, if this contains Basis Release 3.1I and Service API (SAPI) 3.0C Support Package 6. SAPI 3.0C Support Package 6 is contained, for example, in PI 2003.1 Support Package 7 (see attached composite SAP note 673002).
    Solution
    To correct the problem you need service API 3.0C Support Package 7 in the affected source system. The attached composite SAP note 704971 explains in which software components service API 3.0C is contained, and what the corresponding Support Packages of these components are.
    Alternatively, you can also copy the advance correction from the appendix.
    Hope it helps.
    Regards

  • Extraction, Flat File, Generic Data Source, Delta Initialization

    Extraction, Flat File, Generic Data Source, Delta Initialization
    I have couple of questions regarding data extraction.
    1.     If you have Data Source a Flat File e.g. Excel file I know that you have to create Data Source at BW side. How do you upload updates, by selecting Delta Update when executing next Data Load? Do you ever u201Cconvertu201D this Excel file into Application Tables to become SAP Source 
    2.     Can you please give me example of situation where you had to create Generic Data Source? What is difference between Time Stamp, Calend. Day and Numeric Pointer. Which one is most common to select?
    3.     I read somewhere that Generic Data Source does not have Setup Table. I thought that you have to have Setup Table in order to load transaction Data otherwise you will lock the Application Tables. Where am I going wrong im my thinking please?
    4.     What are steps in terms of IP before, under and after Delta Initialization. I belive that you can do two ways:
    Full Update - Initialize Delta Process (without Data Transfer) u2013 Delta Update  or
    Initialize Delta Process (with Data Transfer) u2013 Delta Update
    Am I right? What is most common method and why?
    5.     If you want to add a filed in Data Source after 6 month using it, you want to do it without re-init Delta Queue. You add field in RSA6, then provide info for ABAP to populate new filed (info u2013 name of Data Source, Extract Structure, field added, name of Application Table which contains the field). How does it work now as there is no SetUp table it has been deleted after Initialisation? How does Delta Queue know that it is going to receive data which has been  expanded by one field or it may does not need to know at all?
    THANKSSSSSSSSSs

    Hi,
    1. If you have Data Source a Flat File e.g. Excel file I know that you have to create Data Source at BW side. How do you upload updates, by selecting Delta Update when executing next Data Load? Do you ever u201Cconvertu201D this Excel file into Application Tables to become SAP Source
    Once you create Datasource for A flat file extraction then it is file source system specific hence you cont change to Application table source Data source
    In info package you can change the source as application server instead of desktop no need to change the DS
    2. Can you please give me example of situation where you had to create Generic Data Source? What is difference between Time Stamp, Calend. Day and Numeric Pointer. Which one is most common to select?
    When we don't find any standard extractor then we can go for Generic(if i want information sales along with finance information in a data source then generally we dont get standard one hence we can go for generic DS)
    Check the below link for More about generic DS .
    http://wiki.sdn.sap.com/wiki/display/BI/Generic+Extraction
    for Delta capturing you can use
    Timestamp(if the table has time stamp filed  so it can stamp the last changed record in that table hence it is easy to get delta based on the time stamp)
    Calday- (If the table doesn't have the Timestamp filed then search for Calday where you can stamp the delta based on the date when documents are changed )
    Numericpointer : If the table doesn't above both then we go for this option where you can the numeric value change stamp )
    3. I read somewhere that Generic Data Source does not have Setup Table. I thought that you have to have Setup Table in order to load transaction Data otherwise you will lock the Application Tables. Where am I going wrong im my thinking please?
    Generic datasource nothing but we extracting data directly from the database table without any interface between the application/systems
    4. What are steps in terms of IP before, under and after Delta Initialization. I belive that you can do two ways:
    Full Update - Initialize Delta Process (without Data Transfer) u2013 Delta Update or
    Initialize Delta Process (with Data Transfer) u2013 Delta Update
    Am I right? What is most common method and why?
    Correct
    5. If you want to add a filed in Data Source after 6 month using it, you want to do it without re-init Delta Queue. You add field in RSA6, then provide info for ABAP to populate new filed (info u2013 name of Data Source, Extract Structure, field added, name of Application Table which contains the field). How does it work now as there is no SetUp table it has been deleted after Initialisation? How does Delta Queue know that it is going to receive data which has been expanded by one field or it may does not need to know at all?
    Once you add the new field to structure(DS) you will get the data as on date onwards not historical data hence what is the concept of setup table  ( delta records come from the Delta Que not from the setup table )
    If you want histaric data to new field then you need to setp table deletion ...etc...
    Hope it is clear..
    Regards,
    Satya

  • Generic Data Source Creation Problem....URGENT!!!!!!!!!!!!!

    Hello BW Experts...!
    I need to create a Generic Data Source out of a table called VBSEGK... I was trying in the usual way with RSO2 , but when I press save button after entering the Table name the following error is coming:
    " Invalid Extract Stucture Template VBSEGK of Data Source ZPARK_01"
    and when I click on the error message its showing
    Diagnosis
    You tried to generate an extract structure with the template structure VBSEGK. This operation failed, because the template structure quantity fields or currency fields, for example, field DMBTR refer to a different table.
    Procedure
    Use the template structure to create a view or DDIC structure that does not contain the inadmissable fields.
      VBSEGK is a standard table , so I cant change the Table structure. Can any one give me some idea of how to create Data source with this table ASAP ASAP please....
         Please ask me questions if you didnt get this...
    thanks

    Hi Harish,
    Please check OSS note 335342.
    Symptom
    The creation of a generic DataSource which is extracted from a DDIC view or a transparent table terminates with error message R8359:Invalid extract structure template &2 of Datasource &1
    Other terms
    OLTP, DataSource, extractor, data extraction, generic extractor
    Reason and Prerequisites
    The problem is caused by a program error.
    Solution
    The table or view used for extraction must have currency and unit fields within the field list of the table/view for all currency and quantity key figures.Otherwise the consistency of the extracted data cannot be ensured.To make the generation possible, check whether all key figures of your table refer to unit fields that are within the field list.If this is not the case, there are two possibilities:
    1. A table is used for extraction.
    Create a view in which you have a currency / unit field contained in the view for each key figure. The currency / unit field from the table must be included in the view to which the key figure actually refers.
    Example:
    Field WKGBTR of table COEP refers to the unit field WAERS of table TKA01. In a view that contains field COEP-WKGBTR, table TKA01 and field WAERS must be included in the field list.
    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
    If it is not possible to obtain a unit of measure from a table on which the view is based, the unit field must be deleted from the field list.
    A note in relation to the upward compatibility of BW-BCT InfoSources: BW-BCT 1.2B was not yet able to check units and currency fields. For this reason, it is possible that InfoSources which were defined in the source system as of BW-BCT 1.2B must be redefined as of 2000.1 in the manner described above. However, checks are absolutely essential for the consistency of the extracted data.
    Regards,
    Praveen

Maybe you are looking for

  • How to delete a condition record

    hi, i maintained one condition record and deleted it in chane mode i.e using t.code vk12. Again if i make new condition records the system showing "validity dates are over lapping". wt is it?

  • Skype has stopped working - message on windows 8.1 desktop version

    This error message comes out everytime I start the desktop version... The app from windows store though works , but I do not enjoy using it at all... the desktop client was always far better.  The problem rose when I upgraded my windows 8 to 8.1 , an

  • Connect to Oracle 7 from 10g

    Hello, I am trying to build a data transfer interface between two servers. Server 1: Oracle 7.x running on Unix server Server 2: Oracle 10g running on Windows 2003 server. Gateway Server: ???? on Windows XP(resides in the same network as Server 1). I

  • Power pc g5 or intel imac with compressor

    This is my present computer: iMac 3.06GHz Core 2 Duo (2008 model) 4 gigs of 800 mhz ddr2 sdram (this is the max ram for this computer! ) NVIDIA GeForce 8800 GS 512 MB Hard drive: 465 gig (I use mainly external drives for editing) I use this mainly fo

  • Outlook 2010 subscribed internet calendar recurring event problem -- missing recurring events

    Hi -- In Office Outlook 2010, I'm subscribed to my wife's google calendar via subscribed internet calendars.  A few weeks ago, I noticed that recurring events weren't appearing.  I deleted the subscription, and resubscribed, with no luck.  (All her o