How to redirect loading flow in process chain based on logic?

Hi Experts,
I have a scenario where I want to keep data for last 3 years in 3 different cubes.e.g. lets say cube 1 holds data for current 2006 year, cube 2 holds 2005 and cube 3 holds 2004.Now in next year 2007, I want to keep data for 2007, 2006 and 2005.I want to keep data for 2007 in cube 3 which was holding 2004 data.(delete 2004 data and load 2007).
This process should be automated i.e. which cube to load should be done auto.In short, <b>data for new cube should go into cube which is holding data for oldest year.</b>
I want to know :
1) Which Options I can use to do this?
2) What about ABAP program : custom table can be maintained to know which cube is holding what data, but how to redirect loading flow?
3) What about "Decision process type" in process chain?
4) Also would custom process type solve this functionality?
Any ideas would be highly appreciated.
Thanks in advance,
Sorabh

Hi Sorabh,
Its just an Idea, Im assuming that this would work. This should also work for INIT DELTA I guess. But would need proper testing.
Have a Custom Table ZCUBEYEAR and maintain the CUBE as the Key.
ZCUBEYEAR
CUBE     YEAR
Y1       2004
Y2       2005
Y3       2006.
In the update rule->Start Routine for Cube Y1, extract this entry from the table ZCUBEYEAR for Y1, which in this case would be 2004.
DELETE DATA_PACKAGE WHERE YEAR NE YEARFORCUBEY1.
in our case YEARFORCUBEY1 = 2004.
For cube Y2 and Y3 the Delete statement would be as follows in their Start Routines.
DELETE DATA_PACKAGE WHERE YEAR NE YEARFORCUBEY2.
DELETE DATA_PACKAGE WHERE YEAR NE YEARFORCUBEY3.
This would ensure that only 2004 data would flow to Y1, 2005 for Y2 and 2006 for Y3.
Once we come to a NEW YEAR, We need to run a program or Manually change the CUSTOM TABLE "ZCUBEYEAR" updating the cube Y1 with 2007, the Deltas would flow correctly.
Please email me at [email protected], we could have a detailed discussion.
Hope the above helps your cause.
Regards,
Praveen.

