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

Similar Messages

  • Delta Option for Generic Data Source

    Hi ,
    My requirement is Delta Option for Generic Data Source. This Data Source is getting Extracted from Function Module.
    For this requirement I have followed below steps.
    1) Added the Field (On which Delta gets enabled) to the extract structure by using Append Structure
    2) Enabled Delta On this Filed.
    3) If I try to save the Data Source,  I have gone to a screen where I am able to see 4 coloumns
    a) Selection
    b) Hide Field
    c) Inversion
    d) Filed Only known in User Exit.
    By default Hide Field and Filed Only known in User Exit check boxes have been checked.
    Would you please tell what is the use of Filled Only known in User Exit check biox.
    As My data source is getting the data buy using the Function Module, Shall I uncheck this Check Box.
    Thanks and Regards,
    K.Krishna Chaitanya.

    Hi Krishna,
    The "FIELD" should be checked if we write any enhancement in CMOD, so that system can identify that this particular field has enhancement written to it,
    But even in real time systems i usually find that even though we check the "FIELD" or not , there is no effect .
    So Checking "FIELD" or not will not impose any isses .
    Regards,
    Krishna

  • Delta On CALDAY Filed for Generic Data Source

    Hi,
    I have enabled delta option on CALDAY Field for Generic Data Source.
    I thought of giving Safety Interval for Upper Limit as 1 and Safety Interval for Upper Limit as ZERO.Would you please advise me on this, This fetches all delta data?.
    Would you please advise me on this.
    Thanks and Regards,
    K.Krishna Chaitanya.

    Hi Krishna,
    If your delta enabled field is Date then try this,
    Safety Interval Upper Limit                                                                     Calend. Days
    Safety Interval Lower Limit                         1                                        Calend. Days
    Then test your delta, will get good result.
    I created 4 GDS with this safety interval and working fine for me.
    regards,
    Kiran

  • 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

  • Delta for Generic data source.

    Hi,
    I have created a generic data source for which I have taken the change data as generic delta in CRM4.0.  But the problem is delta is not getting initiated.   like we are not getting any records in delta.  Kindly guide me what else i have to do to get this delta
    Thanks
    Naveen

    Hello Naveen,  
    What is the delta method you have used, is it Time stamp or ALE Pointer?
    See this SAP Note 539547 Generic delta with date does not work
    Please see these docs as well
    [How to Create Generic Delta|How to Create Generic Delta]
    [How to Create Generic Data Sources which use the Delta Queue (NW7.0)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b68b99-022e-2a10-999d-c4dc9ec24a59]How to Create [Generic DataSources Which Use the Delta Queue (NW2004)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf]
    Thanks
    [Chandran|http://chandranonline.blogspot.com/]

  • Update types in infopackage for generic data source

    Hi,
    Suppose if we create a generic data source,then
    1) What are update types availbale in infopackage for tha generic t data source?
    2) Is there any link between,the selection on the
                               i)  type delta type select
                               ii) the field selected i.e like timestamp,cal month,numeric pointer.
    3)do we have delaa option at info package level?
    I think you understood my doubts.
    Regards
    Naresh.

    hi siva raju,
    yes our's is bi 7.0.but there are two DTP with the same optoion of DELTA.It pull the data from ds to info cube.
    one more thing,how are the delta records picked from the r/3 to bw?its through Infopackage Am i right?
    If possible please tell me the entire flow of data goes for a generic  data source.
    i.e
    how to load data?
    how to set delta?
    how do we load deltas to bw.?
    Regards
    Naresh.

  • Delta method preferable for generic data source

    Hi All,
    I'm working on APOBW ,i need to pull primary sale data into apobw .So ABAP er created a program to pick the data from tables vbrp,vbrk,knvv,mara,marc,t179 and populating into a transparent table.I have created a generic data source using that ztable and then loading data to infocube in APOBW.I need to pull data daily twice.I have fields data and time in the Z table.
    Please suggest me how to pull the delta data and let me know if DSO is needed in between before loading to Infocube.
    Thanks.
    VS

    Hi,
    For Enabling Delta, while creating the Generic Datasource you have an option of Enabling it to be Delta capable. Select Generic delta at the top and then you would see 3 options of how you want to get your delta records.
    It is based on
    1) Timestamp
    2) Numeric Pointer
    3) Calendar Day
    Depending what you have in your Table, you can select on what your delta would be based.
    Regards,
    forum

  • Time Stamp Delta field for Generic Data Source

    Hi Experts,
    I have a requirement to create a Generic Data Source based on view. This view on PA0006 and PA0105 tables.
    Will you please suggest me which field i have to take as delta field.
    Thanks In Advance.

    Also, make sure that whenever a new record is created in those tables, field AEDTM is getting updated with system date else you will miss new records in delta unless there is a change in those newly created records.
    Regards,
    Gaurav

  • Creation of Generic Data source using function module based on the program which was used to created ABAP report

    Hi,
    We have a requirement to create a BI report based on plant maintenance report. The plant maintenance report is based on a ABAP program with complex logic. My question is i want create a Generic Datasource using Function module and can I include the logic(Abap Program) that is used for plant maintenance report in the function module? Please share your thoughts.
    Thanks,
    Ravi

    Hi,
    Step1-Create a table structure which you need to create same as the fields you require in you data source.
    Step 2-create a custom abap program and inside that call the Client abap program with the selections as required and save the result data in some table
    Step 3-create infoset query.In the infoset query give your table structure name and  program name which you developed.
    Step4-create data source on top of that query

  • Function module creation for IDOC processing...

    hi Experts,
                 i want to create a function module for idoc processing..
    message type: zashpmnt
    idoc type : shpmnt05
    plz tell me which standard FM is used... and tell me what changes i want to do in it....
    Tnx in Advance..

    Hello,
             If you are trying to process an Outbound IDoc for the SHIPMNT05 IDoc Type with an Extension, you can use the IDOC_OUTPUT_SHPMNT Function Module which is assigned to SHPM Process Code.
           In Addition, since you have an IDoc Extension, you are required to populate the Custom Segment / Fields. For this, there is a Customer Function / Exit called EXIT_SAPLV56K_002 which you can use it for adding your Custom Segments to the IDoc ZSHPMNT05.
           If you are writing code in this exit, make sure to create a Project in CMOD.
           Also, ensure that you've made the assignment in WE82 with the Message Type , IDoc Type & the Extension.
           For Inbound, if you would like to Create a Custom Function Module, you can follow the Naming Convention Z_IDOC_INPUT_SHPMNT for which you are required follow the below Steps.
    1. Register the FM as Inbound FM in BD51 T-Code.
    2. Assign the FM to IDoc Type & Extension in WE57.
    3. You'll need to Create a Custom Process Code in WE42 in which you are required to make add your FM.
    4. Maintain Partner Profiles in WE20.
    5. Have the Process Code Migrated to the Testing Environment as creation of Custom Process Code is a Customizing Activity and it requires a Customizing Request to be created / Migrated.
    6. Define the Parameters as defined in the Standard Inbound Function Modules such as IDOC_INPUT_ORDERS , IDOC_INPUT_DELVRY etc.
    Thanks and Regards,
    Venkat Phani Prasad K

  • Delta upload  for generic data sources.

    Hai All,
    I tried as per SAP online document , but still i am not getting the result i.e delta upload from the BW side. Here i explained  everything what i did.
    In R/3
    1. I have created a table with 3 fields SNO, SNAME, DOB
    2. Then i created some entries in that table.
    3. With Tr Code RSO2 i created one data source. Here i took Master Attribute Datasource
    4. In generic delta i took the Generic field as DOB. and Time stamp and upper limit 10 sec.
    In BW side
    1. I have replicated the data sources under application compone in which i have creatred in R/3..
    2. Then i activated that data source and created infopackage for that.
    3. in the selection i have specified 01.01.1900 to 01.01.9999
    4. First i made  Full Update then i get all the records from R/3.
    5. In R/3 i have created 2 more entries.
    6. In Infopackage UPDATE Tab i have selected the Initilize Delta Process ( Initialization with Data Transfer).
    For this i am getting the error message as follows.
    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 Extractor .
    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.
    Here i closed the all things in R/3 as per the note mentioned above. Still it is giving the error message.
    If i select the Intilization Delta Process( Intilization with out Data Transfer) then i am getting the option Delta Update . I selected this Delta update and scheduled but no data is coming.
    Please help.
    Regards
    Prashanth K

    Hai  Sachin,
                       I am getting the problem at PSA only. Actually that is connected to ODS Object only. Until unless we don't get the delta data into PSA we can't proceed futher. So please help. I am working on NW 2004S.
    Regards
    Prashanth K

  • Delta field for generic data source based on view EKBE

    Hello,
    I am creating a generic datasource based on table EKBE. Can anyone please tell me what field should I use for delta. Is it BUDAT(Posting Date in the Document) or CPUDT(Day On Which Accounting Document Was Entered).
    Thanks for the help.
    Praveen

    Hello Ajeet Singh,
    Thank you very much for the reply.
    I will go ahead with CPUDT.
    BUDAT is the date which can be changed. I can change the date in system and chances are it will not pick in delta.
    CPUDT is the date on which document was created/changed.
    Thanks,
    Praveen

  • Error in creation of Generic Data source

    Hi,
          I am trying to create generic datasource from view i am getting the following error Invalid extract structure template Z_VIEW of DataSource Z_DATSRC guide me in this regard
    Regards
    Prakash B.

    Dear Prakash,
    What are the tables you are using for a View , if you are using Quantities and Amount fields, make sure you include Reference fields for it , the error that you get is because of that . first create your view ,check it and activate, then go to RSo2 , create the Datasource, by giving the view .Try to give your problem more eloboratively with all technical details..so that you can get immediate solution.
    Thanks,
    krish

  • 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 delta settings

    HI
    i have to create delta for Generic data source based on 2 fields like "created on" and "changed on" fields.
    how to set this
    try avoid numeric point & Whit out using function module
    and what is the safety interwell (Please use simple words)

    Hai Sudha,
                Safety inteval is nothing but for ex you have updated your data from R/3 to bw at 11 am If client want the data in between 11.1min to 11.4min the records which are going to present in between the 1 min to 4 min that records only can updated if and ony if your data source is going to make as an generic delta.
                                                                   bye.

Maybe you are looking for

  • Found a fix for this:  Unable to open Itunes Store on windows XP

    Hi,      I have been searching for this all weekend.  For the last month we have been unable to connect to Itunes store.  We can connect to the Internet and also access to itunes itself.  I have phoned Apple as well as our service provider.  No luck

  • How do my wife and i share just one music account?

    Ive had an iphone and an itunes account for a long time, and now that im married my wife also has an iphone, but with a seperate itunes account. i have thousands of songs, she has only one album. it seems dumb to me to have to purchase all that music

  • Print action in WebDynpro runtime (Visual Composer)

    I have added in toolbar for the table the button and as action have specified system action "Print". But in WebDynpro runtime it does not work unlike Flash (there is no pop-up window with a choice of printers). How to solve this issue?

  • MacBook Air Restore Problem

    Hi I wanted to do a clean restore of my MacBook Air 2014, but I am not able to choose the right partition to install, only Restore partition is shown, but of course not available for installation. I see MacintoshHD disk un Disk Utility, but IMHO ther

  • Corrupt hard drive, new photos

    My imac recently crashed, and was diagnosed with a corrupt hard drive, but I am most worried about my photos. Is there any way that I can access my iphoto threw another computer? Or online? Please help