Start & End Routines in BI 7  Transformations

Hi,
In Transformations from DSO1-->DSO2
In Start Routine for all entries in Source Package i read some fields from DSO3 and filled an iternal table
And  in end routine i read the iternal table and filled the result package/fields
In the mapping i haven't mapped any thing to the fields to which i intended to fill using routines
When i executed data load those fields are not populated with any value
But if i debug the transformation...results are updating in all fields in the  result package.......
Do i need to make any setting or mappings to the fields which i want to update using end routine
Thanks

HI,
For support pack 16 and above you get one more button besides End Routine (once end routine is created).
This button is to update behaviour of fields in End Routines. You get two options once you select this button. One needs to make selection of proper option as it is mandatory.
The default setting for the pushbutton is that only the fields with active rules are updated in the transformation. With this selection, fields populated in End routine wont be updated in the data target if no active rule exists for them in Transformation.
Alternatively, you can define that all the fields should always be updated by selecting 2nd radio button. As a result, fields filled in the end routine are not lost if there is no other active rule.
So in your case if you are in SP 15 or lower, then you will have to map the fields.
Go through this article it gives the above explanation along with screenshots.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30d35342-1fe3-2c10-70ba-ad0da83d23bd
Hope this helps.
Thanks,
Rahul

Similar Messages

  • Finding the simulation mode in start/end routine

    Hi ,
    I am also updating some other tables in my transformation apart from the actual target infoprovider data.
    But I would like to update those other tables only when the DTP is actually run and don't want to update when DTP is run in simulation mode.
    Is there any way in the start/end routine to find whether the DTP execution is simulation or Real?
    Regards,
    Ramesh

    Hi,
    This is not possible in the start routine as this check is done even before reaching the start routine by using the method :
    if_rsbk_dtp_maintain~set_simulation
    -Vikram

  • Primitive APAB editor in start/end routines in transformations

    When editing or viewing ABAP code in BI transformations, for example in a start routine, the editor that opens is very primitive compared to the normal SE38 editor. Some of the limitations include:
    The editor window doesn't cover the whole screen with seemingly no way to increase its size.
    The syntax check doesn't show on which line syntax errors are located.
    There is no option to perform a extended program check.
    There is no way to insert break-points (other than with the ABAP keyword of course)
    These limitations are present regardless of whether i choose the new front-end editor, the old front-end editor or the back-end editor. We're running SAP Netweaver 2004s.
    It is of course possible to create a program in SE38 and copy-paste your start routine code to see the code using the "real" editor, but this is very tiresome and time consuming. Is there a way to make this editor look and behave like the normal editor? I have looked through the setting options an searched SDN without finding a way.

    Hi,
    This is just the settings you need to change to open the start,end, and characteristics routine using the old editor you are comfortable with. No need to go to se38 and check copy the program.
    Go to se38->Utilities->settings->abap editor->editor tab->select the old abap editor.
    To specifically put break point in transformations (start routine..end routine..)..goto transformation (RSA1) and then display the transformation.
    Then goto extra (menu)->generated program. search for start_routine (method now) and put break point in the desired place.
    Then from the DTP enable all 4 break points..in tranformation (this will come when u cange it to debug mode simulation). And u can debug the transformation.
    The new editor is a good handy one. But take some time to get acquented to it. After you may start liking it :).
    Cheers,
    -J

  • Thumbrule for Start/End Routines Usage

    Friends,
                 Is there any thumb rule to decide when to use start or end routine in BW 7 in transformations ?  Can anybody provide a scenario for demonstration .. from performing simple lookups on different DSOs to get descriptions vs any other specific scenarios..   Is there any scenario in which only start or only end routine can be performed.. ?
    Any thoughts would be great..?
    thanks,
    Sunil

    Start routine is totally concerned with source data , where you need to write logic for source_package.
    Start routine will execute before transformation execution.
    Executes packageby package.
    loop at source_package into source-feilds.
    End routine works on target structure  and we have lo write logic on result_package.
    Genarally dso lookups are concerned with end routines.
    loop at result_package into result-feilds.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/609eea32-455e-2c10-c08a-c23adf8c934e
    http://forums.sdn.sap.com/thread.jspa?threadID=1963087
    Regards,
    rvc

  • Error in  END ROUTINE while activating the transformation.

    Hi ALL,
    While writing an END ROUTINE IN BI, I got no error while saving the code.
    But when Activate the Transformation I got the following Error.
    " Syntax Error in GP_ERR_RSTRAN_MASTER_TMPL,row 54(->long text)
    Diagnosis:Component called CRM_OBJ_ID already exits  "
    I have used the above object in the transformation.
    Please help me debug the error or highlight on it.

    Hi,
    i guess u have create two object with  same variable name.check.
    regards,
    rakesh

  • Check if a DSO has been lookup by other DSO/cube in start/end routine

    I have to support on of the client system which I am not part of the development.
    I found one DSO has been schedule to load data in daily process chain but it is not update to any target.
    Is it possible to check if this DSO has been using in the staging  i.e look up the reference field by other cube/DSO in start or end routine ?

    Hi,
    Possible by invoking respective field into code part.
    I think not much stuff required in this regard.
    Thanks - RK

  • Start - end routine modeling

    Hello experts,
    I have a fairly large source package 3 million lines. From that one line that starts with a specific patern for example date* has the date of the file.
    I need that date in order to use it at the transformation.
    The problem is that i cannot know in which package the system will find that date.
    So even if i find it with abap at the start routine, the packages before that will not have that date which i need.
    Any thoughts?
    Thanks
    Yannis

    Hi Yannis,
    here's an idea that allows you to stay in BW.
    1) Load your file into a new DSO or new InfoObject. In the start routine you delete all lines except the one of the 3 million that you need first.
    2)Then as a second step you load the same file into your main target and you use a lookup into the new DSO to get the date you are after.
    If you use the same datasource for both you can even use the same PSA. Use a Process Chain to make sure step 1 is executed before step 2 is started.
    Best,
    Ralf

  • Start/End routine code to delete last 5 characters

    Hi All,
              I have a field 15 CHAR in length in my data source. The first 10 characters are always numbers followed by a hyphen(-) and 4 more numbers.
    I want to store this into my DSO as a 10 character field containing just the first 10 numbers and drop the last 5 characters. Can anyone suggest me the routine for this?
    Thanks!
    Missy

    Hi Missy,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/609eea32-455e-2c10-c08a-c23adf8c934e?quicklink=index&overridelayout=true
    Have a look to above docs link.
    I hope, it will help you alot!!!
    Thanks,
    Ajay

  • End Routine Code not Working after Support Pack Upgrade

    Hi BI Community,
    We have recently upgraded to SPS17 (BW SP19) for our production system and the code deriving the values of several attributes in the end routine of the transformation for one InfoObject (as info provider) does not work anymore. We have been trying to identify the root cause but the fact is that we did not change anything to the InfoObject and its transformation and this used to work fine. The strange thing is that when we debugged the code we could see the value of the aforementioned attributes was derived correctly but the value is just not updated to the InfoObject where we still see the old values for these attributes.
    We have a similar InfoObject with the same end routine code in the transformation and it is working fine. We are out of idea what could have caused this during the SP upgrade.
    Thanks in advance for your feedback.
    Regards,
    Peter

    Cannot say what might have caused it but one check you can perform.
    Open your transformation in change mode and you can see a button next to create end routine button, titled ' Update Behavior of End Routine Change', click on that and say all fields.
    Hope it helps...
    Regards,
    Ashish

  • 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

  • BI End Routine MONITOR entry overwrites Start Routine MONITOR entries

    Hi Colleagues,
    I'm using MONITOR TYPE rstr_ty_t_monitors in start routine as well as in end routine of transformations.
    But DTP request monitor shows only my end routine monitor entries under "Start routine" and my start routine monitor entries are not shown.
    msgid = RSM1
    msgty = W or E
    msgno = 799
    Any suggestions?
    Thanks and regards,
    Wolfgang

    Fixed by SAP by means of support package.

  • Calculations in Update rules/Start routine/End Routine

    Hi Friends,
    I have loaded data to a DSO and i have three fields in to it. Lets say Filed1, Filed2 and Field3. Field1 and Field2 are being populated through an update rule in transformation. Aggregation type for these two fields are "Summation".
    Now, after the transformation executed, the Field1 and Field2 are filled with values. I want to calculate the value of Field3 as follows:
    Field3 = Field1 - Field2
    Can anyone tell me where can i do this calculation? I know we can do this in End routine and in Query  but i want to know if there is any other place i can do this calculation in transformation? In try to do this calculation in the update rule for Field3 in transformation, i dont see Field1 and Field2 as these are not source fields. I can not write formula also because we can write formula only on source fields not the data target fields.
    Your help will be appreciated in terms of points.
    Thanks,
    manmit

    Hi,
    in the start routine in the global section define the two fields:
    data: g_amount1 type /bic/oi<your keyfigure name>,
    g_amount2 type /bic/oi<your keyfigure name>.
    in the routines to your 2 keyfigures store the result in that fields too.
    routine for field1.
    g_amount1 = result.
    routine for field2.
    g_amount2 = result.
    and in the routine to field3
    result = g_amount1 - g_amount2." or whatever calculation/derivation has to be done.
    kind regards
    Siggi
    Message was edited by:
            Siegfried Szameitat

  • 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

  • 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

  • Start,end and expert routine in Bi7.0

    Hi,
    Can anyone give real time examples or what you have done in your projects examples to start routine,end routine and expert routine.If possible give example with ABAP code.
    Sridhar

    Hi Sridhar,
    The basic difference between these routines is.
    Start routine: Here you will access to the source package, but not to the target package. Here you will have the code to filter unwanted records to the target.
    End routine: Here you will not have access to source package but you will have access to the target package. Here you can do the lookups based on the values you receive from the transformations.
    Expert routine: Here you will have access to both Source and Target. Here you can combine the advantages of both.
    The below code is for Start Routine. To send only the record satisfying the below criteria.
    u2022     For Currency Type = u2018B0u2019 and Transaction Type = u2018Bu2019 or u2018Cu2019 or u2018Fu2019
    This is a scenario where data is going from one info provider to another info provider.
        DATA:  wa_srcpkg TYPE tys_sc_1..
        DATA: i_t_srcpkg TYPE STANDARD TABLE OF tys_sc_1.
        LOOP AT SOURCE_PACKAGE INTO wa_srcpkg.
          IF wa_srcpkg-curtype = 'B0' AND ( wa_srcpkg-rec_type = 'B' OR
                  wa_srcpkg-rec_type = 'C' OR wa_srcpkg-rec_type = 'F').
            INSERT wa_srcpkg INTO TABLE i_t_srcpkg.
          ENDIF.
        ENDLOOP.
        SOURCE_PACKAGE []  = 
                                             I_T_SRCPKG[] .
    Hope this is of some help...
    Regards,
    CK
    Edited by: Krishna on Jul 15, 2008 3:06 AM
    Edited by: Krishna on Jul 15, 2008 3:07 AM
    Edited by: Krishna on Jul 15, 2008 3:07 AM
    Edited by: Krishna on Jul 15, 2008 3:08 AM
    Edited by: Krishna on Jul 15, 2008 3:09 AM