Similar Messages

  • How to load hierarchies using process chains

    Hi ,
    Can any one please explain the steps for loading hierarchies using process chain.whenever i drag the hierarchy infopcakage Save variant is also coming by default,so do we need to have different SAve variant for different hierarchy infopackages or can we have one save variant for all the hierarchy variables.
    Thanks,
    Vaka

    Hello Veka,
    How r u ?
    Yes ! SAVE Variant & Attribute Change Run will add up while loading the Hierarchy InfoPackage.
    Provide the InfoObject Name for which u r loading the Hierarchy in the SAVE variant and SAVE it. The same will be transferred to the Attribute Change Run also.
    If u r creating the Chain with more InfoPackages then have the Save Variant & Attribute Change Run at the last.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • Loading Data Using Process Chains

    Hi All,
    we are having 3 layers for loading data using DB connect i.e 1st and 2nd layers we are having DSO's and the 3rd layer is cube.we are following the following updates for the 3 layers
    1st layer- full
    2nd layer - delta
    3rd -delta
    is there any possibilites of getting duplicates in the cube and if so how to solve this one using process chains
    regards,

    Hi,
    Your dataflow looks ok.
    Hopefully you are using "Std DSO", there is no chances of getting duplicate records.
    But in case...
    If you are using "WO DSO" with check box "Do not check Uniqueness of records"
    In this situation you will get the duplicate... as "WO DSO" with this property will simply keep on adding adding the records.
    Thanks
    Mayank  

  • How to setup PCG Flow Rule Process flow with Business Event subscription

    Hi,
    How to setup PCG Flow Rule Process flow with Business Event subscription type?
    When should Business Events be used?
    The latest user guide does not provide ay information on this functionality of Flow rules.
    Thanks

    You should find it's usage noted in the new PCG user guide on page 3-26 under the heading "Configuring Workflow/Event Rules". This way you can have a Flow Rule call a business event component or a workflow. This would be kicked off within a process flow as one of the steps.
    I hope that helps.

  • How to create info area for process chains?

    How to create info area for process chains?

    Hi,
    If I understand your question clearly, you want to assign display componets.
    once you have created you chain you assign the components by clicking CTRL+F11
    Regards,
    Namrata

  • Data Load Requirement through Process Chain

    Hello All,
    I have implemented an area through a custom data source and following is my data load requirement through Process Chain. Request you to kindly help me for the same.
    1. The design is an InfoCube and updated using a Transformation through the custom data source.
    2. For the entire year 2008 I want a single request to be loaded. So it gets loaded into the PSA and then into the Infocube through a (Delta) DTP.
    3. Now, I have created an InfoPackage (Full Update) with year as 2009 in the selection. Tht is I want tht hencforth the data load should be for the year 2009.
    4. Hence, the Infopackage will run to bring the 2009 data into PSA and I run the (Delta) DTP to update the same in the Cube.
    5. Now, what i require is everyday the InfoPackage (Full Update) with 2009 should run and bring data into PSA. and the same should be updated in the InfoCube after deleting the 2009 request already present keeping 2008 request loaded previously intact.
    I hope the above is nt confusing.
    Please let me know if i can elaborate the same.
    Thank you.
    Regards,
    Kunal Gandhi

    Hi,
    Please go through the links.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/21/15843b74f7be0fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/Helpdata/EN/f8/e5603801be792de10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_nw04/Helpdata/EN/b0/078f3b0e8d4762e10000000a11402f/frameset.htm
    These may help you in designing the process chain as required.
    Regards,
    Sunil
    Edited by: sunil kumar on Apr 17, 2009 6:20 PM

  • How to Convert INFOPACKAGE GROUPS to PROCESS CHAINS???

    Hi BW Gurus,
    How to Convert INFOPACKAGE GROUPS to PROCESS CHAINS???and what are the
    measures i need to take care before doing the same .
    prasad

    Hi,
    Simply add these infopackage groups into process chain and schedule the process chain.
    Hope this helps.
    Assign points if useful.
    Regards,
    Venkat

  • How to identify whether that particular process chain is active or not?

    Hi all,
    How to identify whether that particular process chain is active or not ?
    thanxs
    haritha

    If see the process chain then it will not be greyed out if it is active. Or else check in these tables.
    RSPCCHAIN
    RSPCCHAINT
    to check the logs
    RSPCLOGS               
    RSPCPROCESSLOG
    Give the chain name and check in the object version.
    Khaja

  • How to rollup cube data in Process chain?

    I have loaded data into a cube, and when i look at the technical status it is green but there is nothing in the "request for reporting available"box. I went to Rollup Tab and manually execute the request. It worked.
    But is there anyway that I can add a process type to do it automatically? I saw there are three process type related to Rollup, which one should I use?
    1. Initial Fill of New Aggregates
    2. Roll Up of Filled Aggregates/BIA Indexes (what does this mean?)
    3. initial Activation and Filling of BIA Indexes
    Thank you!

    Dear experts,
    We have the following problem: for certain figures we have on ODS level 2 daily updates: one at night and one at noon. During the week at noon we only load from the ODS into the Cubes only that data that is entered the same day (selection on CPU-Date in the InfoPackage). After loading the data at night we load the data which was entered the previous day (selection on CPU-Date in the InfoPackage). In this process we have a step in the process chain that deletes in the overlapping request of the previous day (which was loaded at noon).
    Our Process Chain for loading the data from ODS into the cubes looks as following:
    Delete Indexes of the cubes -> Load data from ODS into Cubes -> Generate Cube Indexes -> Delete overlapping Requests in InfoCubes
    After filling the BIA-Indexes on this cube, the process chain gives an error message at the stage where the overlapping request should be deleted.  The error messages says:
    Uncaught Exception: Keyfigure is of type Float.
    To solve this error at the moment we manually delete the BIA Indexes, delete the overlapping requests and fill the BIA Indexes again. Since the functions 'delete BIA Index' and 'Fill BIA Index' is not available in RSPC we can not do this automatically in the process chain.
    I also tried like above mentioned taking the step 'roll up filled BIA Indexes' into the process chain, but the check of the process chain creates a message stating that i cannot do this when in the same process chain the steps 'Delete Indexes of the Cube' and 'generate Indexes of the cubes' are included.
    Does anybody know a solution how i can delete overlapping requests in a process chain with filled BIA Indexes.
    Many thanks in advance for your kind reply.
    Best regards,
    Ilja Dekeyser

  • How to initialize Datamining Model in process chain ?

    Hello all,
    I need to launch an APD for datamining analysis but i need to initialize the model before each data loading.
    The only way to initialize the model is to write an abap program ?
    No standard process, report or transaction to schedule this step using a process chain ?
    Thanks
    Christophe

    The solution is to use a specific ABAP program using the method RESET_MODEL_RESULTS
    You'll find BW-APD How to Reset a Data Mining Model" in the wiki
    Christophe

  • Delta load problem in process chain

    Hi,
    I have ODS givng data to another ODS. The init of this flow was done manually...Now i have created process chain in which further processing has variant as "execute infopackage" as the delta package made .. now when i check this process chain its giving me error ""Delete init. request
    REQU_49LKNGG0SE5966D3S7SQYYDQX before running
    init. again with same selection"" .. Actually this is not the Init req which i ran manually..this is the req which was run when i ran this process chain... what shld i do to add only delta IP in process chain so that i dnt ve to delete init
    Thanks
    Prashant

    hi,
    first load all the init loads from the ods to cube. then u have to create the delta infopack and include that in the chain.
    create the int info pack under the infosource 8<ods name>
    trigger that infopack, create the delta infopack under the 8<odsname> infosource , and you have include that in the PC.
    Please do changes in your process chain.
    Local chain 1 - start -> load to ods -> activation of ods ->further processing(remove the infopack in this process maintain variant).
    Lcoal chain 2 - start -> delete index ->load delta to cube -> create index -> roll up (if needed)
    Main chain -> start -> local chain 1 ->local chain2
    Ramesh

  • How to change source system in process chain

    Hi All,
    In our Bw quality system, process chain is pointing to the Production system ,
    I want to keep the process variant name same as production but want to change the source system
    For example.. let us say currently process chains(All DTPs) are pointing to the Production server (PD001) ip (200.12.23.22)
    now i want to keep the Server name same but want to point it to the quality system..so after change Process chain will show same name but it should point out to quality system.(let us say bwq 200.12.23.232).
    Can you please help me on this

    Hi Pravender,
    In our BW system , we have same process chain in all the system (Dev, Quality and production)..and naming convention is also same ..(all process chain points to Production system only)..
    So when I want to load data from development i just need to change the source system ip adrress  to  the Development Server  (So names in process chain will indicate production but  it will point to the development server), .
    I want to know how can i change the source system mapping.
    Hope i am clear now

  • How to put RSCRM_BAPI in the process chain?

    Dear All,
    I've used RSCRM_BAPI to extract data from a query into a table. These data in the table needs to be extracted again to the PSA in BW.
    So I need to run the  job defined in RSCRM_BAPI after the data has been  loaded into cube and run the infopackage to extract data after the job has finished.
    How can I put these actions in the process chain?
    Thanks.
    Bolun

    Hello Bolun,
    Yes you can schedule RSCRM_BAPI extracts in a process chain. You have to write a program that will invoke the RSCRM APIs. You can use the program below.
    data  error(50) type c.
    data  g_t_return    LIKE bapiret2 OCCURS 0.
    data: l_proc        like rscrmmon-processed.
    data: gv_batchid    like RSCRMMON-BATCHID,
          gv_jobname    like TBTCO-JOBNAME,
          gv_actstatus  like TBTCJOB-STATUS,
          gv_jobcount   like TBTCO-JOBCOUNT,
          gv_dbstatus   like TBTCJOB-STATUS,
          l_status      type RSCRMBSTAT,
          l_wait        type i.
    parameter: repuid TYPE rscrmrepuid obligatory.
    parameter: extrname TYPE tabname obligatory.
    parameter: repvar like RSCRMSTATUS-REPVAR.
    parameter: overwrt like RSCRMCONTXT-ACTIVE default 'X'.
    start-of-Selection.
    *Open Query
      CALL FUNCTION 'RSCRMBW_REPORT'
        EXPORTING
          i_mode      = 'OPEN'
          i_reportuid = repuid
        TABLES
          e_t_return  = g_t_return.
      if g_t_return is not initial.
        read table g_t_return TRANSPORTING NO FIELDS with key type = 'E'.
        if sy-subrc <> 0.
          concatenate 'Errors occurred when opening query' error into error.
          message error type 'E'.
          exit.
        endif.
      endif.
    *use this if you want pass a variant.
    *Get variable values
    *     CALL FUNCTION 'RSCRMBW_VARIABLE_POPUP'
    *         EXPORTING
    *               i_reportuid = repuid
    *               I_VARIANT = repvar
    *         TABLES
    *               e_t_return  = g_t_return.
    *Execute Report
      CALL FUNCTION 'RSCRMBW_REPORT'
        EXPORTING
          i_mode         = 'START'
          i_reportuid    = repuid
          i_execmode     = 'TABLE'
          i_extract      = extrname
          I_CLEAREXTRACT = overwrt
        IMPORTING
          E_BATCHID      = gv_batchid
          E_JOBNAME      = gv_jobname
          E_JOBCOUNT     = gv_jobcount
        TABLES
          e_t_return     = g_t_return.
      if g_t_return is not initial.
        read table g_t_return TRANSPORTING NO FIELDS with key type = 'E'.
        if sy-subrc <> 0.
          clear error.
          concatenate 'Errors occurred when executing query' error into error.
          message error type 'E'.
          exit.
        endif.
      endif.
      if sy-subrc = 0.
        WHILE ( L_STATUS NE 'SUCC' ).
          CALL FUNCTION 'RSCRMBW_BATCH_STATUS_CHECK'
            EXPORTING
              I_BATCHID       = gv_batchid
            IMPORTING
              E_STATUS        = l_status
            EXCEPTIONS
              NO_JOB_DATA     = 1
              INHERITED_ERROR = 2
              OTHERS          = 3.
          IF l_status = 'RUNN' or l_status = ' ' or l_status = 'SCHE'.
            WAIT UP TO 30 SECONDS.
          ENDIF.
        ENDWHILE.
        IF l_status = 'SUCC'.
          if sy-subrc = 0.
            write 'Query finished'.
          else.
            clear error.
            concatenate 'Job ' gv_batchid ' failed.' into error.
            Message error type 'E'.
          endif.
        ENDIF.
      endif.
    *Close report
      CALL FUNCTION 'RSCRMBW_REPORT'
        EXPORTING
          i_mode      = 'CLOSE'
          i_reportuid = repuid.
    end-of-selection.
    Use the ABAP Program process to execute this program. Create the data load processes so that they execute on successful finish of this program.
    I hope this makes things clear.
    Regards
    Arvind

  • Trigger informatica work flow using process chain

    Hi,
    tell me how to trigger the informatica work flow using the process chains.
    Please tell me the steps.
    Babu

    Currently, we have a custom trigger file on the BW system.  We have a workflow in Informatica that loops periodically and checks the data in this table.  When the file changes, the workflow in Informatica then continues. 
    However, I think a better solution is to use a <i>pmcmd</i> and set up a batch file that runs a command that will schedule your workflow.  You can then put this batch file on the BW server and call it from the process chain (use process OS command).
    The command will look something like this:
    <b>pmcmd scheduleworkflow -s</b> (server)<b> -u</b> (user) <b>-p</b> (password) <b>-f</b> (workflow)
    See Chapter 23 in your Informatica Help on using <i>pmcmd</i>.

  • BP daily load failed in process chain

    Hi,
    I am using process chains for daily loading of master data. I have an infopackage scheduled in that process chain named 0BP_DEF_ADDRESS_ATTR_INIT/DELTA_CRM01   (ZPAK_48WV8918R85SEUHG8N1IP6DJQ) . This infopackage is showing an error. When i diagnosed it says "Second attempt to write record '0030368557' to /BI0/PBPARTNER was successful"
    And during error analysis i found this is causing the error.
    Has anybody come across this error? How to correct this?
    Appreciate your valuable responses.
    Thanks
    Ashok

    Thanks.
    I deleted the request on Requests tab. However the request still runs on the reconstruction tab and when i manually try to do a delta load it says the last load is not finished yet.
    Could you please suggest?
    Thanks

Maybe you are looking for

  • Mac os version 10.5.8 is running very slow

    Hello all. For some reason my mac has been running much slower than it usually would. I haven't downloaded anything or added any new software lately but it has decreased in speed significantly. When I try to open apps it takes for ever and when I'm w

  • How do you burn photos to DVD from iPhoto?

    How do you burn DVDs of photos in iPhoto?

  • Stock in quality inspection

    Hi Gurus, I am getting an issue in Quality inspection stock.The issue is like this . In the last month one inspection lot generated and  without stock posting only UD done. The lot quantity was 33.670 , but when I am checking the quality inspection s

  • Very simple html template engine...

    Hi forum I need to create a very simple html templating engine. My requirements are only load a html document into an object (HTMLDocument for example?), search a couple of particular tag or string, treat the text found between these tags like a bloc

  • M91p dual monitor graphics card issue

    Hello, My work recently purchased a Thinkcentre m91p - model number 7052C9U without realizing that it was not dual monitor capable.  We're a small business and have no IT division so it is up to me to solve this problem for myself.  Ive been doing so