Selective Data target deletion - Job

Hi,
Is it possible to do selective deletion of data targets for a scheduled intervals.
For example,
On 1st of every month, a job has to get scheduled deleting the past 15 days of record from the infocube. And subsequently, updated data for the last 15 days will be pushed in to the infocube from an RFC.
Please let me know for any clarifications.
Thanks in advance!

Hi there:
  The alternative we took is based on this Wiki.
"Using Selective Deletion in Process Chains"
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/603a9558-0af1-2b10-86a3-c685c60071bc?quicklink=index&overridelayout=true
To avoid using hardcode we created a Custom Table that is read by an ABAP Program located on the InfoPackage, on that Table we store the input parameters: InfoCube Name, any Characteristic present on the InfoCube, Operator (EQ or BT) and start/end values in case of a range.
Regards,
Francisco Milán.

Similar Messages

  • Copy-function: Where to select data-target?

    Hi experts,
    First, I worked on a cube for consolidation and created several input ready queries.
    Second, I have buid-up a second cube for disribution planning. (Because there are lots of additional dimensions being used; such as country, region, products[...]).
    Now, I want to copy planned turnover in distribution cube to consolidation cube. In other threads I've read, that it would be possible to copy data from cube to cube.
    The problem is that I don't find any properties defining the data-target.
    So. what needs to be done to reach my goals? Do I have to buid-up a multiprovider as well?
    Thanks a lot for your hints!
    Regard, Martin

    Hi Martin,
    copy function can only copy from a char value to another value. It can not copy between key figures.
    For this you need a fox formula.
    Copy functions in BI IP will always overwrite the values that were in the target before it is run.
    Fox functions usually will also overwrite the values that were there before the function is run. If you want to do it different, your fox code would have to include some checks and so on.
    if you do not change other characteristics, you take only the 0Info_prov into the fields to be changed and make a formula like:
    {keyfigtarget, infoprovtarget} = {keyfigsource, infoprovsource}.
    when including the function button into a web template you can choose:
    planning function simple - you will need a data provider type filter or query to fill info the selection binding
    planning function - you can choose you "filter" by naming each individual char that has to be restricted while running the function
    planning sequence - aggrlevel, filter and function are fixed in the sequence
    I usually prefer sequences (I trust them more than the selections for individual functions)
    regards
    Cornelia

  • How to initialize delta for a new data target

    Hi
    I have an ODS from which there are several other targets getting updated thru an export datasource. The delta initialization happend some 6 months back. I now have a new ODS into which i need to load the data from the original  ODS. How can i initialise the delta to my new target without changing the delta initialization of the other targets and continue the delta for all of them together?
    can i use the same initialization for my new target??
    If i do a full update and then a initialise w/o data transfer, will the further delta bring the data from the correct point, is there a possiblity of data loss??
    Regards,
    Sujai

    Hi Ajay,
    the steps are as follows.
    1 delete the initialization. open infopackage >> menu scheduler >> Initialization options for source systems >> delete the request thats there.
    2. Now go to the Update tab of the infopack >> select option Initialize Delta process >> check the option initialize without Data transfer
    3. Goto Schedule tab and start the job.
    here the data targets will be all the targets the infopack loads.
    4. Create a new infopack
    5. goto Data targets tab >> select data targets >> put a check on your new ODS/Cube
    6. Goto Update tab >> select the option Full update
    7. goto menu Scheduler >> select Repair full request >> put a check on Indicate request as Repair Request >> hit OK
    8. Goto schedule tab >> start the job.
    9. Continue with the existing Delta infopack that was load the old ODS/Cubes  and make sure your new ODS/Cube is also cheked for the delta.
    Regards
    Sujai

  • APD and Data Target in CRM

    Hi,
    I have created ADS in CRM through EEWB with BI info objects.
    Now I want to load this ADS table through APD from BI to CRM.
    for that I am creating APD in BI with category as general.
    I have selected data target as CRM
    In that I am giving the appropriate logical system .
    In the second dropdown which is for Data Targets : Here I am not getting ADS ( Analytica Data Source ) as my Data Target.
    In CRM table BWTARGETS it is there with all attributes.
    Also in CRM SPRO the data Target is Available with name as CACHE.
    Path in SPRO : SPRO -> Integration with other mysap components -> Data Transfer from SAP Business Information Warehouse -> Define ID for data target adapters.
    Let me know what I am missing in above process to get data target ADS in APD design ?

    Hi
    Just create a Process Chain to execute this APD method, if the process Chain is already available, then just insert this Process in to the process Chain and execute the Process Chain by normal process, by hoe we do in general.
    Hope it solves...

  • Last Executed date of a job.

    Hi everybody,
           I have a scenario where I need to compare the record created date with the last executed date of a batch job. The record created date, we are retrieving from a Z table. But I am unable to find the table from where I can find the last executed date of the job / Report.
              I came to know from many forms to use TBTCO table. But in our development systems, we could not find the latest executed date for some jobs which were executed  recently. that field is completely empty for some jobs.
                 Please suggest me the right table where I can find the last executed date of the JOB / Report.
    Any helpful answer will be rewarded immediately.
    Thanks in advance.
    Vana.

    Vana,
      In table "TBTCP"   there is field called  SDLDATE(Date of job/step scheduling).
    So, select data of paricular job  .Say it will give 5 different dates. into internal table.
    SORT the internal table SDLDATE  DESCENDING.
    So you will get the latest scheduling date record in first position of internal table.
    IF latest record date is < sy-datum+1.
      Yes last schedulke date.
    ENDIF.

  • The data target is not appeared in the Infopackage under datatagets tab.

    Hi thanks for your response, i  eloboreted my problem below pl see,
    In the Info Cube structure i check the Trassactinal check box, In the Infopackage level under the data targets tab i selected the 'Select data targets' radio button icon but the data target is not appeared in the  table.pl give me a suggetion in which location  can i make a change.
    Thanks & Regards
    Bhaskar

    The same question in data source is not appeared in the Infopackage.

  • How to load data targets through process chain

    hello gurus,
    i am new to bi7.0 environment,
    can anyone provide me step by step loading of data targets with the help of process chains.
    its very urgent
    thanks in advance
    bharath kumar

    Hi,
    After creating Start variant, select Data Targets in left side, find out which one you want to create PC. Drag and drop that Data Target ODS into right side, and select info package and ods activation.
    For Master data also the same you have select Attr Change run.
    Connect the links from Start variant to data targets.
    Check the below links:
    http://help.sap.com/saphelp_bw33/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/frameset.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/dc/c7e542de327276e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/87/13843b74f7be0fe10000000a114084/frameset.htm
    Business Intelligence Old Forum (Read Only Archive)
    Reg
    Pra

  • CRM error: Data target BPMKT; not known

    Hi,
    I  m working on Loyalty Points Mgmt. which is combination of CRM & BW. I have created a Analysis Process Designer <b>(RSANWB)</b>  Here source is Query & Target is CRM Attributes, In CRM attributes I have selected Data Target :  <b>BPMKT  "Marketing attributes for business partner segmentation".</b> When I am going to active this the system shows "CRM error : Data target BPMKT not known".
    Anyone could help me. Where I am wrong...? How could I correct this Error.
    Thanx in Advance.
    Regards
    Manoj Kulkarni

    Hi Rogier, I got same problem.
    How to resolved it?
    Regards.
    Enrique.

  • Selective deletion of data target through FM

    Hi,
    I have one DSO and One Cube.Sales doc is an IO in both the Data targets. So I have to compare sales doc values in DSO and Cube. If the same doc exists in Cube .I have to delete from Cube.
    Pls tell me how to write code for this.
    Regards,
    Swathi

    HI Swathi ,
    Correct me if i am wrong , you want to delete the sales document if that document exist in Cube and DSO.
    So while loading DSO u need to chk for that document if it exist in cube or not .
    Step 1 : you will have a SID table for sales document /BI0/SDOC_NUMBER from this table you need to get the Sales document with SID ID .
    step 2 : Once you get that informaiton you need to pass this informaiton to cube table /BIC/DZSD_C001 (Cube has 13 DIM tables you need to see which dimension table your sales document exist ) .
    so you need to pass step 1 DIM ID to step 2 table if it exist , it means that cube has that sales document then you can zero out all the key figure values(qty & amounts) in DSO by negating the values (for eg. suppose u have 10 ,20 ,35.00 in ODS , u need to make them -10,-20,-35.00) and pass this delta to cube then in cube 10 +(-10) will become Zero and you can compress with Zero elemination in the cube so that all the zero records will be deleted .
    This is my thought .
    I dnt knw why you want to delete the records from cube , if you delete like this after some time your cube has zero records .I dnt know what is ur requirement .
    regards
    Santosh
    Edited by: santosh on Mar 17, 2010 11:21 PM

  • Unable to delete data target contents of Write-Optimized DSO in Process Chain

    Hi Experts,
    We are using SAP Net Weaver BW 7.01 version and we need to delete the entire data target contents of Write-Optimized DSO in the process chain before the next data load.
    I included this step in process chain but still it is failing with errore message"Message not found (in main memory), Drop Cube Failed In Data Target"
    This process type is working during BW 7.0 version but not in BW 7.01 version.
    However i found that we can use the program RSSM_DELETE_WO_DSO_REQUESTS to delete old requests in the Write-Optimized DSO for BW 7.01 SP07 as per SAP Note 1437407 but still it's not working even after implementing this program as the Prerequisite to delete the request is the data mart status should be updated where it is not happening for the program.
    We had an process type option to 'delete the requests from Write-Optimized DSO' directly in BW 7.3 but still not available in 7.01 version.
    Could you please suggest me on how to resolve this issue in BW 7.01?
    Many thanks for your help in advance.
    Regards,
    Madhu

    Create ABAP program as attached code.
    Then you can use that ABAP program in process chains through ABAP variant
    ABAP varaint should have following properties
    Select call mode as Synchronous; call from Local; and Program
    Give your ABAP program name in "program name" and create one program variant for each write optimized DSO.
    Please refer how to use ABAP program in process chains for further details.
    Hope this helps

  • Deletion of Request which are not updated to data target

    hi,
    I want to all PSA data whether it is updated or not In our project this is being done by Using a Process chain, But it is not deleting the request which are not updated to any data target or failed, I have selected both the check boxes
    Only successfully booked requests
    Only requests with errors, not updated in any data target
    but even after selecting this check box it is not deleting the failed request, can any one tell me why it is so.
    Any help in this would be highly appreciated.

    Try to do it without checking any of the checkboxes...
    Regards,
    Luis

  • Data deleted in data targets

    Hi Gurus,
    By mistake I have deleted the data in production from some data targets
    all the data is still available in PSA (for 9 months).
    This happened in two data targets from two data sources.
    No. of records are not even 1 million.
    Total no. of request for each PAS is 279.
    Is there a way I can load the data in parallel or something.
    which can complete the task faster. Right now I am selecting each request
    and loading one by one.
    Regards

    HI,
    If you are in 3.5 goto reconsturction and select all requet you need to load and go for reconstruction which will reconstruct all request one after the another. No manual intervention necessary.
    incase of 7.0 do a init without datatransfer from PSA and give a full update request for 3 months and load all the data which will help you in completing the data load faster.
    Hopet this helps for you.
    Thanks,
    Arun

  • Delete selected data in psa

    Hi guys,
    I want to delete some data records in psa based on a range of record number.
    Eg. I want to delete records in psa starting from record number 1 to 333.
    I would appreicate if someone can help me with that,
    zsl05

    In the PSA maintenance screen you can select option of load to data target.
    While loading from InfoPackage you can select option PSA then data traget. And set error option as 'Valid Records updare, request avilable for reporting (Green)', this way you can update valid records into data target. Though better is to correct error records in PSA, and then load to Data Target. You can also correct Error records later, if you are only update valid records at first load.

  • Data Error in the Query/Report after selective data deletion for infocube

    Hi Experts,
    Please advise what i was missing and what went wrong...
    I got a Query (Forecast) on a Multicube...which is based on 2 Infocubes with Aggregates...
    As i identified some data discrepency..yesteraday i performed selective data deleation on one of the Infocube
    and executed report yesteraday and the results in the query are correct...
    When today i executed the same report i am getting different results..
    When i compared the results of the report with that of data in cube they are not matching
    The report is not displaying the data in cube..for some rows it is displaying the data in the cube but for some rows it is just displaying same as the above row
    there is no data loaded into info cube after selective deleation
    Do i need to perform request compression and fill the aggregated after selective deleation
    Please advise what went wrong

    Hi Venkat,
    No i haven't done anything on aggregates before or after selective delete
    As there is not data load after the selective delete according to SAP Manual we don't need to perform any thing on aggregates...as selective data deletion on cube will delete data from aggregates as well
    Please update how to identify error

  • How to delete selective data in a cube

    Hi all,
    Can any one tell me, how to delete selective data in a cube. For example if i want to delete data corresponding particular Matrial Id  or particular Customer ID (say C400) ? And even deleting the data based on particular Request numer.?
    Sandy.

    Hi,
    RSMO > Infocube > Manage > contents tab > selective deletion
    Then define your selections for deletions (Matrial Id or particular Customer ID (say C400)).
    Request based deletions can be done directly from Request tab.
    Thanks,
    JituK

Maybe you are looking for