Process Chain Logic

Hi Experts,
I have a scenario where I have 3 different cubes.e.g. lets say cube 1 holds data for current Month, cube 2 holds data for current year (2007) and cube 3 holds data for Next Year (2008).
Data from DSO daily loads to Current Month Cube, at the end of each month data would be deleted from "Current Month Cube" and dumped to "Current Year Cube (2007)".
In next year 2008, at the end of each month data would be deleted from "Current Month Cube" and dumped to "Next Year Cube (2008)".
For the year 2009, (delete 2007 data and load 2009), and for the year 2010, (delete 2008 data and load 2010).
This process should be automated i.e. which cube to load should be done auto.
Any ideas would be highly appreciated.
Thanks in advance,
V

You need to have several process chains running each with one data target and a scheduled date to run. You can make use of end of month end of year  and other date options but I would be concerned about the followings:
What if a transaction posted with a back date? For example: you received your last transaction for December 31 and that night you promoted the data from all the respective next month and yearly cube but the next day some transaction shows up with posting date of december 30th (or so). The transaction would sit in the ODS and if not checked for exact date to promote would end up in the wrong cube.
Without knowing exactly what kind of data we are dealing with it is hard to give out a fool proof advice. Considering that you already have clean data and there is no chance of back date posting, just create multiple process chains scheduled for each events and deleting the unnecessary data after successful data loads. The only thing is that you must have all those next year's cubes ready before hand.
Let me know if you have certain special condition that you want to share.
Thanks.
Bilal

