What are start and end routines in BI 7.0..

Hi,
Can you please explain and give me a sample code ?
thanks

Hi,
depending on your data flow you have to use the routines .
Start routines - start routines:
It is used to perform preliminary calculations.if you have any modifications required before the actual transformation is done, then you must write those routines in the start routine of 7.0.
End routines - new:
You can use an end routine to postprocess data after transformation on a package-by-package basis.
Expert routine - update routine :
You can use the expert routine if there are not sufficient functions to perform a transformation. The expert routine should be used as an interim solution until the necessary functions are available in the standard routine. You can use this to program the transformation yourself without using the available rule types. If you have already created transformation rules, the system deletes them once you have created an expert routine.
Also Check the below link for detail info.
Routine in Transformation.
Reg
Pra

Similar Messages

  • Start And End Routine !

    Hi All,
                  In BI 7 we have a start routine and end routine. In end routine we delete all the transformed records that need not be updated to the infocube. Which we can also do it in the start routine. In that case Y do we need a End routine.
    Regards.

    Hi,
    1. Start Routine : whenever you create a start routine, the system will automatically give you some predefined data declaration like structure of the type of your source. In start routine you can declare a local data declaration and Global data declaration also. I will give one example.
    Suppose you are creating Start routine for transformation from Datasource to DSO. Then when you create start routine the System will provide you a structure of your datasource. By using this structure it will also define an internal table which will be used as changing parameter of a method of a class. It is this changing parameter where you have to do all sorts of manipulation. The changing parameter is both export as well as import parameter. This changing parameter will contain data in the package wise.
    In start routine you can also read some database table and store that data into an internal table and this internal table data can then be read in the field level routine. In this case it acts as a substitute of master data look up in the field level transformation.
    2. End routine : The end routine is also same as start routine, the only difference is that here the system will provide you with a structure of the target not the source. and rest is all same as start routine.
    assign points if it helps
    Thanks & Regards
    santo

  • Burning CD-why are start and end times off?

    I can burn a CD fine, but when I play it back, the tracks are off. For example, when I skip to the next song, I'm seconds into the song already. Also, the times on the CD don't match itunes. The first track in itunes shows 3:54, while the CD shows 3:56. How can I fix this?
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    System Manufacturer System Name
    iTunes 6.0.4.2
    CD Driver 2.0.4.3
    CD Driver DLL 2.0.3.2
    LowerFilters: PxHelp20 (2.0.0.0), bsstor (0.9.0.0),
    UpperFilters: GEARAspiWDM (2.0.4.3),
    Video Driver: ALL-IN-WONDER RADEON 7500\ALL-IN-WONDER RADEON 7500
    Found aspi32 running.
    SCSI\DiskSEAGATEST336752LW_____0004, Bus Type SCSI, Bus Address [0,0]
    USBSTOR\DiskApple__iPod___________1.62, Bus Type USB
    USBSTOR\DiskGenericSTORAGE_DEVICE_9144, Bus Type USB
    USBSTOR\DiskGenericSTORAGE_DEVICE_9144, Bus Type USB
    USBSTOR\DiskGenericSTORAGE_DEVICE_9144, Bus Type USB
    USBSTOR\DiskGenericSTORAGE_DEVICE_9144, Bus Type USB
    USBSTOR\DiskGenericSTORAGE_DEVICE_9144, Bus Type USB
    IDE\CdRomMATSHITADVD-RAM_SW-9573S_______________AZH3___, Bus Type SCSI, Bus Address [0,0]
    Current user is administrator.
    D: MATSHITA DVD-RAM SW-9573S, Rev AZH3
    Audio CD in drive.
    Found 19 songs on CD, playing time 79:50 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 03:58:15
    Track 3, start time 08:14:63
    Track 4, start time 12:19:35
    Track 5, start time 17:41:65
    Track 6, start time 21:19:37
    Track 7, start time 25:34:08
    Track 8, start time 29:34:49
    Track 9, start time 34:07:01
    Track 10, start time 37:53:57
    Track 11, start time 43:59:27
    Track 12, start time 46:03:41
    Track 13, start time 49:53:20
    Track 14, start time 56:44:25
    Track 15, start time 61:07:65
    Track 16, start time 63:43:70
    Track 17, start time 67:22:24
    Track 18, start time 72:32:65
    Track 19, start time 76:16:74
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are: 8 12 16 24.
    The drive CDRW speeds are: 8.
    The drive DVDR speeds are: 8.
    The drive DVDRW speeds are: 8.
    The last failed MP3 CD burn had error code -128(0xffffff80). It happened on drive D: MATSHITA DVD-RAM SW-9573S on CDR media at speed 0X.
    Home Made   Windows XP Pro   2.2GHz 1GB RAM

    Hi all,
    Just come across the same issue and found this post.
    You may all know but I found this OSS note which explains it every well
    330384 - Basic finish at incorrect time: 00:00 / 24:00
    Symptom
    You execute a scheduling of several orders with material reference, for example, a collective order
    scheduling is carried out.
    In order to determine the basic finish dates, the basic dates of all orders are set to 00:00:00 or
    24:00:00.The in-house production time of the materials is not evaluated for each order.
    Other Terms
    Collective order, network, overall network, basic date, basic dates
    CO01, CO02
    Reason and Prerequisites
    The problem is caused by a program error.
    You determine the time of the basic finish date by considering the in-house production time of the
    respective material.
    l If the in-house production time is greater than 0 days, the basic finish date is set to 00:00.
    l In the case of an in-house production time which is equal to 0 days, the basic finish date is
    set to 24:00.
    In this case, also refer to Notes 150007 and 151503.
    The problem occurs because only the in-house production time of the material of an order is
    interpreted for scheduling several orders.
    Solution
    Implement the attached program correction.
    In advance of this, implement the corrections contained in Notes 194019, 215792 and 322898.
    Interpretation of the in-house production time of the materials for each order.

  • Difference between Start Routine  and End Routine in Transformations

    Hi  Friends,
      I'm using BI 7.0... here in Transformations step  we have two options..that is START ROUTINE... and END ROUTINE... What is the Difference between Start Routine  and End Routine in Transformations..
       When  we go for Start Routine.. and when we go for End Routine..
    Plz clarrify... points will be rearded..
    thanks
    babu

    Hi,
    One real time scenario for End Routine.
    We have a scenario where in a datasource field is mapped to three infoobjects on the datatarget side. There are 2 key figures which need to get data after these these Infoobjects are filled. The best place for this to happen would be in a End Routine, where in we would loop through the results package and using the values of the infoobjects from the data target ( Cube in this case).
    Hope this helps,
    HD

  • What parameters determine Planned order production start and end dates?

    Greetings
    We are using the graphical planning table @ MF50 to firm Planned Orders (Basically checking off "Firm Order" field within the Planned Order). We are on ECC 6.0
    Whenever I backflush, the production start and end dates get overwritten (The Basic dates do not change).
    I would like to prevent this. Can someone advise me on what parameter controls how the production start and end dates getting changed?
    Thank you
    Hanarin

    Hi,
    Calculating production dates ( Lead time scheduling) are explained in detail in the SAP help URL as below:
    If "Automatci Scheduling indicator" is set in the customizing for scheduling parameters then after every change relevant to scheduling, the production order is also automatically rescheduled before saving.
    You need to check these settings.
    regards
    Datta

  • Stacked area chart with start and end dates

    Hi,
    I'm trying to create a stacked area chart from values that have a start date and an end date. I'd like the area to be drawn as a sum of the values at each x-axis date interval. So if I have data like:
    Start              
    End               
    Value
    2013-01-01      2015-01-01     
    100
    2013-09-01      2014-01-01     
    200
    2013-01-01      2016-01-01     
    300
    What I need is to have the chart show the area y-axis at 400 from the start up to 2013-09-01 where it would rise to 600. At 2014-01-01 it would drop back down to 400 and at 2015-01-01 it would drop to 300 until the end.
    Is this possible without calculating the sums for each date beforehand?

    Hi Erba,
    According to your description, it seems that you need add Start and End fields with the same level (without group relationship) to the x-axis in stacked area chart. As per my understanding, we couldn’t add multiple fields in one group at the same level.
    So in order to work around this issue, we can modify the dataset to combine the Start and End field into one filed, then add the new filed to x-axis. For more details, please refer to the steps below:
    Modify the dataset with the following query statement:
    select Start as date , Value as value
    from table_name
    union
    select [End] as date, (0-Value) as value
    from table_name 
    Drag a Stacked Area Chart to design surface.
    Insert value field to Values pane, then modify it with the expression below:
    =runningvalue(Fields!vlaue.Value,sum,"DataSet_name")
    Insert date field to Category Group pane.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SNP Planned order start and end dates are not calculated correctly

    Hello SNP Guru's
    The SNP planned orders generated after the Heuristics run, have a start and end date based on the Activity Duration (Fixed), while the resource consumption is based on the Bucket Consumption (Variable), which is correct.
    The Activity Duration (Fixed) is based on the BOM Base Quantity. So if the Activity Duration = 1 day, and if the order quantity is more than a day, the start and end dates, still shows as 1 day. So no matter what is the order quantity, the start and end dates is always = 1 day.
    Does anyone have any experience in implementing any code to change the start and end dates on SNP Planned Order?
    Seems like it should work as standard.
    Am i missing something?
    Thanks,
    Mangesh

    Dear Mangesh,
    SNP is a infinite planning tool. If you have defined fixed duration to be 1 DAY in the activity, no matter how many quantity you input for your planned order, the order will last for one day. If the resourced is overloaded, you then run capacity levelling to
    banlance the capacity. What your expected beahavior happens in PPDS planning.
    Claire

  • Both my I-Pad and mini I-Pad keep getting dropped off what ever website they are on and end up on the homescreen.  This happens randomly and often.  What is happening?

    Both my I-Pad and mini I-Pad keep getting dropped off what ever website they are on and end up on the homescreen.  This happens randomly and often.  What is happening?

    Both my I-Pad and mini I-Pad keep getting dropped off what ever website they are on and end up on the homescreen.  This happens randomly and often.  What is happening?

  • How to delete data from a DSO using start or end routine

    Is it possible to delete records from a DSO in the start or end routine.
    My example:  I have order 123, item 10, sched line 1.  This gets loaded into the DSO.
    Next day I have order 123, item 10, sched line 2 coming in.
    I want to delete the first one (with sched line 1) from the DSO and load the second one (with sched line 2).
    Can code be put in the start or end routine to do this?

    unless I can do it within the start routine I don't want to have to create new records.
    In the start routine I am comparing records coming in with what are already in the DSO.  If there is a match on order and item and the sched line is different, then I want to delete the record from the DSO and load the new one.  Is there code that I can put in a start routine to accomplish this?

  • What are the types of routines

    hi experts
    can some one give me clear idea on what are the types of routine we use in sap bi
    with scenarios?
    what is CMC?
    Please search the forum before posting a thread
    Edited by: Pravender on Apr 7, 2011 12:56 PM

    Hi,
    In BI 7.0 we have the following types of routines.
    1. Start Routine.
    2. End Routine.
    3. Expert Routine.
    This routines can be used in the complex scenarios and to improve the performance of the loading time.
    I am elaborating the routine in details here.
    1. Start Routine : whenever you create a start routine, the system will automatically give you some predefined data declaration like structure of the type of your source. In start routine you can declare a local data declaration and Global data declaration also. I will give one example.
    Suppose you are creating Start routine for transformation from Datasource to DSO. Then when you create start routine the System will provide you a structure of your datasource. By using this structure it will also define an internal table which will be used as changing parameter of a method of a class. It is this changing parameter where you have to do all sorts of manipulation. The changing parameter is both export as well as import parameter. This changing parameter will contain data in the package wise.
    In start routine you can also read some database table and store that data into an internal table and this internal table data can then be read in the field level routine. In this case it acts as a substitute of master data look up in the field level transformation.
    2. End routine : The end routine is also same as start routine, the only difference is that here the system will provide you with a structure of the target not the source. and rest is all same as start routine.
    3. Expert routine : This is the strongest and most complex of all routines. This allows you to design the entire data flow of the transformation. If you create an Expert routine the system will automatically delete all the field level mapping, Start routine and end routine. You also have to take care of the error handling and monitoring
    assign points if it helps
    Thanks & Regards,
    santo

  • Month View:start and END times

    Here is feature that i really need In the Month view: The option to have start and end times displayed. Now that their is no info drawer i have open and info drawer to see when the event is supposed to end. I have a lot of events in a day and some are for me and some are for my company and some are for my wife.
    I need to see the start and end time quickly. Outlook does it.
    Please make iCal do this incredibly useful view option.

    Start times are still viewable.
    It is a click box in the preferences that says show time in month view.
    What i need is the END time as well.
    I learned that the best place for this kind of discussion is on the feedback line for ical
    http://www.apple.com/feedback/ical.html
    Just tell them the features you need or miss. Please click the link and tell them what you think of iCal.

  • Changing Media Start and End of Logged Clips

    This should be really simple, and I'm sure I'm just overlooking something. I am trying to recapture some clips in Final Cut Pro and it was fine until I came to a clip that gave me the "timecode error - pre roll, post roll, etc" message. The Media Start on the problematic clip is at 00:00:01:04 - I want to manually change this time to allow pre-roll. The timecode in the "In" and "Out" sections isn't making a difference and seems unrelated - no matter what I put it to.
    So I just want to edit the Media Start time as I'm sure this would remedy my timecode error when trying to capture... but I can't edit that field. What am I doing wrong? How do I change the Media Start time?
    I could recapture the whole tape independently but I already have sequences edited based on my previously logged clip. Any help would be greatly appreciated. Thanks!

    If you are re-capturing then you must have used Capture Now to get the clip first time round or you would have run into the same trouble with pre-roll. You'll have to capture the clip again using the same method. Of course, the chances of getting the same start and end code using Capture Now are slim, but if you can get in earlier and out later then you should be able to manually re-connect the clip.
    rh

  • Scanning an ascii string for a start and end character

    I would like to watch data lines on a com port and pick off a part of a
    line that starts with a "$" and ends with a CR. I would like the
    felxibility to select different start and end characters also. Is this
    doable with LabView? I have the com port monitoring done I need to
    separate incoming strings. I can't count chacters because the data
    lines varies in length each time the data line comes in. Thanks in
    advance fir the help.
    [email protected]

    If you don't want to mess with having to decide whether or not you need to pre-pend a "\" to the character you are feeding into the match-pattern function then you could just do it all with byte arrays like in the attached example. The example also shows various ways that ASCII controls & indicators can be configured to allow you to more easily handle non-visible characters (just right-click on the front panel control/indicator and select normal, \ codes, hex or password).
    As far as your question about the error code meaning, you can right-click on a front-panel error cluster and select the "explain error" option to see all the known causes of the error. You have to then interpret this in the context of what you were doing. When I drop an error cluster on a front panel, set status to Error and code to 85, I can right click on it, select "explain error" and get this:
    "Error 85 occurred at an unidentified location
    Possible reason(s):
    LabVIEW:  Scan failed."
     ...and that sounds to me like (as a WAG) you might be trying to use the Scan From String function with input data that does not match the format string.
    Attachments:
    String Subset.vi ‏53 KB

  • Reduce Working Days by Emp Start and End Dates

    I'm banging my head trying to get this working. The set-up:
    DimResources table with various employee information including a Start and End Date.
    A Calendar table with FullDate, Year, Quarter....WorkingDays (1 for working and 0 for non-working) and WorkingDayNumber (working days increased by 1, weekends are not).
    Page View report with page view filters for Business, Role, Month, Week, Year.
    In the calculation the denominator is total working days for the period * 8. Works great. Further reduced by any submitted time off. Again, so far so good. The part I'm having trouble with is trying to further reduce total working days by
    the number of days the person wasn't available in a month, defined by the person's start or end date.
    The calculated field works great when only 1 person is selected. As soon as more than 1 person is selected or the slicer is cleared, an error is thrown.
    Any ideas on what is wrong or better ways to accomplish what's needed?
    TotalWorkingDays2CF=CALCULATE
     SUM(Calendar[WorkingDays]),
                    FILTER(Calendar,Calendar[WorkingDays]=1),
                    Calendar, DATESBETWEEN(Calendar[FullDate],SUM(DimResources[Start Date]),SUM(DimResources[End Date]))
    Error:
    <detail>
      <ErrorCode>rsErrorExecutingCommand</ErrorCode>
      <Message>Query couldn't run for dataset 'Tablix41DataSet'.</Message>
      <ProductName>Power View</ProductName>
      <ProductVersion>11.0.2150.3</ProductVersion>
      <MoreInfo>MdxScript(Model) (10, 27) Calculation error in measure 'Calendar'[TotalWorkingDays2CF]: An invalid numeric representation of a date value was encountered.</MoreInfo>
    </detail>
    Dennis DeRobertis

    ok, but this is not a running total but just a sub-total/grand-total
    so what you can do is the following:
    create two measures - first calculate the workdays per ressourcen and second use SUMX() to get the sub-/grand-total if multiple employees are selected (e.g. subgroups, groups,division, etc)
    WorkdaysRessource:=CALCULATE(
    COUNTROWS('Date'),
    FILTER('Date',
    'Date'[Date] >= CALCULATE(MIN('DimResources'[Start Date]))
    && 'Date'[Date] <= CALCULATE(MIN('DimResources'[End Date])))
    Workdays:=CALCULATE:=SUMX(
    'DimResources',
    [WorkdaysRessource]
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Getting the start  and end dates of the week

    Hi,
    I was stuck with a problem in getting the start date and end date of the week,i know the month ,week and year also,with these three values how can i get the start and end dates of a week.please help me
    Thanks

    There is no simple way. It has to be a math calculation.
    There are several ways you can get the dates. First you have to know what day is January 1st and what day is december 31st for a particular year. Second you have to check whether the given year is a leap year or not. Based on the abvove information you should be able to find out what day is a particular date.
    Hope this helps to get you started.
    - Venkat Dhurjati.

Maybe you are looking for

  • Asset problem

    Hai sap friends, At the time of the asset master creastion i have faced in this problem. Customizing inconsistency - missing/incorrect entry in table T093B Message no. AY159 Diagnosis There is a Customizing inconsistency. Chart of depreciation 1000 c

  • How can I extend the  JCA File Adapter

    I would like to extend the JCA File adapter. I want to overcome the file size limit of the File Adapter. I want to the JCA Fileadapter to have the following functionalites. 1. Split a file into smaller chunks, The chunk size will be set at design tim

  • Page not displaying

    Hello When we click on our itunes link it does not take us to our itunes-u university page, instead it takes us into itunes and we get a 404 error in our browser window. The site worked fine until two weeks ago. Does anyone know what would cause this

  • Location and info about the config file for Shared connection URL

    Hi, Where does HypGetSharedConnectionsURL VBS function retrieve information from? In the help, only information is that it retrieves from the config file Thanks

  • Authorisation issue regarding BEX Broadcaster

    Hi all Does anyone know why I maybe getting an authorisation issue attempting to broadcast a pdf report via the Bex broadcast tool? The recipient user has all the relevant authorisations and roles attached, and when this report is previewed in Bex Re