Delta enable custom func mod data source for Delete record also

Hi,
We have a custom function module data source and the base table on which data is extracted has two time stamp fields ( created on, changed on ) and the data source is delta enabled with the timestamp field.
It works aboslutely fine in Full and initial mode and load data into a target ODS.
Even in delta mode we believe that it works in most of the cases( only change of an existing records and creation of new records). However in the case of delete, we have issues.  When the data is deleted from the base table we completely loose the record and can’t advice the BW which one to delete.
In order to bypass this we have analyzed the cdhdr/cdpos table and found out that that we can compute the Key field value that was deleted from the last delta run and can include it as such in the data that are extracted.
Big Question is by what mechanism we let the BW know that this is a delete, so that the existing record( with the same key) is actually deleted from the ODS. I have seen some fields like 0RECORDMODE doing things in SAP delivered  content. But not sure how we can get this work for our custom data source. 
Please let us know whether you need any clarification on this. I shall be prompt to provide points who can resolved this showstopper issue for us.
Thanks

Hi Aruna,
I have tried to explain : "Big Question is by what mechanism we let the BW know that this is a delete"
Now to create a DataSource, you will have to include the information from the Tables as you mentioned:
1: CDHDR
2: CDPOS
In this table you can check the CHANG_ID as the field which gives the information of
1: Overwrite
2: Add
3: Delete
Now when you create the Function Module, make a field similar to this and read the R/3 Table field CHANGE_IND and pass the relevant Indicators to the BW in the Transfer Rules
Like
CDHDR refers 'D' for delete but In BW 'R' denotes Deleted image. So the FM should take care this and pass the blank for all and 'R' for the documents with 'D' for each line item along with the other required fields.You will have to use an ODS in this case.
note: Plz check the logic of Change Ind "E". I am not sure of this type.if you want to delete 'E' then pass the value as 'R' to the BW system for documents with 'E' CHANGE_IND.
Hopes i made it clear.
regards
Happy Tony
Points == Thanks