Similar Messages

  • Process Chain Logic Please

    Hello BI experts,
      Iam making a Process chain where I need to load the data in to 2 DSOs (say B1 & B2) from DSO A  . I have created Transformation and DTP between A - B1  and A - B2 . DSO B1 is required for the year of 2007 and B2 for 2008. Can any one let me know how to schedule this in Process chain ? Do I need to use ABAP Code for this, if so please let me know the sample code how to do this...
    Thanks in advance

    I want to do the following
    Check if LOad Date (SYSDATE) lies between TOO9B - BDATJ (20007) & TOO9B - POPER (01 TO 12)
    Then use DTP to load the the "2007 order cube"
    Else
    Check if LOad Date (SYSDATE) lies between TOO9B - BDATJ (20008) & TOO9B - POPER (01 TO 12)
    Then use DTP to load the the "2008 order cube"
    Please help me with logic or any standard functionaility that can resolve the above
    RANGES: IT_TCODE FOR TOO9B - BDATJ
    IT_TCODE-SIGN = 'I'
    IT_TCODE-OPTION = 'EQ'
    IT_TCODE-LOW = ''2007"
    APPEND IT_TCODE.
    IT_TCODE-SIGN = 'I'
    IT_TCODE-OPTION = 'EQ'
    IT_TCODE-LOW = '01'
    APPEND IT_TCODE.
    IT_TCODE-SIGN = 'I'
    IT_TCODE-OPTION = 'EQ'
    IT_TCODE-LOW = '12
    APPEND IT_TCODE.

  • Passing parameter to process chain - logical file name

    Hi,
    Is there a way to pass a parameter to a process chain? Iu2019m trying to define logical file name (via transaction FILE) allowing to point on physical files name containing a parameter to be defined at run time. Is it possible?
    Example, consider receiving file ending by a number representing its source system origin:
    Filename_1      (file coming from syst 1)
    Filename_2      (file coming from syst 2)
    As both file have the same structure I would like to specify a single datasource Filename_n and a single process chain in which I would set the parameter n at run time. Is there a way to implement that?
    I first thought about an Abap routine reading parameter in a table but than Filename_n canu2019t be treated in parallel u2026 Any other idea?
    Cheers,
    Benoit

    Hi Benoit,
    yes, it is possible to call the file paths with routine at infopackage.
    if you have only 2 file and file names are constant, then you can create 2 infopackages and keep thse two in process chain.
    Start
    I
    infopackage 1
    I
    Infopackage 2
    and from applcation sever, these files will be loaded.
    if upi have more files, you can write a routine at the selection of file path, in infopackage.
    Regards
    Daya Sagar

  • Process chain Logic for this scenario

    HI,
      We have a typical requirement that need to be implemented using a Process chain.
    We need to Load data from R/3 to PSA,
    then Load the data from the PSA into ODS1,
    then execute an ABAP program,
    then load the data from PSA into ODS2 (we cannot repull from R/3).
    Can some one provide me an Idea on how to implement this.  I am stuck with the idea on how to populate ODS2 from PSA after executing ABAP Program.
    Thanks In advance,

    Hi Krishnamohan,
    I hope i m getting ur problem right.I think u can implement the below steps easily :
    Step 1 : We need to Load data from R/3 to PSA,
    Step 2 : then Load the data from the PSA into ODS1,
    Step 3 : then execute an ABAP program,
    U have options avaialable for each of them in process chains.
    Now coming to your problem.
    Step 4 : then load the data from PSA into ODS2 (we cannot repull from R/3).
    i guess ur Abap program makes some changes in the Data of PSA which u then want to load in the ODS2.
    What u can do is create 2 infopackages and inside infopackages in the data targets tab select ODS1 in the first infopackage and uncheck ODS2 , likewise in the 2nd infopackage select ODS2 and  uncheck ODS1.
    U can execute the first infopackage in the process chain , then ur abap program and then
    In process chain and in Process types u have something called "Read PSA Data and Updata Data Target".
    select that process type , specify the 2nd infopackage name and get it executed.
    Hope it helps.
    Thanks and Regards,
    Parth.

  • Logical system Infopackage in process chain

    Dear All,
    I want to schedule a logical system delta infopackage in process chain I have input this package in chain but while activating it gives error "InfoPackage ZPAK_44MTIRL52E5IJXMQVL1BXFCWI is generated; NOT able to be used as loading variant" can any body help me how to resolve this issue.
    Abhijit

    Hi,
    I think this package is created automatically while selecting update data into data targets from the context menu of the ods. This kind of packages cannot be used in chains. Goto rsa1->infosources. Select your 8<odsname> infosource and create a delta package manually. Put that package into the chain. That should work.
    kind regards
    Siggi

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

  • Help me to Create this Process Chain

    Hi Gurus,
    We have 3 Process chains,
    1) Region 1
    2) Region 2
    3) Region 3
    These three process chains were start at differt times and end time will depends upon the load of data. Now i want to do some manual calculations after the successful execution of this chains. So i have written three ABAP programs to do that calculations for 3 chains.
    My scenerio is to create a new chain only so I have created a new chain with Start variant -> Decision variant -> 3 Program variants (For 3 chains)
    Now i want to write the condition in decision variant to attach the respective program variants below it. ie,
    Start -> Decision (Condition for successful execution of Chain Region 1) -> Program Variant 1
                 Decision (Condition for successful execution of Chain Region 2) -> Program Variant 2
                 Decision (Condition for successful execution of Chain Region 3) -> Program Variant 3
    So i don know what exact logic to write in Decision variant...Please help me here...
    Thanks & Regards,
    Balaji.S
    Edited by: sbalajigupta85 on Aug 26, 2010 7:47 AM

    HAI ,
    A process chain is a sequence of processes that are scheduled to wait in the background for an event. Some of these processes trigger a separate event that can, in turn, start other processes. It looks similar to a flow chart. You define the list of Infopackages / DTPs that is needed to load the data, say delta or Full load. Then you schedule the Process chain as hourly, daily, monthly, etc, depending on the requirement 
    process chains for which info providers ?? i mean to say... for cube or? DSO?
    ok now below i explained for DSO... try it out it will work.. 100%
    Step 1: Go to RSPC transaction. Click on Create. Give Process chain name and Description.  
    Step 2:  Give the Start process name and description and click on Enter  
    Note: Each process chain should start with a Start Process  
    Step 3: The next screen will show the Scheduling options.  
    There are two options:
    Direct Scheduling:
    Start Using Meta Chain or API  
    In my example I have chosen Direct Scheduling as I am processing only one chain i.e DSO. Click on u201CChange Selectionsu201D  
    In the below screen shot, you can give the scheduling details i.e the Immediate, Date& time etc. and click on SAVE  
    The Screen shot below indicates that we have started the process. 
    Step 4:
    Click on the icon process types as shown in the below figure. You will get a list of options.
    In my example I am scheduling for DSO. To process we need to have InfoPackage, DTPu2019s for the corresponding DSO
    Open the tree Load Process and Post Processing, We need to drag and drop u201CExecute InfoPackageu201D  
    Step 5: Once you drag and drop the u201CExecute infopackageu201D we get the below Popup. We need to keyin the Infopackage name. To do this click on F4 and chose your Infopackage and click on ENTER
    Step 6: Save + Activate and Execute the Process.

  • Process Chain - Transfering Files to Application Server

    Hi guys,
    I have been trying to use BW Process Chain to load data from a flat file (CSV) into an InfoCube.
    I understand for it to work, the file has to reside on the Application Server, and not the local workstation.
    However, can anyone tell me exactly how I can transfer the flat file from my laptop into the Application Server?
    Thanks!
    SJ

    Thanks Edwin!
    The link is a nice introduction. But I'm still facing some issues. Here's a simple scenario:
    I try to upload a file from the path "C:\BW_CSV\Month.csv". I go to transaction FILE and did the following settings.
    1. Logical file path definition:
        a.   Created a new entry called "ZBW_CSV"
    2. Assignments of physical path:
        a.   Syntax Group: Windows NT
        b.  
    Leopard01\BW_CSV\<FILENAME>
    Note: Leopard01 is the server name.
    3. Logical file name definition:
        a.   Created a new entry called "ZBW_CSV"
        b.   Physical file: Month.csv
        c.   Data format: BIN
        d.   Application area: BW
        e.   Logical path: ZBW_CSV
    After all this, when I try to preview the file from the infopackage, I still get an error message -- "Error 8 when compiling the upload program".
    I wonder what settings are not properly configured. Please advise.

  • Data Manager Packeage and Process chain si not working

    Hi All,
    I executed a data manager package which contain a process chain to revaluate the one of my Account dimension meneber Say  "Revenue". I am working on BPC NW 7.0
    steps I followed:
    1. I created a script logic file and created a custom process chain.
        process chain steps:
      a) Start variant
      b) Modify dynamically
      c) Run Logic
      d) Or and Clear BPC tables
    2. This process chain was included in data manager package.
    3. Data manager package was modyfied to include parameters and scipt logic file name.
    4. executed data package
    The issue is " when I execute Data manager Package" I dont get any error but when I View status I dont see any pachage running or completed. If I see Process chain, It is failing at first step of Modify dynamically..no clue?
    Could you please let me know what could be a issue?
    Cheers,
    SAC

    I encounter this problem, Do this Steps:
    I. First,check if your process chain is existing in the Library.
    II.If yes,follow the steps below:
    1. Edata - organize Package - Modify your Package.
    2.Check if you had the correct process chain.
    3.IF yes, Click View package at its right side.
    4.Expand the Task Folder and take note of the Task Name (e.g. ZBPC_PROT_RUN_LOGIC)
    5.click Advance,Compare the task name that you noted in the syntax TASKS
    (e.g. TASK(ZBPC_PROT_CF_RUN_LOGIC,SUSER,%USER%)
    6. It should be the same.
    Running package but not appearing any status happens when the system cannot find your process chain.
    hope this helps,

  • How to run multiple packages in one process chain

    Hi,
    we want to run a script logic with badi, followed by a standard move function. The BADI will perform a check and generate an error. If no error occurs, the move can continue ...
    We created our own process chain, which is in fact the combination of a script logic and a move. The data package has underlaying syntax.
    Problem is that the data package does not trigger the process chain ... Nothing happens when running it. When checking the status, nothing gets in here ... We assigned the correct process chain and get message a postivie message when running the package... Is this not possible?
    PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Selecteer de gegevens waarvoor een omboeking dient te gebeuren","%CATEGORY_DIM%,%ENTITY_DIM%,PRODUCTIEHUIS,PRODUCTIEWIJZE,NET,KWADRANT")
    INFO(%TEMPNO1%,%INCREASENO%)
    INFO(%ACTNO%,%INCREASENO%)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(ZBPC_RUN_LOGIC,TAB,%TAB%)
    TASK(ZBPC_RUN_LOGIC,EQU,%EQU%)
    TASK(ZBPC_RUN_LOGIC,SUSER,%USER%)
    TASK(ZBPC_RUN_LOGIC,SAPPSET,%APPSET%)
    TASK(ZBPC_RUN_LOGIC,SAPP,%APP%)
    TASK(ZBPC_RUN_LOGIC,SELECTION,%SELECTION%)
    TASK(ZBPC_RUN_LOGIC,LOGICFILENAME,STOCK.LGF)
    TASK(/CPMB/CM_CONVERT,OUTPUTNO,%TEMPNO1%)
    TASK(/CPMB/CM_CONVERT,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/CM_CONVERT,SAPPSET,%APPSET%)
    TASK(/CPMB/CM_CONVERT,SAPP,%APP%)
    TASK(/CPMB/CM_CONVERT,SELECTION,%SELECTION%)
    TASK(/CPMB/CM_CONVERT,TOSELECTION,%TOSELECTION%)
    TASK(/CPMB/CM_CONVERT,CLEARDATA,0)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,1)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,SELECTION,%TOSELECTION%)
    TASK(/CPMB/APPEND_LOAD,INPUTNO,%TEMPNO1%)
    TASK(/CPMB/APPEND_LOAD,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/APPEND_LOAD,RUNLOGIC,%RUNLOGIC%)
    TASK(/CPMB/APPEND_LOAD,CHECKLCK,1)
    TASK(/CPMB/APPEND_LOAD,CLEARDATA,0)
    TASK(/CPMB/CLEAR_CUBE,CHECKLCK,1)
    TASK(/CPMB/CLEAR_CUBE,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/CLEAR_CUBE,SELECTION,%SELECTION%)

    Hi Sheldon,
    we never have issues when we combine standard objects, like a cliear with a load inforprovider, or the master data integration you mentioned in your document. However, from the moment we combine a script logic with a standard package (like a move) it does not work .The data package contains the task needed for the script and for the move. the process chain is called up but always comes in error in the first step (BPC modify dynamically ) ... there is also no log when checking the view status ...
    I can sent you some screenshots if you like ...
    D

  • Send the OHD database table load details as mail in Process chain

    Hi,
    We have a requirement that after the data is loaded into Open Hub destination we need to send an email to a list of users.
    The mail should contain the Open hub destination name, Calday, Request No, No of records and the message that the load has ended successfully.
    I know how to send an email in the process chain but how to send the details like Open hub destination name, Calday, Request No, No of records in the mail.
    Please suggest.

    Well we got a little idea:
    We have narrowed the req down to the following logic:
    select REQUID,No of records transferre, and the OHD name from RSBKREQUEST table
    where rsbkrequest-requid  = open hub table request
    Also the open hub table should be first sorted in descending order by request ID
    Now the main issue is:
    How to implement this logic and get the details from RSBKREQUEST table and send these details in the mail body.
    This we want to do in the message which is attached to the Open hub DTP load step of the PC. The message will go if the Open hub load is successful.
    In the message we are able to enter the receipient email address but how to add the above mentioned details.
    Actually we are trying to avoid the ABAP code step.
    Please suggest.
    Edited by: Debanshu Mukherjee on Dec 10, 2010 7:45 PM
    Edited by: Debanshu Mukherjee on Dec 10, 2010 7:46 PM

  • Abap program variant error in process chain

    Hi experts,
    I need your help one more time...
    In our process chain, we run the program RSIMPCUST to bring currency and units from the source system to BW. We have created a variant to run this program and call it in the process chain. One of the variant's parameter is the logical system, which was configured as our DEV system.
    When we transport this process chain to QA and run it, the variant continues to refer the DEV logical system, and not the QA logical system as it should.
    any ideas?
    Thanks!
    Thiago Braga

    Values in variants are not converted.  You can use the same variant in your ABAP program, but you need to change the value in the parameter for logical system in each system you transport the change to.  The only alternative is to create a logical system name in SM59 that is the same in all your BW systems but it refers to the local R/3 system.
    In other words, you will have two logical systems in your BWD system pointing to your R/3 Dev.  Let's call them R3DCLNT100 and R3SYSTEM, where R3DCLNT100 is also the source system (in RSA1).  You can use R3SYSTEM in your variant for your ABAP program.  In your BWQ (test system), you will have two logical systems also, R3QCLNT100 and R3SYSTEM, where R3QCLNT100 is also your source system.
    Does this help.

  • Transport issue- Process chain

    Hi Folks,
    I am facing a issue  when transporting process chain,
    Am transporting a set of process chain using transport connection  a) when I choose all the objects and create a request and save it,  I get a message saying ' specify request', however the request is generated.
    b) When I transport the request I get an error as " Source system   does not exist".
    I checked conversion of logical systems  and RSLOGSYSMAP system, I dont find any issue.
    Would appreciate quick response.
    Thanks,
    Ravi

    Thanks Sheetal,
    My settings are fine,
    I tried removing the info package and do, no much of a change, however afte specify request is continously checked I get the errors as " Errors occurred when saving dependent object R3TR/PROG/ZMAJ_SUIVI of RSPV ABAP      MAJ_SU",
    I guess its related to process variant, but as per my understanding the process chains can be transported with Variants,
    Any help ??
    Regards,
    Ravi

  • How to Trigger a Process Chain through ABAP Program

    Hi
    I have a Requirement to trigger a process Chain on 1st, 2nd and 3rd day of the month for 2 times in a Day.
    Can any one give me any idea, how i can do it by writing a ABAP program and triggering the Process chain.
    If anyone can share the Logic for ABAP program means, that will be helpful for me, as i dont have much expertise on writing ABAP program.
    Regards,
    Muruganand.K

    Hi,
    you can achieve this in a following way.
    DATA : v_date type sy-datum,
    v_day(2) type c.
    v_date = sy-datum.
    v_day = v_date6(2).+
    if v_day = '01' or
       v_day = '02" or
       v_day = '03".
    CALL FUNCTION RSPC_API_CHAIN_START.
    pass the name of the chain to this function module.
    hope this wil help.

  • Triggering of process chains based on  events

    Hello experts,
    I have a requirement to trigger the process chain whenever there is a file placed into the application server.
    The file comes comes into the application server  randomly i.e not periodically and the file name comes with created date and time.
    My process chain has to run immediately once file has been placed in the application server.
    Can you help me on this?
    Regards,
    Babu
    Please search the forum before posting a thread
    Edited by: Pravender on Aug 22, 2011 2:49 PM

    Hi
    This means your Event need to run every day to check if the file exist or not? if the file exist in the application server then PC need to be triggered.
    Take the help of ABAP person, so that he can implement the logic you are looking for.
    Check the below link which can give u idea how to proceed.(its also similar to ur requirement)
    Triggering the Process Chains at Particular Date using Events
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0a41bc6-a7f6-2b10-b3bf-804e1c45ae6c

