Function modules transfer  repeated records in Generic data source

Hello Friends ,
I have created a FM to extract the data from fields of  tables BKPF and BSEG .
This functional module is used in the Generic data source.
Now if I check in RSA3 for this Generic data source,
the records are coming 10 times instead of a single time.
Means one records at data base table is showing ten records in RSA3.
Any help please.
Regards,
Amol.

Hi Amol,
  Can you please check the Fetch statement that you are using after opening the cursor and selecting data into it. It should be in the format below.
FETCH NEXT CURSOR S_CURSOR APPENDING CORRESPONDING FIELDS OF TABLE                                                 E_T_DATA PACKAGE SIZE S_S_IF-MAXSIZE.
Also are you incrementing data package ID or not by using the statement  
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
Regards,
Prakash B

Similar Messages

  • Duplicate records in generic data source

    Hello,
    We have created a generic data source using a database view joing two tables MARA and MBEW.
    When we run the view in our DEV server, we get perfectly fine data. Now when run the same view in QA, we get duplicate records.
    Is it any thing to do with the CLIENT as in QA, we have 2 clients with same data.
    MARA     MANDT     =     MBEW     MANDT
    MARA     MATNR     =     MBEW     MATNR
    This is what I mention in JOIN Conditions.
    Hope I could explain my issue properly. Please HELP !
    Abhishek

    Please check the possibility of Multiple records for a given material in MBEW,as same material can be in multiple valuation areas
    More over you will be executing extraction in one client so it is very unlikely that you see data of the other client
    In dev normally we do not have good data to test so it seems like design is correct in dev

  • Error in generic data source by using Function Module

    Hi Guru's,
                    I'm wokring generic extraction with Function module.When i'm saving my data sources iam getting errors stating that
    UNITS FIELD "WAERS" FOR FIELD "WKGBTR" OF DATA SOURCE  XXX
    UNITS FIELD "OWAER" FOR FIELD "WOGBTR" OF DATA SOURCE  XXX
    Thanks in advance..........
    Regards,
    Vijay
    Edited by: vijay m on Feb 1, 2008 5:03 PM

    Khaja,
    Units field WAERS for field WKGBTR of DataSource xxx
    is hidden
         Units field OWAER for field WOGBTR of DataSource ZBWVIEW is hidden
    This is the msg which i got........

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

    Hi,
    I am trying to extra delta record from generic data source, but I am not getting any record in RSA7.
    I have done the following setting for generic delta source
    - customized table from VBRK
    - Deltas Specific field (ERDAT) - Date on which record was created
    - Time Stamp (As i need to run this delta process every one hour)
    - Safety interval upper limit = 900 Sec.
    - Safety interval lower limit = 0 Sec.
    - Additive Delta for target info cube.
    Can you please help me to debug this issue.
    Thanks

    Hi Rajiv
    Can you give more details on the load( Loading cube or ODS)?
    When was the INIT done?
    Regards,
    Monika

  • 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

  • Generic Data Source with Function Module data mismatch in BI

    Hi All,
    I'm using Generic Data Source with Function Module, When I execute the Function Module (Which I have Created), I'm getting 16000 records and when run extractor(in RSA3) im getting different no.of records(infact they are more no.).
    when I run the InfoPackage in BI im Getting more no. of records than what i got executing the function module..
    and single record is divided into 2 records in BI side(not all the records), how can it be possible???
    is there anything Im missing to explain you my issue???
    if understood please help me out.
    Thanks n Regards,
    ravi.

    the datasource frame work starts the function module several times.
    1. the initialization
    2. the serval times, until you "raise no_more_data".
    check you coding: have you refreshed necessary internal tables.
    Sven

  • Generic Data Source with Function Module data mismatch

    Hi All,
    I'm using Generic Data Source with Function Module, When I execute the Function Module (Which I have Created), I'm getting 16000 records and when run extractor(in RSA3) im getting different no.of records(infact they are more no.).
    when I run the InfoPackage  in BI im Getting more no. of records than what i got executing the function module..
    and single record is divided into 2 records in BI side(not all the records), how can it be possible???
    is there anything Im missing to explain you my issue???
    if understood please help me out.
    Thanks n Regards,
    ravi.

    HI rkiranbi,
    1. FIrst you excute function module according to your paramers, you will get some records. then goto tcode RSA3 --> excute
    Provide your Data source name and under setting we have options like Data records/calls, Display extractor calls and selections --> fields .
    in that options you have to increase the values. and then you have to pass paramers in RSA3 according to your function module
    selections in SE37. Now you will get equal values in both functin module selection and RSA3 Selection. if it fail means  you need to
    check coding logic in function module. 
    2. if your  are getting wrong values in BI System then check with
                  1. compare with PSA data and data target data (here you need to check with characterstic as well as keyfigures)
                  if you find any mistake you need change the coding in function module according to client requirement.
                  2. compare data with RSA3 and bi report data or data target data.
                                 check it properly above steps, you will get solution.
    thanks and regards,
    malli

  • 3 generic data sources or only one function module

    Hi all,
    I have 3 custom tables
    1. ZCOUNTRY (giving the link between code entity and country)
    1. ZCURR (giving the link between code entity and currency)
    1. ZYTPE (giving the link between code entity and type entity)
    I shall  fill an info object which has as fields code entity, country,currency and type entity.
    I have 2 solutions i suppose:
    1. Create 3 generic data sources based on the 3 tables.
    2. Create a generic data source by using the function module.The function module will populate an extract extracture from data from these 3 tables.
    What is the best solution?What is the advantage of the chosen solution?
    Thks a lot.

    Hi,
    Generic Extractors are based on View/Table or Fn Module or Infoset Query i.e all the extractors created via RSO2. The extractors you create for the customers would generally be generic extractors only. SAP has some other extractors like your LIS, LO Cockpit which are based on different extraction method.
    Generic extractors are of 3 types:
    1. Based on table/view
    2. Based on Infoset Query
    3. Based on Function module
    The first 2 are straight forward extraction where you would either use a standard SAP or custom table/view or Infoset query to extract data.
    However if you have to get data from more than 1 table and also incorporate some logic then you would use a fn module extractor. It is like a program where you would code using ABAP and have all your logic incorporated.
    Check this blog for more info on fn module extractor:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Raj

  • Generic Data source on Function module

    Hi All,
    We are working on generic data source based on a function module for the first time and we do not know how to start with.
    Our requirement is to fetch mode of communication field from SRM. We have identified a function module in SRM which does this job. But when we try to create a generic data source on this function module it is throwing an error.
    Are the import parameters for a general function module and function module for a BI generic data source different?
    If so could someone please guide us in creating the function module so that we can create a generic data source on top of it.
    The function module should serve the same purpose as the function module BAPI_BUPA_ADDRESS_GETDETAIL.
    Thanks,
    Shravani

    Shivani,
    My suggestion would be creating Z-program to store the values in a custom table and use this for extraction.
    Further if still want to use the FM itself, post the error details you are getting.. or try to analyse the FM and find the base table so that you can directly use in extraction.
    Hope this helps,
    anil

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • Which  Function Module is used for converting the DATE in BDC

    HI,
    Which  Function Module is used for converting the DATE Format in BDC for Uploading purpose please help me.

    data : date like sy-datum.
    data : odate(10) type c.
    date = sy-datum.        " in format YYYYMMDD
    CALL FUNCTION 'CONVERSION_EXIT_PDATE_OUTPUT'
      EXPORTING
       input         = date
    IMPORTING
       OUTPUT        = odate         .
    write:/ odate.  "in ur format '.
    1.
    In ur itab make a field for date as 10 characters and use this Fm to store the date .
    2. Pass the date as the charcter field to the screen and now check .

  • Function Module to get BEGIN and END date of a month?

    Hello everybody,
    Is there any function module to get BEGIN and END date of a month
    GIVEN EITHER THE CURRENT SYSTEM DATE or MONTH?
    Regards,
    Sanghamitra.A.

    hi
         CALL FUNCTION 'PA03_PERIODDATES_GET'
            EXPORTING
              f_abkrs               = p_abkrs1
            IMPORTING
              f_permo               = wf_permo
              f_current_begda       = wf_begda
              f_current_endda       = wf_endda
            CHANGING
              f_current_period      = wf_pabrp
              f_current_year        = wf_pabrj
            EXCEPTIONS
              pcr_does_not_exist    = 1
              abkrs_does_not_exist  = 2
              period_does_not_exist = 3
              OTHERS                = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    this is the function module to get the first date and last date of a particular month
    if u have any doubts ask
    regads
    karthik
    reward points if useful

  • Function Module to find 3 months Old Date

    Is there any function module to find out 3 months old date for a todays date....Pls Help me......

    Hi,
    use function module : J_1H_CAL_DATE_IN_INTERVAL
    use code as below :
    data : date type sy-datum, out_date type sy-datum.
    date = '20070702'.
    CALL FUNCTION 'J_1H_CAL_DATE_IN_INTERVAL'
      EXPORTING
        date            = date
        days            = '00'
        months          = '03'
       SIGNUM          = '-'
        years           = '00'
    IMPORTING
       CALC_DATE       = out_date.
    write :/ out_date.
    Sandeep Kaushik
    Message was edited by:
            Sandeep Kaushik

  • RFC enabled function module to insert , update and delete data in a ZTABLE

    friends..
    Is there any standatd RFC enabled function module to insert , update and delete data in a custom database-table (Ztable)?
    if not how can we create it? plz give me the details steps..
    what are the import, export parameters and how to code and process it.. (for example: suppose fields in the table is Emp_Id, Name, Address. I need to develop a RFM which does the 3 tasks, insert update delete in the same RFM)
    Thanks and Regards

    create a f.n mod in se37 and make it rfc enabled.  ur import parameters are Emp_Id, Name, Address and TASK and u can have an export parameter like result which gives the status of the update. based on task u can insert using keyword INSERT....and update using UPDATE or MODIFY and delete using DELETE. these keyword are not compelte with syntax but need to refer the SAP documentation.

Maybe you are looking for

  • MSS iView Errors

    Hi all.  We're getting a Portal Runtime error in our production environment when trying to view certain MSS iviews, such as Absence Days, Personal Data, Detail View Attendances, Company Properties, Emergency Contact, etc. The error looks something li

  • GL account Assisngment in GL Account

    Hi Expert, Please help me how to assign a GL account to Exies duty. Please  help me for the confiuration also. Thanks in advance. Ankur

  • Significance of service-profile property?

    Hi all,       i would like to know the significance of profile property of a portal service? The service that I created in NWDS doesn't show up in <b>service configuration</b> of portal , if there's no service-profile property in my portalapp.xml. I

  • Huge Sized download taking place at port 8530 between clients and WSUS\SUP of secondary site

    Hi Guy's Need a solution to the issue, the SCCM 2012 clients under a secondary site { Secondary site with SUP\WSUS } are downloading 200Mb + data at port 8530. This seems quite abnormal. Need to know answer of below 1- Actual size of catalog what cli

  • EBS - Is it possible to post to different co codes ?

    Hello all, I would like to know if its possible to post to different company codes through the Electronic Bank Statement. We have a sales co 1000, and a parent co. 2000. All the sales is done by co code 1000 and the payments will be received by the C