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

Similar Messages

  • Selection in the Generic Data Source does not work

    Hi gurus,
    I have some problem with the selection in the Generic Data Source.
    I have created a view as a base of a Generic Data Source.
    This view is based on several table; i.e.: VBUK-VBELN (Sales Order number), VBAP-ERDAT (creation date of Sales Order), VBAP-POSNR (Sales order item), VBAK-BSTNK (Customer Purchase order number).
    In the view, some join conditions have been defined: VBUK-VBELN = VBAK-VBELN, VBUK-VBLN = VBAP-VBELN.
    I want to extract the Sales Order number, Sales order item and Customer Purchase order number for the Sales order created on the previous year.
    On the Generic Data Source, I select VBELN (Sales order number) and ERDAT (creation date of sales order) as selection.
    However, when I run the extractor checker (RSA3) on this Generic Data Source, the selection does not work at all, i.e.:
    eventhough I restricted the Sales order number and/or the creation date of sales order, the generic data source ignores the selection criteria and extract ALL data.
    Does anyone ever have similar problem? Did I miss some step in the Generic DAta Source creation? How to fix this problem?
    Thanks a lot in advance.
    Best regards,
    Fen

    Hi Fen,
    Just check what is the output you get for the same selection for the view you created.
    Bye
    Dinesh

  • Data source is not activated!!!!

    Hi Friends,
    Currently we are workig on BI 7.0 version and trying to upload flat file data. We have created Datasource for Flatfile source system and activated ( 100% sure about activation). But when we trying to give selections for the Fields in the infopackage screen it was saying the above said Datasource is not in Active version ( Even thoug that was activated properly).
    We are wondering about this in the data souce tree it was cleary showing as activated , but in the infopackage it was stating that is not activated.
    Please look into this one and give your valuable suggestions.
    Thanks in advance...

    Solved by own

  • Error - When Activating Generic Data source in BW DEV

    Hi,
    I am working in BI 7.0
    I created a Generic Data source
    I had checked in RSA3 , it is showing records too.
    i replicated the Datasource in BW
    Datasource is available in BW
    Then I try to activated the Datasource
    because
    when i try to create tranformation for the data source then
    It will show this message (and transformation is not created)
    <b>Source RSDS ZCOPC_C10 GDVCLNT110 does not exist</b>
    My Data source name is ZCOPC_C10 for source system GDVCLNT110
    then I will try to Activated the Data source First
    then also it will show the Error like this
    Post Processing/Checking the Activation for DataSource ZCOPC_C10 GDVCLNT110
    <b>&
    Error when activating DataSource ZCOPC_C10                     GDVCLNT110</b>
    and the
    DataSource ZCOPC_C10 (GDVCLNT110) could not be activated
    can some body help me to solve this problem
    sure you can get the points
    Thanks
    prasanna

    Hi Oscar,
    The Data source is not Active in BW, I had checked in Data source defination.
    when I activate the Data source .
    <b>I received the Message / Error</b>
    Activation of Objects with Type DataSource
    Saving Objects with Type DataSource
    Internal Activation (DataSource )
    Preprocessing / Creation of DDIC Objects for DataSource ZCOPC_C11 GDVCLNT110
    Save DDIC object /BIC/CAZCOPC_C000020000001 (Application Structure for ZCOPC_C11 GDVCLNT110)
    Save DDIC object /BIC/WCAZCOPC_C000020000001 (Application Structure for ZCOPC_C11 GDVCLNT110 - T)
    Save DDIC object /BIC/CAZCOPC_C00002000 (Segment Structure for ZCOPC_C11 GDVCLNT110 - Appli)
    Save DDIC object /BIC/CCZCOPC_C000020000001 (Character Structure for ZCOPC_C11 GDVCLNT110)
    Save DDIC object /BIC/WCCZCOPC_C000020000001 (Character Structure for ZCOPC_C11 GDVCLNT110 - Tab)
    Save DDIC object /BIC/CCZCOPC_C00002000 (Segment Structure for ZCOPC_C11 GDVCLNT110 - Chara)
    Save DDIC object /BIC/B0001051 (PSA for ZCOPC_C11 GDVCLNT110 Itemization)
    Writing of object catalog entries (TADIR)
    Object TABL /BIC/CAZCOPC_C000020000001 written to the ObjectCatalog (TADIR)
    Object TTYP /BIC/WCAZCOPC_C000020000001 written to the ObjectCatalog (TADIR)
    Object TABL /BIC/CAZCOPC_C00002000 written to the ObjectCatalog (TADIR)
    Object TABL /BIC/CCZCOPC_C000020000001 written to the ObjectCatalog (TADIR)
    Object TTYP /BIC/WCCZCOPC_C000020000001 written to the ObjectCatalog (TADIR)
    Object TABL /BIC/CCZCOPC_C00002000 written to the ObjectCatalog (TADIR)
    Activate all Dictionary objects ( 6 ):
    All DDIC objects have been activated / deleted
    <b>Post Processing/Checking the Activation for DataSource ZCOPC_C11 GDVCLNT110
    Error when activating DataSource ZCOPC_C11                     GDVCLNT110</b>Deletion of Unused Dictionary Objects ( 6)
    All DDIC objects have been activated / deleted
    Deletion of Object Catalog Entries (TADIR)
    Object TABL /BIC/CAZCOPC_C000020000001 deleted from TADIR
    Object TTYP /BIC/WCAZCOPC_C000020000001 deleted from TADIR
    Object TABL /BIC/CAZCOPC_C00002000 deleted from TADIR
    Object TABL /BIC/CCZCOPC_C000020000001 deleted from TADIR
    Object TTYP /BIC/WCCZCOPC_C000020000001 deleted from TADIR
    Object TABL /BIC/CCZCOPC_C00002000 deleted from TADIR
    All unused DDIC objects have been deleted
    Thanks
    prasanna

  • 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 and InfoPackage Data Selection

    Hello,  I'm trying to extract data from a generic data source (composed of a view joining 4 tables) using the Data Selection Criteria in an infopackage.  Sometimes the selection criteria is ignored and more data is pulled than expected.  The number of selectable items in the generic data source has been reduced (in case this was an issue) and for a short time the infopackaged pulled the expected number of records.  Then another change was made to the generic data source and the problem returned.  In any case, the transported generic data source does not work in the target system either.  I'm not sure what is causing this to happen.  Any ideas???  BW 3.5.
    Regards,
    Sue
    Message was edited by: Sue and Enrique
            Ramesh P

    Hi,
         Some of the datasources will not have  default Infopackages for them.You can create the infopackages according to the requirement.There is no big deal for creating Infopackages.You can go ahead creating them.
    Regards
    Karthik

  • Urgent: Add field in generic data source

    Hi,
    Could anyone please help me out in resolving the issue to add field from different table in generic datasource.
    How can I add it in R/3 data source when a function module was created in ABAP to generate fields from PLPO table?
    Whatz the changes has to be done at BW side to map the added field?
    <u>Requirement</u>
    1) Need one more field in the extractor. Field name is PLAS-LOEKZ. Initially client wanted me to add PLPO-LOEKZ which I added, now he needs the same fields from both the table (PLAS and PLPO).
    2)The name of the extractor/structure is ZBW_ROUTINGS_OPERATION
    3)Now, we need to add this field (LOEKZ from PLAS) in the function module as well. FM name is: Z_BW_ROUTE_OPERATION_EXTRACTOR. This will be in a SELECT query. We need to add this field in the SELECT statement.
    Testing will be done in following steps
    1)     Go to Transaction RSA3.
    2)     Enter the data source “Z_BW_OPERATION_ATTR”(not sure about the name though, but it should end with OPERATION_ATTR)
    3)     Enter the following details:
    EXTTY – I
    PLNNR – 50000032
    PLNTY – N
    4)     Now execute (F8) the transaction.
    5)     Click on “Display List”
    6)     In the output, we should be able to see these 2 columns(PLAS-LOEKZ) and (PLPO-LOEKZ)
    Please send your valuable suggestions to resolve the issue ASAP as its damn urgent.

    Hi,
    Here is an overview of the solution -
    Use T.Code SE11> ZBW_ROUTINGS_OPERATION. Add your new field (PLAS-LOEKZ) to this table, check, save, activate. Edit your function module, SE37> Z_BW_ROUTE_OPERATION_EXTRACTOR and add your code to look up the correct value of this field LOEKZ from the table PLAS, check, save, activate. (Note that SAP provides a sample function module you can use as a template and customize for your requirements. This sample function module is RSAX_BIW_GET_DATA_SIMPLE.)
    Your Generic DataSource Z_BW_OPERATION_ATTR  is already created, you don’t have to change any settings here. Just regenerate it in RSO2. Now test the extraction for the DataSource in RSA3.
    Hope this helps
    Sandeep

  • 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

  • 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

  • Delta field not enabled for selection in  generic data source

    Hi
    I have created a generic data source for the table VBFA....and for the delta pick up i have put the delta option as CALDAY on the field ERDAT...and  i have  selected that field for the selection option. but after i made it  delta enabled the selection option got disabled.
    Now when i check the info package delta selection tab that date column is not apperaing.
    But when i have to run the info package for the first i dont want all the data as it has a huge set of data.
    I wanted to  take only this months data.
    So is there any option to be set to enable this selection in info package.
    please suggest.
    Regards
    Shilpa

    Hi there,
    That's the stardard behaviour. If you use delta based om ERDAT, that field won't be available for selecting.
    You could for example try to build a view over VBFA, and let the field ERDAT there and another field, for example ZERDAT (that is just another alias for ERDAT). Create the delta based onyour view over the field (ERDAT), but you can still control the restrictions over the extractore with your ZERDAT.
    I don't know if this is possible, this is only an assumption.
    Another option could be first to create an extractor based on the table VBFA but without delta, that field ERDAT would be available. Do your full data restricting it, and after that, change your datasource to use deltas based on ERDAT. It will be unavailable than, but since you've already loaded previous full data, you could than use your delta like it is. But here, remember, your deltas will bring new and change data based on ERDAT. If it brings delta based on changed data over ERDAT to a record that you didn't brought over your full (only some data), it will be incorrect records.
    Also just an assumption, did not try it.
    Diogo.

  • Urgent ---- loading error through Generic Data Source

    Hi, Bi Gurus
    I am trying DATA MARTING i.e. I wanna extract data from RSMONICTAB nd RSREQDONE tables of BW(3.5) into a ODS in same BW(3.5)
    means from tables RSMONICTAB and RSREQDONE tables I created a view
    with required fields
    then I created Generic data source on it.
    --> I created coresponding Inoobjects --> ODS.
    -->I loaded this ODS from that Generic datasource.
    And I am getting this error?????????????????????
    what to do???????????????????????????????????????
    Error Message
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Service API .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.

    Hi,
    thanx again
    I did as u said (loading upto PSA).
    job's Status in SM37 FINISHED, Duration 8 seconds.
    <b>JOB LOG</b>
                                                                                    Job started                                                                                00         516
    Step 001 started (program RSBATCH1, variant &0000000004563, user ID CHAKRAVARTYS)              00           550
    Start InfoPackage ZPAK_AVA2JBPAT43JP7DYC87X6CFAD                                              RSM1          797
    Synchronized transmission of info IDoc 1 (0 parallel tasks)                                    R3           414
    tRFC: Data Package = 0, TID = , Duration = 00:00:02, ARFCSTATE =                               R3           038
    tRFC: Start = 2007.10.11 01:29:13, End = 2007.10.11 01:29:15                                   R3           039
    InfoPackage ZPAK_AVA2JBPAT43JP7DYC87X6CFAD created request REQU_CWHVP35OSN90MVCAOSB2JNUWC     RSM1          796
    Job finished                                                                                00           517

  • Generic Data Source delta is not extracted

    Hi,
    There is a problem in extracting the delta records using Generic Data Source. Delta records ( New / Modified records ) are not posted in the RSA7.
    I'll Explain you the Scenario I have done. Created a generic data source in R/3 using view. In the view there is a field Sales Order No. I have enabled the delta update for this field. In the generic delta i have chosen delta type as Numeric pointer.
    Extracted the entire record using full update and after initializing the Delta, it extracts the delta record well ie. it only extracts the sequence of Sale Order No. First I extracted nine records(i.e 10001 to 10009) using full update. again I entered a record in underlying table with sale order no as 10011-10013. It extracts those records into BW system. Then again I made an entry in the table with sales order no 10010. But the record is not extracted. Even though I tried of specifying safety lower limit as -3. Still it not extracting the record(10010).
    And what if I posted a value of sale order 10014 with the same. what should I do?? Help on this plz.
    --Durai.S

    Hi SVS,
    Thanks for your reply.
    I followed this in my scenario. But I don't understand why it is not extracting? even I specified the safety limit of upper and lower values in the generic delta.
    Here the below explanation shows that the delta record can be extracted even  if the pointer value is greater than the posted value.
    Numeric pointer (last extracted value 10011; Data in underlying table (Max value = 10025) )
    Data would be extracted from a min-value of 10010 (lower limit adjusts the last counter 10011 by specified value u2013 1)
    max-value of 10020 (after adjustment for upper safety limit u2013 by 5). The current pointer would now indicate 10020 in
    RSA7.
    --Durai.S

  • Generic Data source on VBFA Table

    Dear Experts,
    I would liike beuild a generic data source on VBFA table. Here i want to have all the fields of the Table.
    Now my questions are.
    1.I want to a Delta Update to BW, on want fields I should choose Delta to get all the changed records as well as the newly created records.
    2. Do I need to build the Data source using a Function module.
    3.Along with this I have a requirement to get the Sales Org, Company Code, Maetrial group information. How can I achieve this ( from which all tables I can get this information).
    4. What is the frequncy of the table VBFA update.
    5. generally what would be the number of Records for a Delta Update to BW.
    Your suggestions are appreciated.
    Regards,
    Ganesh Thota.
    Moderator message: a topic for the BI forums, but please invest own research effort before asking there.
    Edited by: Thomas Zloch on Jul 15, 2010 12:56 PM

    Hi,
    you need to create fm for the extraction as you have 2 delta relevant fields erdat and aedat to get the new and the changed records.
    Siggi

  • Regarding: Loading data from R/3 To BI for a Generic Data source

    Hi Every,
    Need Help Urgent
    I had created a Generic data source with function Module as the data source, in Rsa3 it is working fine.
    1-> I had replicated the data source to Bi then i had created a info package and then I executed the same. when it is getting the data and it is show in the request monitor (Number of records )  but the status is not changing from Yellow to Green.
    Status in Step by step analysis is every step is green Except "Data selection successfully finished ?"  (RED)
    2-> Then I had seen the Back ground job in Source system which is executing still. I waited for it for a long time but nearly 30 min.
    (I had done Steps one and 2 number of time by activating replicating the data source and so on, but still their is no change in it)
    3-> Then I had canceled that back ground job with the help of BASIS (as i feel that it is something going wrong).
    4-> I feel that their is some thing wrong in the Code of Extractor.
    Please Help...............
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  ZBI_MATGRIR OPTIONAL
    *Need to get the data only for two Gl account which are fro material purchase while MIGO
    *G/L Account Numbers: 0010502001 0010502002
    data: E_T_DATA1 type table of ZBI_MATGRIR.
      RANGES: R_BUKRS FOR BSIS-BUKRS,
              R_BUDAT FOR BSIS-BUDAT,
              R_GJAHR FOR BSIS-GJAHR,
              R_HKONT FOR BSIS-HKONT.
      DATA: L_S_SELECT TYPE SRSC_S_SELECT.
      STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
               S_COUNTER_DATAPAKID LIKE SY-TABIX,
               S_CURSOR TYPE CURSOR.
    *Declare
      TYPES: BEGIN OF TY_FAGL,
        RBURS TYPE FAGLFLEXA-RBUKRS,
        RYEAR TYPE FAGLFLEXA-RYEAR,
        DOCNR TYPE FAGLFLEXA-DOCNR,
        BUZEI TYPE FAGLFLEXA-BUZEI,
        DOCLN TYPE FAGLFLEXA-DOCLN,
        PRCTR TYPE FAGLFLEXA-PRCTR,
        SEGMENT TYPE FAGLFLEXA-SEGMENT,
      END OF TY_FAGL.
      DATA: GT_FAGL TYPE TABLE OF TY_FAGL,
            GS_FAGL TYPE TY_FAGL.
      IF I_INITFLAG = SBIWA_C_FLAG_ON.
        CASE I_DSOURCE.
          WHEN 'ZFI_GL_M4'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE E009(R3). ENDIF.
         this is a typical log call. Please write every error message like this
            LOG_WRITE 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      I_DSOURCE   "message variable 1
                      ' '.                 "message variable 2
            RAISE ERROR_PASSED_TO_MESS_HANDLER.
        ENDCASE.
        APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    Fill parameter buffer for data extraction calls
        S_S_IF-REQUNR    = I_REQUNR.
        S_S_IF-DSOURCE = I_DSOURCE.
        S_S_IF-MAXSIZE   = I_MAXSIZE.
        APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
      ELSE.
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF S_COUNTER_DATAPAKID = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BUKRS'.
            MOVE-CORRESPONDING L_S_SELECT TO R_BUKRS.
            APPEND R_BUKRS.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GJAHR'.
            MOVE-CORRESPONDING L_S_SELECT TO R_GJAHR.
            APPEND R_GJAHR.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BUDAT'.
            MOVE-CORRESPONDING L_S_SELECT TO R_BUDAT.
            APPEND R_BUDAT.
          ENDLOOP.
    *GRIR Inventory (RM/Stores/Spares/FG)   10502001
    *GRIR Services & Others Payable   10502002
          R_HKONT-SIGN = 'I'. "i_t_select-sign.
          R_HKONT-OPTION = 'BT'." i_t_select-option.
          R_HKONT-LOW = '0010502001'.
          R_HKONT-HIGH = '0010502002'. "i_t_select-high.
          APPEND R_HKONT.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
          OPEN CURSOR WITH HOLD S_CURSOR FOR
           SELECT BUKRS
                  AUGBL
                  ZUONR
                  BELNR
                  GJAHR
                  BUZEI
                  BUDAT
                  HKONT
                  BLART
                  MONAT
                  BSCHL
                  SHKZG
                  DMBTR
                  WAERS
                  FROM BSIS
                 INTO TABLE E_T_DATA
                  WHERE BUKRS  IN R_BUKRS
                    AND GJAHR IN R_GJAHR
                    AND BUDAT IN R_BUDAT
                    AND HKONT IN R_HKONT.
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA1
                   PACKAGE SIZE S_S_IF-MAXSIZE.
        IF SY-SUBRC <> 0.
          CLOSE CURSOR S_CURSOR.
          RAISE NO_MORE_DATA.
        ENDIF.
    DELETE E_T_DATA WHERE BLART NE 'WE'.
          SELECT BUKRS
                 AUGBL
                 ZUONR
                 BELNR
                 GJAHR
                 BUZEI
                 BUDAT
                 HKONT
                 BLART
                 MONAT
                 BSCHL
                 SHKZG
                 DMBTR
                 WAERS
                 FROM BSAS
                 into table   E_T_DATA
                 WHERE BUKRS  IN R_BUKRS
                   AND GJAHR IN R_GJAHR
                   AND BUDAT IN R_BUDAT
                   AND HKONT IN R_HKONT.
               FETCH NEXT CURSOR S_CURSOR
                  APPENDING CORRESPONDING FIELDS
                  OF TABLE E_T_DATA
                  PACKAGE SIZE S_S_IF-MAXSIZE.
    append LINES OF e_t_data1 TO E_T_DATA.
    DELETE E_T_DATA WHERE BLART NE 'WE'.
    ENDIF.                             "First data package ?
        DATA: F_YEAR TYPE BKPF-GJAHR.
        DATA: F_PERI TYPE BAPI0002_4-FISCAL_PERIOD.
    IF E_T_DATA[] IS NOT INITIAL.
       SELECT RBUKRS
              RYEAR
              DOCNR
              BUZEI
              DOCLN
              PRCTR
              SEGMENT
              FROM FAGLFLEXA
              INTO TABLE GT_FAGL
              FOR ALL ENTRIES IN E_T_DATA
           WHERE RYEAR = E_T_DATA-GJAHR
               AND DOCNR = E_T_DATA-BELNR
               AND RLDNR = '0L'
               AND RBUKRS = E_T_DATA-BUKRS
               AND BUZEI = E_T_DATA-BUZEI.
             WHERE RYEAR = E_T_DATA-GJAHR
               AND DOCNR = E_T_DATA-BELNR
               AND RBUKRS = E_T_DATA-BUKRS.
         AND DOCLN = E_T_DATA-BUZEI.
    ENDIF.
    LOOP AT E_T_DATA.
          IF E_T_DATA-SHKZG = 'H'.
            E_T_DATA-DMBTR = E_T_DATA-DMBTR * -1.
          ENDIF.
          CLEAR: F_YEAR.
          CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
            EXPORTING
              COMPANYCODEID       = E_T_DATA-BUKRS
              POSTING_DATE        = E_T_DATA-BUDAT
           IMPORTING
             FISCAL_YEAR         = F_YEAR
             FISCAL_PERIOD       = F_PERI.
          DATA: V_DOC(6) TYPE C .
          CLEAR: V_DOC.
          V_DOC =  E_T_DATA-BUZEI.
          IF V_DOC  IS NOT INITIAL.
            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING
                INPUT  = V_DOC
              IMPORTING
                OUTPUT = V_DOC.
          ENDIF.
         aS PROFIT center is not updated in all the lines in Bsis
          READ TABLE GT_FAGL INTO GS_FAGL WITH KEY  RYEAR = E_T_DATA-GJAHR
                                                    DOCNR = E_T_DATA-BELNR
                                                    RBURS = E_T_DATA-BUKRS
                                                    BUZEI = E_T_DATA-BUZEI.
          IF SY-SUBRC = 0.
            E_T_DATA-PRCTR = GS_FAGL-PRCTR.
            E_T_DATA-SEGMENT = GS_FAGL-SEGMENT.
          ENDIF.
    *As we are using the amount DMBTR in which the amount
    *will be in company code currency that is Local currency
    *group currency always in the main company code currency.
          CONCATENATE   F_YEAR '0' F_PERI INTO E_T_DATA-FISCPER.
          MODIFY E_T_DATA. " from gs_bsis transporting dmbtr fiscper.
          CLEAR: E_T_DATA.
        ENDLOOP.
          S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
       ENDIF.

    Hi,
    Please check the log of same jobs for last week and check is today its taking more time,also check with basis is their any backup initited at same time.
    Moreover until the background job failed automatically its difficult to imagine what is the exact issue.
    Thanks,

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

Maybe you are looking for

  • Why do I need to pass params. to getConnection when using OracleDataSource?

    Hi, I've been experimenting with Tomcat 5.5 and using Oracle proxy sessions. After many false starts, I finally have something working, but I have a question about some of the code. My setup: In <catalina_home>/conf/server.xml I have this section: <C

  • Color using only one CPU?

    When rendering with Color it seams that it using only one CPU, according to "top". Is it possible to make use of all CPUs?

  • Macbookpro a1297 boot problem

    I bought an old macbook pro 17 inch a1297 and later found that it did not have hard drive. So I installed a new blank hdd n installed mountain lion. Laptop works fine but with a boot problem. I always have to disconnect the battery connector from the

  • PowerMac won't reboot from CD

    I'm trying to boot with the DiskWarrior CD, get to the gray apple screen and then the monitor freezes and some rogue pixels distort in the gray background. If I try to start in safe mode, I get stuck at the gray screen and the fans ramp up. Any thoug

  • Annoying Mail problem I've had for so long, please help!

    Hi everyone, Since as long as I can remember, whenever I attach a JPG, or EPS in Mail to a message for instance, if I send the email to a PC user, they always tell me that there wasn't an image attached??! Now I always have 'save windows friendly att