Maybe you are looking for

  • Satellite L50D - Boot issues after Hard Drive replacement

    I have just upgraded my hard drive from the pathetic 5400 crod they supply to an SSHD@7200rpm but now have a major issue. I initially imaged the os from the old hard drive back to the new drive and have had chronic boot issues (1 in 3-4 boot attempts

  • Tecra M1 - Modem doesn't work (can't open a port)

    I have a problem: After reinstalling WinXP and drivers on my Tecra M1, modem doesn't function. It even can't diagnose itself - there always comes a warning: "Can't open a port (COM). It may be used by another device or application". I installed the l

  • Problem facing in SO order

    Hi I am facing problem in sales order when trying to maintain of Reason for Rejection. System showing error message " You cannot select assembly order XXXXXXXXX deletion" This is Project based scenario. Please provide your valuable input and it is ve

  • PSE 8.0 werkt niet

    Ik krijg in de PSE 8.0 Editor steeds deze boodschap "Ongeldig getal. Een getal tussen 0,01 punten en 1296,00 punten is vereist. Laatste geldige waarde wordt herstelt" Daarna reageert de Editor niet meer en moet ik het programma stoppen. Ik kan dus ni

  • Not so Smart app

    Having a nightmare with the BT SmartTalk app. It works great until you need to change or remove a user and then you end up tearing your hair out. I have the app on my iphone and it works fine. I added my son as a household member so that he could hav