End routine Works fine but missing some records while updating to cube.

Hi All
I have an issue here... My End routine works fine and I even debugged by putting the breakpoint and It fetches data from dso. strangely when I run my DTP the load is successful but I can see some of the records are missing. but there is data in dso and also when i debug the code it fetches the values for particular fields.
My requirement is I have a cube 'A' and under it DSO1 and  I need six more fields from dso2. Now I made a look up for these six fields in End routine. My routine works fine and so the DTP Is Green. My issue is I cant see these six fields updated for some of the records.
PLZ put some light on it!!!!!!!!!!!!!!!!!

Hi Naveen & Jaya
Thanks for your quick response. Below is my code logic in end routine.
METHOD end_routine.
*=== Segments ===
    FIELD-SYMBOLS:
      <RESULT_FIELDS>    TYPE tys_TG_1.
    DATA:
      MONITOR_REC     TYPE rstmonitor.
$$ begin of routine - insert your code only below this line        -
... "insert your code here
data: lv_result_package like line of RESULT_PACKAGE,
      l_tabix type sy-tabix.
loop at RESULT_PACKAGE into lv_RESULT_PACKAGE.
   l_tabix = sy-tabix.
Update lot/decision attributes Lot/Decision ( ZQM_O04 ) DSO
   read table itab_qm_o04 into itab_qm_o04_wa
       with key insp_lot = lv_result_package-insp_lot.
   if sy-subrc = 0.
     lv_result_package-ivaluation = itab_qm_o04_wa-ivaluation.
     lv_result_package-catcode_ud = itab_qm_o04_wa-catcode_ud.
     lv_result_package-catgrp_ud = itab_qm_o04_wa-catgrp_ud.
     lv_result_package-/bic/zcattp_ud = itab_qm_o04_wa-/bic/zcattp_ud.
     lv_result_package-/b41/s_usuddate = itab_qm_o04_wa-/bic/gqmuddat.
     lv_result_package-/b41/s_usudcdate = itab_qm_o04_wa-/bic/gqmudcdt.
   endif.
   modify RESULT_PACKAGE FROM lv_RESULT_PACKAGE INDEX l_tabix.
endloop.
Well based on the insp_lot in ZQM_O03( DSO1) the logic above gets the six fields from ZQM_O04(DSO2) and feeds the cube.
The Insp_lot has multiple records in DSO1 based on specific characteristic and so the cube. This Logic gets all these six fields
from DSO2 which has single record per insp_lot and feeds the cube which has multiple records on insp_lot based on a specific characteristic. For some reason some of the records are not been updated to cube.
waiting for your valuable response.....
Thank You,
Abhishek Yeachni

Similar Messages

Maybe you are looking for

  • Redirect page with POST method in JSTL

    how to redirect page with POST method in JSTL. below is the code that i make, but the page redirected with GET method, so, the URL shown as http://localhost:8080/tes2/coba2.jsp?nama=saya how to hide the parameter, so it didn't show at the URL..?? any

  • Disk Space Out Of The Box

    I just connected my new refurbished iPod classic (Windows) and was curious to know find out that the 160GB iPod has a total capacity of 148GB and a used space of 150mb. This does not make sense. What is going on here? Any help please?

  • SELECT querytaking too long

    If a simple SELECT query with an ORDER BY is taking too long-.what would you check and why? any answers sukai

  • Relationship between NWDI runtime and SDM

    When we create runtime systems at NWDI, after clicking "save" button, it takes about 20 minutes to finish. It's said that means NWDI is pulling info from SDM. Is that true? Where to show the evidence? Points guaranteed. Thanks!

  • Wo und wie kann ich eine PDF-Datei löschen

    Wo und wie kann ich eine PDF-Datei löschen, bitte?