Maybe you are looking for

  • Greyed out loops in Garageband 11?

    I installed GB11 from the Mountain Lion's Appstore and not from an iLife DVD. It required an update for the loops and most of them downloaded but there are still some greyed out buttons. Here's a pic: http://imgur.com/5OgugCL All the support pages an

  • How can i save the data from ALV grid to my database tables?

    Hi all, Suppose in a grid i want to edit some fields and after editing the data i want to store the refresh data to my database tables. How can i do that? what is procedure? Please tell me in details. Thanks in Advance, Abhijit.

  • Where can I find a new or used version of Tiger?

    Hi, I would like to upgrade my old g4 Ibook, 10.3.9 (Panther) to run either Tiger or Leopard.  Where can I buy either new or used versions of this software?  Used would be fine, as long as it works.  The Apple store doesn't sell these anymore, and wh

  • Wait step in BPM hangs!

    Hello, I am using a wait step in a BPM. Type is "Wait specified time period". The period is 2 minutes. I can see from process monitoring that my BPM reaches the above step. And then it just hangs !!!! Time goes by but nothing happens. The BPM never!

  • Data not entering the BPM

    Hi all, we are getting the following error while executing our BPM:Error during delivery of message 4A1544A8556D5066E10000000F8DE018 to receive processes. The file isn't going to the receive step in the BPM. Can anyone tell me what this error means a