End routine  not workind when DSO Activated

I have code in End routine of the transformation to populate a date field (from sales header to  sales line item to have the assocaited date to populate for each line item ) to the DSO.
The code works and displays data being populated in new data table before DSO actiavtion but when DSO is activated, the particular  field is blank.
Please suggest.
Thanks.

Hi,
Your answer is explained in the below link:
http://help.sap.com/saphelp_smehp1/helpdata/en/48/6e375c0b104e6de10000000a421937/content.htm
this is happening because of the "Update behaviuor in end routine".
It has two options - only fields with active rule(Default) & All fields.  Since the default setting is that the end routine is active for fields which have and active rule for it and not for other so for the field for which u have written the code is not having any active transformation thats why its not giving any value after activation.
Please change the properties, for how to set this option chcek the link.
Thanks
Dipika

Similar Messages

  • Data fields not filled in DSO Activation

    Dear All,
    I have written an End routine to extract data into a DSO to fill some data fields. The End routine will perform a lookup on another DSO and modifies the records of the result_package. The data fields are characteristics and hence in the transformation, they are set to No Transformation.
    When I extracted the data into DSO, the new table has all the data fields correctly filled. But, after activating the request, all the data fileds data are erased. However, the keyfields data is still available in the Active table.
    Can you please help me on this.
    Thanks,
    Srinivas

    Hi Srinivas
    I have faced the same issue.Data was coming till new table,but after activation fields were getting
    blank.
    There is no necessity for doing a dummy mapping. In the transformation screen you will be having an ikon near to the delete
    routine symbol with an arrow symbol
    similar to select all and unselect all, just clikc on it and then mention the setting as Update all the target fields need to be populated.
    This will solve the issue, if it is not solved, then you can make a direct mapping to any of the field in the source, it need not be the
    exact field in the target.
    Thanks,
    Saveen Kumar

  • End routine not updating all records

    Hi,
    I have an end routine to update a cube from another cube.
    The routine has two loops, one child loop inside the main loop. Result Package was sorted before the loops.
    Now, not all records were updated in the target infocube as per expectation. Also, when I pick one such record (that did not get updated) and debug, interestingly it shows that expected value has been assigned to the relevant field. And if I upload only that specific record to the cube, the record does get updated with expected value.
    The problem seem to appear only when the whole set of data is loaded.
    Any suggestion about the coding or further debugging will be greatly appreciated.
    Thanks,
    Pranab

    HI,
    check if u r using any internal tables, make this itab refresh at correct point.i tmight be sumtimes create problem.
    else paste ur code here...
    thnks.

  • Not synced when I activated....now no Outlook to sync

    Hi everybody,
    I activated my iPhone but I didn't sync contacts and calendar in the biginning because I didn't have Outlook installed yet, thought I could do it later since I was using Palm Desktop. I then istalled Outlook.
    Now when I check for syncing contacts and calendar iTunes doesn't show the option to sync with Outlook....only with Outlook Express which I already had when I activated the iPhone.
    How do I get iTunes to find Outlook???? thanks

    Different versions of outlook programs will not install if the previous version is still active and installed. I suggest saving all of your outlook files-(see below), uninstall any outlook programs, Re-Install the desired outlook program. However, do not upload any saved files until you are able to sync your outlook program with the iphone. The iphone support pages list outlook 2003 & 2007 as compatible programs. I do not know if any other version of outlook will work.
    There should not be any problems up loading your saved outlook files after you have sync the programs.
    SAVING OUTLOOK FILES 2007 PROGRAM-(Other Outlook programs may differ slightly)
    SELECT: file MENU> SELECT: Import and Export> SELECT:Outlook>
    SELECT: Export to a file> SELECT: Next>
    SELECT: Personal Folder File (.pst)> SELECT: Next>
    SELECT: Personal Folders & Include subfolders check box> SELECT: Next>
    SELECT: Browse-to choose your export file location
    SELECT: Your Option choice
    SELECT: Finish
    (Use the same file menu process to Import your saved files)

  • Add call button not present when in active call

    Hi all,
    I have a MacBook Pro (the latest one with Yosemite 10.10.2). I dont have an iPhone so no integration has been done. I was watching Modern Family - "Connection Lost" episode and I saw Claire adding another call when she was in a Facetime video call.
    But I dont have a green color "Add Call" button on the top right in my device. I searched online and found info similar to what she did like "End current call and answer" or "Accept call" options when another call comes in. But I cant find these in mine.
    Can someone help me out with this?

    Salim,
    In APEX 4.0 we moved the server-site add-row functionality to a client-site implementation, i.e. instead of having the page be reloaded every time you add a row, this is now done on the client without reload. Tabular forms that were created prior to 4.0, but then upgraded to 4.0 or later, keep the original server-site add row function, unless they are manually upgraded.
    Not sure why your tabular form might have stopped working, but if you could install your app on apex.oracle.com, I'd be happy to take a look. In general though, I would recommend manually updating your old tabular forms to use the client based add row feature. To do this, just edit the add-row button, and change the button action from "Submit Page" to "Redirect to URL" and as the URL Target, enter "javascript:addRow();". That's all. You could also delete the add row page procress, and the MRU process that was associated with the add row button, because they are no longer needed nor used.
    Regards,
    Marc

  • Why BlackBerry sync not working when iCloud activated?

    I activated iCould and as usual started syncing with my BB 3G non of my new appointments where added to ical, and when i said replace data,all my calendar on my BB disappeared/deleted and my ical is perfectly ok on the icloud. Please I need a solution to this crazy sync disruption brought in by apple. Never ever have I lost or had a problem(deletion) on my Mac when syncing with other of my device(not apple products).

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Triple-click anywhere in the line below to select it:
    sudo launchctl list | grep screensharing
    Drag or copy the selected text — do not type it — into the Terminal window and press return.
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.
    Do this twice: once when signed in to iCloud, and once when not signed in.

  • Abap logic in Transformation End Routine not working correctly

    Hi,
    I wrote a piece of code but during testing I found out that it doesn't meet my requirement.
    Requirement
    I want to extract Standard_Cost for all sales items that meets the conditon. but at the moment only the first sales item in the DSO is showing.
    I would like the following lines to display in the cube as well since the PLITEM is different.
    201021     PI31     REDBACK     999999A     78,850
    201021     PI31     FLXAAA     999999A     3154,000
    DSO Table
    CALWEEK     PLPLANT     PLITEM     SALESITEM     STRDCOST
    201020     IN06     FLXAAA     557868B     6308,000
    201021     FI24     FLXAAA     557868B     6308,000
    201021     FI24     FLXAAA     999999B     0,000
    201021     PI31     REDBACK     999999A     78,850
    201021     PI31     FLXAAA     999999A     3154,000
    InfoCube
    SALESITEM  PLPLANT       SALESDOC       STRDCOST
    999999A     PI31     1100000911         78,850
    Abap Logic
    Data ld_calweek(6) TYPE n.
    Getting the current week based on the system date.
    CALL FUNCTION 'DATE_GET_WEEK'
            EXPORTING
              date         = sy-datum
            IMPORTING
              week         = ld_calweek
            EXCEPTIONS
              date_invalid = 1
              OTHERS       = 2.
    Data rp TYPE tys_TG_1.
    LOOP AT RESULT_PACKAGE INTO rp.
    SELECT SINGLE STRDCOST FROM /N/ABC_EFG00 INTO
    rp-S_STRDCOST
    WHERE SALESITEM = rp-S_ITEMID  AND CALWEEK =
    ld_calweek AND PLPLANT EQ rp-S_SOURCE.
    MODIFY RESULT_PACKAGE FROM rp.
    Clear rp.
    ENDLOOP.
    How do I resolve this
    thanks

    Hi Vaidya
    Select single will always select the first entry from the source which matched your where condition.
    therefore you are not getting all the required data.
    WHERE SALESITEM = rp-S_ITEMID AND CALWEEK =
    ld_calweek AND PLPLANT EQ rp-S_SOURCE.
    according to your logic
    it will pick only one record e.g
    201021 PI31 REDBACK 999999A 78,850
    201021 PI31 FLXAAA 999999A 3154,000
    item id = 999999A
    plplant = PI31
    in this case it will pick only the first record due to select single will fetch only one record (whichever it gets first and which meets your where condition)
    You need to change your code logic and need to include more fileds which differentiates one record from another who have same valued as in your present where condition.
    Thanks
    Navneet

  • Handoff: SMS sometimes do not arrive when WLAN active

    Hi,
    I use Handoff with 1 iPhone 5S, 1 iPad Air, 1 Mac Mini and 1 MacBook Pro. In general, it works. Since a while, however, I notice delays in receiving SMS messages: Messages arrive at different times on each device; sometimes, I get it first on my Mac Mini, other times, it first appears on the iPhone. The difference between the delivery can be up to a minute. All devices are on the same WLAN and in close proximity. Apart from the Mac Mini, all other devices are also used at my office network.
    Today, I was completely puzzled when I tried to login to my e-banking, waiting for a SMS to arrive. Nothing happened. I tried again with the same result. Then I tried with another bank with no result as well. After I disconnected my iPhone from the WLAN, all messages arrived on all devices immediately. - This was very surprising  to me as I understood that Handoff requires the devices be on the same network and connected via Bluetooth. Disconnecting the iPhone from the WLAN would not fulfil the requirement but this made the SMS messages to arrive.
    Any ideas what causes SMS messages to not be delivered?
    My iOS devices are on 8.1.1, my OS X computers on 10.10.1

    if you have issues with iMessage you can turn it off in settings->message then it will not try
    sending the messages as data rather then as a normal sms

  • Start-End points not working when sent to Encore

    Hello all, I tried to send a project to Encore but I got an error and Encore closed, I did it again and it worked but the start-end points didn't work, I got the whole project. I have since gone back to a former project which I had previously outputted small segments for YouTube and no matter where you set the Start-End points you get the whole project. Is Encore now corrupt or have I changed something ?

    I don't quite know what you mean, I opened a project that I left set to output a small portion for You Tube. I clicked dynamic link send to Encore, when Encore opens the whole timeline is there,or am I getting confused ? do you always get the whole timeline start to finish when you send to Encore or are you supposed to get just the part between the start-end points ?

  • No data in Active table of DSO for fields populated by End Routine

    Hi,
    I have a Standard DSO where we are populating few fields by using End Routine.
    Last week we added 5 more fields to DSO and wrote a logic in End ROutine to populate the DSO. These new fields dont have any mapping and these are just populated by end routine only.
    When I loaded the data from Data Source TO DSO, Data is loaded correctly into NEW DATA Table of DSO for all the fields. I could see correct data as per the logic in NEW Table including old and new fields.
    However, when I activate the DSO, I could not find the data for new fields which I added last week. Remaining fields are getting data as per the logic. Only these five fields are not having any data.
    Can you please let me know if any one had similar issue. I was under impression that all the data in the new table will go to Active table when we activate the DSO.
    Your inputs are highly appreciated.
    Thanks
    Krishna

    What version of BW are you using?  When editing your end-routine, a pop-up should display saying which fields you want populated/transferred from the end routine.  This pop-up will not display if you are using a lower version of BW 7.x.  To get around this, make sure that your newly added fields have a transformation rule type set to constant.  This will make sure that the fields get populated when transferring from new to active tables.

  • Selecting, reading and sum of billing quantity for last 12 months in transformation end routine

    Hi experts,
    i have requirement to write end routine to read a DSO for last 12 months sales quantity for each month and sum value pass to keyfigure
    not interested using bex variable, while data loading from source to target dso in end routine i am trying to read another DSO which is same as my
    target dso where information is stored by fiscal period, year material etc. finally there is  a keyfigure in target whih needs to be filled with sum of 12
    months sales quantity, for each record form sourc to target maximum of 12 records will be in read dso (for 12 months) my routine is like below.
    i am not expert in abap please kindly gothrough and guide me in this
    TYPES: BEGIN OF s_/BIC/AZOSLS00,
    FISCPER  type /BI0/OIFISCPER,
    FISCVARNT  type /BI0/OIFISCVARNT,
    PLANT  type /BI0/OIPLANT,
    STOR_LOC  type /BI0/OISTOR_LOC,
    /BIC/MATERIAL  type /BIC/OIMATERIAL,
    VTYPE  type /BI0/OIVTYPE,
    BILL_QTY  type /BI0/OIBILL_QTY,
    END OF s_/BIC/AZOSLS00.
    DATA: it_/BIC/AZOSLS00 TYPE TABLE OF s_/BIC/AZOSLS00,
    wa_/BIC/AZOSLS00  TYPE s_/BIC/AZOSLS00.
    SELECT
    FISCPER
    FISCVARNT
    PLANT
    STOR_LOC
    /BIC/MATERIAL
    VTYPE
    BILL_QTY
         FROM /BIC/AZOSLS00 INTO TABLE it_/BIC/AZOSLS00
           FOR ALL
          ENTRIES IN RESULT_PACKAGE
           WHERE
    below field is from value of fiscal period (which is fiscal period -999 ex:  for 001.2014 this
    value will be 002.2013 so 12 months including current period)
    FISCPER >=  RESULT_PACKAGE-/BIC/ZFISCPERF
    below is result filed fiscal period (here i dont know which keyword or statement to be used to select
    interval values this between statement giving syntax error that can not be used in where for for all entries
    between RESULT_PACKAGE-FISCPER
            AND
             FISCVARNT = RESULT_PACKAGE-FISCVARNT AND
             PLANT = RESULT_PACKAGE-PLANT AND
             STOR_LOC = RESULT_PACKAGE-STOR_LOC and
          /BIC/MATERIAL = RESULT_PACKAGE-/BIC/MATERIAL .
        SORT it_/BIC/AZOSLS00 BY FISCPER FISCVARNT PLANT STOR_LOC
        /BIC/MATERIAL .
        LOOP AT RESULT_PACKAGE ASSIGNING <result_fields>.
          READ TABLE it_/BIC/AZOSLS00 INTO wa_/BIC/AZOSLS00 WITH KEY
    below dont know what statement i need to use in read statement for interval of fiscal periods
    giving error that >= can not be used
         FISCPER >=  <result_fields>-/BIC/ZFISCPERF
    FISCPER = <result_fields>-FISCPER
             FISCVARNT = <result_fields>-FISCVARNT
             PLANT = <result_fields>-PLANT
             STOR_LOC = <result_fields>-STOR_LOC
          /BIC/MATERIAL = <result_fields>-/BIC/MATERIAL
           BINARY SEARCH.
          BREAK-POINT.
          IF sy-subrc = 0.
    below for each record there will be 12 records in read so sume of 12 records quantity i need to pass to result again dont know what to say here
    sum statement giving error
                <result_fields>-/BIC/ZLSTSLS12 =
                 sum(wa_/BIC/AZOSLS00-BILL_QTY).
              ENDIF.
        ENDLOOP.
    friends please help me in this.
    Thanks
    Chandra.

    Hiii,
    If you only want to store last  12 months data in Target ODS .
    Then Create filter in DTP and write routine in filter for calmonth or fiscal period.
    Refer the below link to create filter routine :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b2db87-639b-2e10-a8b9-c1ac0a44a7a6?QuickLink=index&…
    Regards,
    Akshay

  • End Routine is NOT modifying the DSO with new data after load into that DSO

    Hi all,
      I am creating an End Routine for DSO to populate a field ZFCMP_FLG (to store 'Y' ) with lookup from another DSO ZMDS_D01. This new field shows blank instead of 'Y', after activating the DSO. The RESULT_PACKAGE record is populated with 'Y' for ZFCMP_FLG  while debugging that End Routine and why it is NOT writing the modified records into DSO, please ? It is a Characteristic InfoObject with length 1 to store 'Y'. The following is some part of the code:
    DATA: wa_fcmp_flag   TYPE c VALUE 'Y'.
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
        READ TABLE it_zmds_d01 INTO wa_zmds_d01 WITH KEY
                    /BIC/ZAUFNR    = <RESULT_FIELDS>-CS_ORDER
                    NOTIFICATN     = <RESULT_FIELDS>-NOTIFICATN  BINARY SEARCH.
         IF sy-subrc = 0.
           <RESULT_FIELDS>-/BIC/ZFCMP_FLG = wa_fcmp_flg.
        ENDIF.
    ENDLOOP.
    Thanks,
    Venkat.

    hi...
    Since you are using Field symbol to loop the internal Table there is no need to use the MODIFY Statement in the loop.
    So your code is correct only.
    But here you have to check the status of READ TABLE command in the debug mode.
    it may be failing that's why the RESULT_PACKAGE is not getting modified.
    Plz check it.
    Note: You may need to SORT the Int Table since you are using BINARY SEARCH. check below.
    DATA: wa_fcmp_flag   TYPE c VALUE 'Y'.
    Sort it_zmds_d01 by  /BIC/ZAUFNR    NOTIFICATN  .
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
        READ TABLE it_zmds_d01 INTO wa_zmds_d01 WITH KEY
                    /BIC/ZAUFNR    = <RESULT_FIELDS>-CS_ORDER
                    NOTIFICATN     = <RESULT_FIELDS>-NOTIFICATN  BINARY SEARCH.
         IF sy-subrc = 0.
           <RESULT_FIELDS>-/BIC/ZFCMP_FLG = wa_fcmp_flg.
        ENDIF.
    ENDLOOP.

  • Filling Data fields of a DSO in End Routine

    Hi Everyone,
    The data fields of a DSO contains 2 key figures and a characteristic.
    In the End routine of the transformation, i have assigned constant values for the infoobjects in the data field.
    After executing the DTP, if I check in the New Table of the DSO, these constant values are present.  But when I activate the DSO, the values for key figures gets initialised and the values for the characterisitic becomes empty (NULL).
    Is it not possible to assign values for the infoobjects in the data field? If so, why is this limitation?
    Thanks in advance,
    Uma

    Uma,
    To populate any field in the end routine, you have to assign some constant in the transformation first and then re-populate them using the end routine.
    Sometimes if you dont assign any constant in transformation, the values remain initial and even after you write a code fo that field, it is not populated in the end routine.
    All you have to do is assign constant 0 to the key figures you are populating in the end routine and run the DTP again.
    Thanks
    Sachin

  • End routine field not populated

    Hi,
    I have made the following end routine in order to populate the field YNEGOCIO with two characters.
    I´m uploading data from DSO 0FIAR_O03 to customized DSO.  When i activate this DSO i don´t see the field YNEGOCIO populated but the strange thing is that when i make a debbugg to the end routine,  the result package-YNEGOCIO at the end of routine IS POPULATED with the correct values.
    Can anybody help me with this?
    LOOP AT RESULT_PACKAGE INTO e_s_result.
    **Recover characters 14,15 from YNEGOCIO.
    CLEAR lv_negocio.
               SELECT SINGLE
                 /BIC/YYKEY
                FROM /BIC/AYSDLASPV00
                INTO lv_key
                    WHERE
                      /BIC/YYVALUE EQ e_s_result-GL_ACCOUNT.
                IF sy-subrc EQ 0.
                  MOVE lv_key+13(2) TO lv_negocio.
                ENDIF.
          LOOP AT gt_inv_gl9_doc INTO gs_inv_gl8_doc
            WHERE ac_doc_no = e_s_result-ac_doc_no.
    * Calculate Importe Aplicado
            MOVE e_s_result to aux_s_result.
             aux_s_result-record = v_count + 1.
            IF aux_s_result-DEB_CRE_DC IS NOT INITIAL.
              aux_s_result-PROFIT_CTR = gs_inv_gl8_doc-profit_ctr.
              aux_s_result-USERNAME = gs_inv_gl8_doc-USERNAME.
              aux_s_result-deb_cre_dc = gs_inv_gl8_doc-DEB_CRE_DC.
              aux_s_result-/BIC/YI_WRBTR = gs_inv_gl8_doc-DEB_CRE_DC *
                aux_s_result-/BIC/YI_WRBTR / aux_s_result-DEB_CRE_DC.
              aux_s_result-/BIC/YNEGOCIO = lv_negocio.
              APPEND aux_s_result to e_t_result.
            ENDIF.
          endloop.
        endloop.
        REFRESH RESULT_PACKAGE.
        MOVE e_t_result[] TO RESULT_PACKAGE[].
    Regards,
    Diego

    hi,
       check your changelog table and see data over there, i guess this situation generally happens when you do delta laod , itmight happening bcoz of two image are created which might be cancelling each other when request gets actiavted in DSO and also see for 0recordmode value.
    hope it helps
    regards
    laksh

  • Source Field in End Routine of DSO Transformation

    Hi,
    I made a transformation from source DSO to Target DSO.
    There are 7 fields in source & 6 fields in target..All the 6 fields are one to one mapped from the source to Target
    I need to write a simple ABAP Logic in End Routine based on the 7th source field which is not mapped.
    Please let me know the piece of ABAP code or steps where i can get the value of Source table in End routine
    Regards
    Suresh

    Hi Suresh,
                      Check here.........
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e73bfc19-0e01-0010-23bc-ef0ad53f2fab
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/frameset.htm
    Regards,
    Vijay.

Maybe you are looking for