Issue in generic data source creation in BW

Hello all,
I am trying to create Data source in BW through TABLE,this time I am getting error messae.....
...."Invalid extract structure template YECMCRDAT of DataSource YECMCRDAT"
Message no. R8359
Diagnosis
You tried to generate an extract structure with the template structure YECMCRDAT. This operation failed, because the template structure quantity fields or currency fields, for example, field CRED_LIM refer to a different table.
Procedure
Use the template structure to create a view or DDIC structure that does not contain the inadmissable fields.
PLease any one give me solution for this.
Thanks In Advance...
Sekhar Reddy.

Hi Sekhar,
as the message suggests, it seems that your source of data for gen DS in BW is a table, which is missing with a unit for one of the key figure.
To avoid this inconsistency, create a view and add the unit feild to this alson with the table.
Also, mention the reference to this unit from the standard units table of BW.
Ultimately, try creating Gen DS over this view.
You need to also ensure that the unit is passed with a value during transformations, else this will show an ERR in the report output.
Naveen.A

Similar Messages

  • 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 Issue in Generic data source

    HI all ,
        I have a HR generic data source .which extracts only two records ffrom the source for so many days during delta.
       I checked in RSA3 .It shows 16000 records nearly. I did init without data transfer and then delta,still it picks onlys same 2 records .
       Delta setting in RSO2 is Numeric pointer with new status for changed records with field name as"cheque number"
       In BWdatasourceExtraction tab--Deltaprocess is AIE After Image by extractor.Iam not able to choose any other delta process type as it is built from R/3 .I think because of this process type.
    anybody faced the same problem ..  I tried many ways..  please guide me how to solve. this issue.

    HI Prashanth,
                        I checked RSA7 now and I found  the problem .In RSA7 the pointer for cheque number is 991749. The delta record created has cheque number 005409 which is lesser than the pointer ,thats why the record is not picking i guess.
           now ,If this is the case ,How can I give delta field.The generic datasource is built on only one table PAYR ,and having cheque number and other fields  as keys in the table PAYR.Date is not a key in the table. Please help how to proceed
    Thanks
    Rgds
    Pradeep

  • 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

  • Issue in generic data source????

    Hello friends,
    I am creating a generic data souce using Fm. once i checked in RSA3 data so its coming only zeros(00.00)
    even i checked in Fm side values are coimng correct .
    so could you pls advice me how to rectify this issue
    Regards
    Wasem

    in RSA3
    When Data REcords/Cells = 100000
    Disply ectr.calls= 100
    So im getting below screen shot values like :39040
    but when i select data record/cell = 10000
    disply ectr.calls = 100
    so, im getting below screen shot values like : 316
    but when replicate in bw side
    im getting in psa side values only 316 not 39040
    Pls advice what is main problems?
    regrds
    Wasem

  • 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

  • Generic Data Source issue in CRM.

    Hi Guru's,
    Generic Data Source with Table gave an issue "invalid Extracture structure template XXXXX of Data source  XXXXX"
    Generic Data source with Function Module gave an issue "Units field VOLUM_U for field VOLUME of DataSource ZTEST_XYZ is hidden"
    Generic Data Source with View configured successfully but the data is not coming in Extractor Checker.
    Three tables has taken in to consideration. I think there might be some issue with Join condition.
    Can any one through light on this incident.  Your help will be appreciated.
    Thanks in Advance.
    Venkat.

    Hi Praveen,
    yes you are right.  I took reference field as VOLUM_U.
    I have created Generic Table.  Do you need me to take same table in the reference Table.
    Thanks
    Venkat.

  • Detla Infopackage Creation problem at Generic data source

    Hi Experts..
    In 7.0 BI I'm loading data in infoCube through generic data source ( type Table View). I have loaded the data first time ie Full mode. Now I would like to change update mode full to Delta. i have tried to create new infoPackage with DELTA Update MODE but this option is not available. as i have used Transformation and DTP to fetch the data in Info cube. in data souce Generic Delta is enabled at Numeric pointer.
    your help will highly appreciable.
    Regards
    kamal
    INDIA

    >
    kspurohit wrote:
    > Delta specif field kept blank with option Numeric Pointer...
    You have to fill in the Delta-Specific Field Name for any of the options.  Numeric pointer is usually a document number that is guaranteed to increment with every change.  This would not be a good choice for documents that can be changed after initial creation, or for number ranges that are buffered across application servers (unless you can set the safety limits to compensate).
    After that, create and run an init InfoPackage, then you will be able to create a delta InfoPackage.

  • Generic Data Source - Delta Issue

    HI,
    I have created a generic delta source (transactions) with the following options: -
    -  using the extract structure
    - enabled the generic delta with billing creation date as delta specific field
    - calendar day selected
    - safety interval upper limit = 1 calendar days
    - additive delta
    carried out the folling steps in BW
    - Full update from above generic data source (all records)
    - Init upload without data transfers (1 record)
    - Delta enabled
    Now, even though i am editing / modifying any record on my own extract strucutres record on R/3 side, it is not getting reflected in RSA7 (delta queue).
    P.S:- I have modified one of the record from full update.
    Ideally the modified record should be shown in RSA7, but i am not getting the same.
    can you please help me
    Thanks
    Raj

    yes,
    I also thought the same point. But the records modified / edited yesterday are not appearing in today's delta. I am wondering why.
    Is it anything to deal with FULL / INIT without deta transfer / DELTA procedure..
    Regards
    Rajiv

  • FUNCTION MODULE CREATION FOR GENERIC DATA SOURCE

    Hi BI gurus,
    I am creating function module for generic datasource. For that I followed below mentioned steps
    Steps
    1.     Created s structure with the fields that needed.
    2. Created FM by copying the standard Function module
    " RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
    Y or Z .
    3. IN SE37 ->Your Function module name -> Change, In table tab given structure
    name by deleting the associated type given in “E_T_DATA “.
    And inserted the required code given below
          PROGRAM 'ZHU_BALANCE'.
    *& Report  ZHU_BALANCE
    TABLES: VEKP, VEPO.
    DATA: BEGIN OF T_DISPLAY,
          DATE   LIKE SY-DATUM,
          EXIDV  LIKE VEKP-EXIDV,
          LGORT  LIKE VEPO-LGORT,
          WERKS  LIKE VEKP-WERKS,
          END OF T_DISPLAY.
    DATA: ITAB_DISPLAY LIKE TABLE OF T_DISPLAY.
    DATA: WA_ITAB_DISPLAY LIKE LINE OF ITAB_DISPLAY.
    SELECT VEKPEXIDV VEPOLGORT VEPO~WERKS
           INTO CORRESPONDING FIELDS OF TABLE ITAB_DISPLAY
           FROM VEKP AS VEKP INNER JOIN VEPO AS VEPO
             ON  VEKPVENUM = VEPOVENUM
             AND VEKPWERKS = VEPOWERKS
           WHERE VEKP~VSTEL = SPACE
             AND VEKP~VEGR1 = '401'
             AND VEKP~VPOBJ = '12'
             AND VEKP~STATUS = '0020'
             AND VEPO~VEPOS = '000001'.
    LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
    WA_ITAB_DISPLAY-DATE = SY-DATUM.
    MODIFY ITAB_DISPLAY FROM WA_ITAB_DISPLAY TRANSPORTING DATE.
    ENDLOOP.
    WRITE:/ 'DATE', 20 'EXIDV', 40 'LGORT', 60 'WERKS'.
    ULINE.
    LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
    WRITE:/ WA_ITAB_DISPLAY-DATE, 20 WA_ITAB_DISPLAY-EXIDV , 40 WA_ITAB_DISPLAY-LGORT, 60 WA_ITAB_DISPLAY-WERKS.
    ENDLOOP.
    While checking the function module it’s populating the syntax error as
    THE TYPE “SRSC_S_IF_SIMPLE” IS UNKOWN. (Though this is commented in program)
    So pls suggest
    Regards,
    praful

    hi indira,
    thanx for ur reply we have created the funcion module successfuly it is also showing the output correct. But when we put that function module in the generic data source and try to extract data in RSA3 it shows the correct output of function module but with the msg ' 0 entries found in customer enhancement' and therfore zero records in the display list.
    is there any correction or steps to be followed in data extraction
    pls suggest
    regards,
    praful

  • Issue with Safety Upper limit for CALDAY Field for Generic Data Source

    Hi,
    I have given Upper limit as 1 for Calday field of one of the Generic Data Sources.
    I have got a doubt here.If today's load got failed and I will rerun the load next day.So Will that new run captures all 2 days records.
    Can any one advise me on this.
    Regards,
    K.Krishna.

    Hi,
    A one-day upper safety interval determines that an extraction run today, only fetches records up to yesterday (if the pointer has the day before yesterday date, the extraction comprises from the day before yesterday to yesterday).  This is meant to avoid missing records that were about to be persisted in the database when the delta extraction is running but whose date was determined in memory before the delta started.
    If pointer has today date value and you want to load data from today and yesterday, you should use a lower safety interval.  Take into account that this could reload data previously extracted.  Therefore, only InfoProviders with overwritting features (DataStores or InfoObject master data) should be used as targets of this extractions.
    You can find further details at:
    http://help.sap.com/saphelp_nw04/helpdata/en/37/4f3ca8b672a34082ab3085d3c22145/content.htm
    I hope this helps you.
    Regards,
    Maximiliano

  • Generic Data source Issue with Infoset

    Hi Experts,
    I have created generic data source with Infoset.As per customer requirement, I have to modify join condition between tables from equal to left outer join in infoset.I have tested scenario successfully using infoset query. I have done below steps in generic data source to check the same result.
    1.Modified Join condition in infoset and generated the infoset again.
    2. Generated generic datasource in RSO2.
    When I check same scenario in RSA3, I am getting 0 records.Please help me out.
    Thanks in Advance.
    Regards,
    Raju

    Thanks Sriram for your reply.
    I am using same user id for both SQ02 and RSA3.
    I have Two infosets with same join conditions.I have created SQVI report with First infoset and Generic data source with second infoset.
    I have changed join condition second infoset which is used for generic data source.I am still getting same number of records in both SQVI report and in RSA3.I have validated records by considering few records to cross check again.
    The change in join condition doesnt show any impact in changing the number of recrods.
    I  have activated extraction structure in RSA6 but still getting same records.
    Thanks,
    Raju

  • Generic Data Source issue

    Hi Friends,
    We have Generic Data Source (Delta Capable) which is based on Function Module.
    For this Data source I am looking for
    1) Relevent Outbound Queue Name in SMQ1
    2) Relevent R3 Back ground Job which is responsible for data load from Out Bound Queue To Delta Queue
    3) Relevent Setup Table in R3 system
    4) Is procedure for filling setup table for this generic data source is same as 2LIS Application Specific Data sources?
    Thank you.
    Tony

    1) Relevent Outbound Queue Name in SMQ1
    Generic datasources dont have outbound queue.
    2) Relevent R3 Back ground Job which is responsible for data load from Out Bound Queue To Delta Queue
    No outbound queue hence no job.
    3) Relevent Setup Table in R3 system
    No Setup table for generic datasource.They fetch directly from R3 tables either directly or via function module.
    4) Is procedure for filling setup table for this generic data source is same as 2LIS Application Specific Data sources?
    No set up tables for generic datasources.
    Generic data sources with delta have delta queue only.
    Hope this helps.

  • Generic data source issue very urjent

    HI All,
    this is regarding Generic datasource in Quality system . I have to change selection and Hide options i mean i have make check for generic data source. can you please let me know if anybody knows how to change.
    i tried to change it's showing dissable only, is there any other process
    regards
    kk

    Hi Friend,
    You are not supposed to do any changes in the quality system.Even system doesnt allow you to do the respective changes.The screen appears u like disable mode.
    Go to Development system and do the respective changes in the datasource.
    Selct the required datasource and choose edit mode option . Then select the required fileds.*After that save the datasource and succesfullu doing changes in the datasource move the respective datasource into qualitysystem.
    Hope it will helpful for you.
    Cheers,
    Chandu.
    Edited by: chandu guduru on Aug 28, 2008 1:53 PM
    Edited by: chandu guduru on Aug 28, 2008 2:02 PM

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

Maybe you are looking for