Similar Messages

  • Customized delta data source for deleting data record in the source system.

    Hello Gurus,
           there is a customized delta data source,  how to implement delta function for deleting data record in the source system?
    I mean if there is record deleted in the source sytem, how to notify SAP BW system for this deleting change by this customized delta
    data source?
    Many thanks.

    Hi,
    when ever record deleted we need to write the code to insert the record in  Z table load this records into BW in a cube with similar structure.while loading into this cube multiply the Keyfigure by -1.
    add this cube in the Multi Provider.The union of the records in the orginal cube and the cube having deleted records will result in zero vale and will not be displayed in report .
    Regards,

  • Custom code dll as a data source for an SSRS report

    I'm trying to create a report which relies on using some custom code written in VB.net. I am using the custom code to access the Server Management Objects SMO API in MSSQL 2012. I am able to supply an MSSQL object name (a database table
    for example)and then return a list of dependant objects using the dependency walker class (stored procedures, triggers, UDF's, other tables etc.) which rely on the parent object if you will. I am able load the results into a dataset in the custom code. My
    question is how can I get that dataset to be consumed as a data source and appear in my report. I've read many articles on how to use scripts to supply values for various report property settings. I just haven't seen an example of using a dll
    to supply a dataset. I am assuming it is possible. Any thoughts or advice would be appreciated. Cheers     

    Hi mdmck,
    According to your description, you want to create an SSRS report with custom code as data source, right?
     To use custom code in Reporting Services, we need to add a reference to your custom assembly, create a new CodeGroup for your custom assembly, and then grant full trust permissions. For detail information, please refer to the following steps:
    Open the report that will reference the custom assembly.
    On the Report menu, click Report Properties.
    In the Report Properties dialog box, click the References tab.
    Under References, click the ellipsis (...) button that is next to the Assembly name column header.
    In the Add References dialog box, click Browse.
    Locate and then click the custom assembly. Click Open.
    In the Add References dialog box, click OK.
    In the Report Properties dialog box, click OK.
    If the custom assembly requires more permissions than the default Execution level permissions, we need to create a new CodeGroup for your custom assembly, and then grant full trust permissions.
    Here are relevant threads you can reference:
    https://social.technet.microsoft.com/Forums/en-US/c297bddc-c33c-4386-b284-41c1d87f37c6/custom-dlls-in-ssrs-reports?forum=sqlreportingservices
    https://social.technet.microsoft.com/Forums/en-US/27de3f46-5174-480d-b4d1-5e32772dae35/ssrs-2005-custom-code-shared-data-source-connection-string?forum=sqlreportingservices
    For more information about How to use custom assemblies or embedded code in Reporting Services, please refer to the following document:
    https://support.microsoft.com/kb/920769?
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Creation of a generic extractor and data source for the FAGLFLEXA table

    Hi All,
    Need to create a generic extractor and data source for the FAGLFLEXA table to support AR reporting. This table contains the necessary profit center information to perform LOB reporting against the AR data.
    Please advice on how to do this.
    Regards, Vishal

    Hi Vishal,
    Its seems a simple a work out.
    1.Go to RSO2 & choose the relevant option ie. whether you want to create Transactional DS, Master Data DS or Text DS.
    2. Name it accordingly & then create.
    3. Give description to it & then give table name FAGLFLEXA.
    4. Save it & activate. If you need it to be delta enabled then click over Delta & you can choose accordingly.
    If you still face some problem then do mail me at [email protected]
    Assign points if helpful
    Regards,
    Himanshu

  • Data source for MBEW

    hi,
    is there any data source for TABLE : MBEW ? or do i have to create a generic data source for this

    Hi,
    The DataSources delivered by SAP with the BI Content and any DataSources delivered by partners or customers in their own namespace are available in the delivery version (D version) in the SAP source system. If you want to transfer data from an SAP source system to a BI system using a DataSource, you must first copy the data from the D version to the active version (A version) and make it known in the BI system.
    Use these steps to activate standard data sources.
    1.To transfer and activate a DataSource delivered by SAP with Business Content, in transaction SBIW in the source system    choose Business Information Warehouse à Business Content DataSources or Activating SAP Business Content àTransfer Business Content DataSources.
    In The following figure displays the DataSources in an overview according to the application component.
    2.Select the nodes in the application component hierarchy for which you want to transfer DataSources into the active version. Do so by positioning the cursor on the node and choosing Highlight Subtree.
    The DataSources lying under the subtree and other subtrees are selected.
    3. To check for differences between the active and delivery versions of the DataSources, choose Select Delta.
    DataSources for which differences were found in the check (for example, due to changes to the extractor) are highlighted in yellow.
    4.To analyze the differences between active and delivered versions of a particular DataSource, select the DataSource and choose Version Comparison. The application log contains further information regarding the version comparison.
    5.To transfer a DataSource from the delivery version into the active version, select it in the overview tree using the button Highlight Subtree and choose Transfer DataSources.
    If an error occurs, the error log appears.
    Regardless of whether data has been successfully transferred into the active version, you can call the log by choosing Display Log.
    6.To provide the active version of the DataSource in the connected BI systems and to enable data extraction and transfer, replicate the DataSource(s) with a metadata upload to the BI system.
    Regards,
    Shiva.

  • Std data source for sales Order

    Hii Experts,
    I have one issue related to SRM data source. I want to know the standard SRM data source for the Sales Order Report for Vendor in BI.
    Thanks in advance
    Neha

    hi Arun,
    i experienced many times when we 'forget' to maintain in transaction bwa5, no delta in queue.
    with transaction bwa5, check in column 'active' for your data source 0CRM_SALES_ORDER_I, if not active,
    choose the data source and click button 'copy datasource' (activate icon).
    following I quote the explanation from doc
    BWA - BW Adapter will check changes when delta-init has been done and fill it to queue (rsa7).
    CRM-Specific Extraction Using the BW Adapter 
    Initial upload (initial load): BW requests business data for a specific CRM object from the CRM database. 
    <b>Delta upload: When the delta process has been initialized, the BW Adapter checks changes that have been made to existing objects and forwards them to a specific queue. </b> 
    <u><b>Tasks of the BWAdapter </b></u>   
    Relevance check: Is the business document relevant for the BW upload (for example, to extract only sales orders with a specific status)? 
    Completeness check: Adds information from the database to those BDocs that contain changed data (network field communication). 
    Mapping module: Responsible for assigning the BDoc structure to the BW DataSource. The same mapping module (assignment logic shipped by SAP and customer-specific BAdI implementation) is used for both the initial upload and the delta upload. Table SMOXHEAD contains the name of the mapping module. Table SMOXRELP contains the mapping metadata. 
    Service API: BW component on the CRM side, which calls the object-specific extractor to retrieve data in packages. After the mapping process, the service API receives the data in extraction structure format and saves it in the BW delta queue.

  • Creating the text data source for 0OI_LIFNR(TD: Carrier (Number of vendor a

    Hi
    Have to create the text data source for this characteristic. Basically it is the same as 0Vendor here.
    I want to make it delta enabled.
    Am creating it on the view BIW_LFA1T(same as 0vendor)
    Can anyone advise what can I use to make it delta enabled without any code.
    Can I use numeric pointer like the 0Vendor_text.
    Many Thanks and regards,
    Kate.

    when defining a data source through the admin web page, don't add '!' in front of the password.
    ! is needed only when configuring a data source in the mapViewerConfig.xml file.

  • Standard BI Data Source for FMGLFLEXT

    Hello Friends,
    The standard data source for the Financials New Legder is 0FI_GL_10 General Ledger: Leading Ledger Balances, which fetches the data from the FAGLFLEXT Table using the Extract Structure FAGL_EXTSTRUCT_LEAD. However there has been a migration of the FAGL table to FMGL table. And now the FAGLFLEXT is no longer populated with any FI postings data. And the new table which is getting the update is the FMGLFLEXT Table. GL Migration from FAGL to FMGL is a standard procedure. However I am not finding any Standard Data Source to fetch the data from the FMGLFLEXT Table.
    Can anybody let me know if there is any standard datasource for this or should we create a custom data source to fetch the data from FMGLFLEXT using the FMGL_EXTSTRUCT_LEAD Extract Structure.
    Appreciate help in this regard.
    VB

    Hello,
    The requirement is resolved by the following:
    If you want to use your own totals table (in this scenario FMGLFLEXT) as your basis, you first have to create the corresponding extraction structure using transaction FAGLBW01. In this way, all fields of the totals table are transferred into the extraction structure. Further In the OLTP system, call up transaction FAGLBW03 and Configure the DataSource and save your settings.
    http://help.sap.com/saphelp_nw70/helpdata/en/be/928f40f5767d17e10000000a1550b0/frameset.htm
    Regards,
    VB

  • Standard Data Source for FMGLFLEXT Table

    Hello Friends,
    The standard data source for the Financials New Legder is 0FI_GL_10 General Ledger: Leading Ledger Balances, which fetches the data from the FAGLFLEXT Table using the Extract Structure FAGL_EXTSTRUCT_LEAD. However there has been a migration of the FAGL table to FMGL table. And now the FAGLFLEXT is no longer populated with any FI postings data. And the new table which is getting the update is the FMGLFLEXT Table. GL Migration from FAGL to FMGL is a standard procedure. However I am not finding any Standard Data Source to fetch the data from the FMGLFLEXT Table.
    Can anybody let me know if there is any standard datasource for this or should we create a custom data source to fetch the data from FMGLFLEXT using the FMGL_EXTSTRUCT_LEAD Extract Structure.
    Appreciate help in this regard.
    VB

    Hello Sasi and Kirun,
    Thanks for your reply,
    The requirement is resolved by the following:
    If you want to use your own totals table (in this scenario FMGLFLEXT) as your basis, you first have to create the corresponding extraction structure using transaction FAGLBW01. In this way, all fields of the totals table are transferred into the extraction structure. Further In the OLTP system, call up transaction FAGLBW03 and Configure the DataSource and save your settings.
    http://help.sap.com/saphelp_nw70/helpdata/en/be/928f40f5767d17e10000000a1550b0/frameset.htm
    Regards,
    VB

  • While creating the Data source for Sql server am getting this error?

    Hi i new to Power BI sites and office 365,
    For my first step 
    1. i have successful creaeted Gateway in Office 365
    2.Now i have creating  the Data source for that gateway using Sql server R2
    3.While Creating the Data source using the Corresponding gateway i have given and next phase set Credentials  phase i have noticed one pop up window and it will shows me like
    Data source Settings and  below in that window it will show's u the things like 
    Datasource Name.
    Loading......
    Credentials type:
    Privacy Level:
    Failed to verify parameter
    I will get this results finally  ,so hw should i achive this probelm ,Please let me know if any one knows
    So kindly give me the proper answer for this.
    Regards

    Any suggestions for Chinnarianu?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Problem with delta update on customised export data source.

    Hi all BW gurus,
    I have created several customised export data sources in the R/3 system. And I have made use of the utility program <Z_CHANGE_DELTA_PROCESS> to update the ROOSOURCE table.
    While this can result in being able to do initial update (instead of full update), the subsuquent delta update is not working.
    In RSA7, the datasource is with green light and in RSA3, the extractor can extractor data out of it.
    Does anybody have some idea on this?
    I heard that there is a way to change the Business Transaction Event (BTE), but I don't quite understand how this is performed. And wonder if this is the only way out. To me, the triggering point would be the same, meaning the InfoPackage would be executed, then call the extractors in R/3 to extract the delta update in order to load into the InfoCube.
    And how do others do for executing delta update of the customised data source?
    Thanks a lot!!
    The utility program of <Z_CHANGE_DELTA_PROCESS>:
    =================================================
    report z_change_delta_process .
    *P_DATAS DataSource
    *P_DELTAP Delta Process for DataSource
    parameters:
      p_datas type roosource-oltpsource,
      p_deltap type roosource-delta.
    tables:
      roosource.
    data:
      ls_roosource type roosource.
      if p_datas(2) ne 'Z_'.
       message 'The DataSource needs to begin with ''Z_''.'  type 'E'.
      endif.
    select single * from roosource into ls_roosource
           where oltpsource = p_datas
           and objvers = 'A'.
    if sy-subrc eq 0.
       ls_roosource-delta = p_deltap.
       update roosource from ls_roosource.
    message 'The DataSource has been updated successfully.' type 'I'.
    else.
       message 'The DataSource entered is not valid, try again.' type 'E'.
    endif.

    Doesn't anyone have any idea on this topic?
    Appreciate for all the help. Thanks.

  • Data source for the concurrent program 'Send Separate Remittance Advices'

    Hi All,
    We have requirement to develop a custom report to send the remittance to the vendors.
    But we are unable to figure out on how to get the data source for the standard program 'Send Separate Remittance Advices'.
    The program is of the type Java concurrent program. Is there any way to get the XML tags for this program.
    Thanks,
    Manoj

    hi,
    pls see:
    R12 Send Separate Remittance Advice - Data Source (srini)
    and also:
    http://apps2fusion.com/apps/14-fwk/69-java-concurrent-programs
    http://oracle.anilpassi.com/xml-publisher-concurrent-program-xmlp.html

  • How to change the jta-data-source for projects in EJB 3

    Hi all,
    Sorry my english! :)
    I'm learning the EJB 3.0 and I'd like to change jta-data-source for projects in JDeveloper 10.1.3.1.
    I explain:
    In the same Application, I have a project with all Entitys and Session Beans. At the moment, the persistence.xml file is there with the jta-data-source tag.
    I make a new project with JUnit (Cactus) for test the EJB's that I'd like jta-data-source reference the test database.
    I make another project, with Servlet/JSP/JSF that use EJB's with interface and I'd like jta-data-source reference another database.
    What kind of changes (workaround) I could make to solve this problem?
    Thanks a lot!
    Luciano

    Hi,
    There are COOM data source which may suits your needs.
    please check data source
    0CO_OM_WBS_6
    0CO_OM_WBS_3
    Base tables are COSP and COSS.
    Check about coom data source, if not suitable then go for custom data source.
    About table cross verify with your source team.
    Thanks

  • 9iAS: Programmatically change data source for Java/J2ee bc4j application

    Background: We obtain a copy of our customer's live data daily for support issues. We'd like to be able to keep up to date as possible and get files early in the morning. due to the size of the database, it takes a few hours to download and import into our Oracle database. what I'd like to do is use two different schemas/users for the data, alternating on each day so that the loading of one, does not affect the running of the other. To make this seamless, I'd like to have a script perform the changes after the download and restart the server. The issue is how/where to change the data source so that my application will pick it up each time? I'm using an application specific data source from EM.
    Any ideas?
    Thanks,
    Jeff

    If it is intended to be accessible from Reports servlet then you can use "ssoconn" command line option where by the user name and password is stored in OID (Oracle Internet Directory)
    Pls see publishing reports to web document --> command line options -> rwservlet
    (link below)
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • CRM 7.0 - Enhancement of Data Sources for interactive Reporting

    Hallo All,
    I would like to know whether anybody has positive experience with the enhancement of CRM Data Sources for interactive Reporting. I read that the enhancement of Customer fields should be possible (Those Data Sources below the Hierarchy node /CRMBW/ROOT).
    I have seen that the extract structure can be enhanced via RSA6 (as for other data sources).
    Questions:
    1. Which USEREXIT / BADI has to be used to fill the added fields?
    2. Does it work?
    Best regards

    Hi!
    Those DS are not meant to be enhanced manually but only by one of the following two ways:
    1. Adding custom fields with the Application Enhancement Tool (AET) in the CRM UI.
    2. Adding SAP fields with the Interactive Reporting Enhancement Workbench (IREW).
    The AET is available since CRM 7.0. Please find more details in the SAP Help Portal:
    <http://help.sap.com>
        SAP Business Suite
            SAP Customer Relationship Mgmt.
                 SAP EHP1 for CRM 7.0
                     Application Help
                         WebClient UI Framework
                             Application Enhancement Tool
    The IREW is available since CRM 7.0 EhP1. More details can be found inside TX CRMD_IREW or in the SAP Help Portal:
    <http://help.sap.com>
        SAP Business Suite
            SAP Customer Relationship Mgmt.
                 SAP EHP1 for CRM 7.0
                     Application Help
                         SAP Customer Relationship Management
                             Analytics
    Best regards

Maybe you are looking for

  • Generating large amounts of XML without running out of memory

    Hi there, I need some advice from the experienced xdb users around here. I´m trying to map large amounts of data inside the DB (Oracle 11.2.0.1.0) and by large I mean files up to several GB. I compared the "low level" mapping via PL/SQL in combinatio

  • Insert master column on table not found in NW CE EHP1

    I installed SAP Netweaver CE EHP1 sneak preview. I inserted the table UI element. I am trying to insert a master column in the table. But I was not able to find the option to insert master column from the context menu of the table in NW CE EHP1 sneak

  • SMTP error with entourage 2004 on OS 10.5

    I'm running Entourage 2004 on OS 10.5. For the last week we've had an issue with receiving emails. For several days it wouldn't download any, presenting the error "An operation on the server timed out. The server may be down, overloaded, or there may

  • PRKC-1023 : Invalid IP address format & PRCR-1001 Error in root.sh

    Hello All, At prompting to execute root.sh, I get the following errors. I am installating 11.2.0.1 Grid Software. I am not sure why it is taking the virtual IP name. The details give are on Specify Cluster configuration window is :- Scan name : rs1pr

  • FM to update DB table T100

    Hi All, Can someone please let me know an appropriate FM to update database table T100? TIA. Regards, Richa