Start Routine not working correctly.

Hi gurus,
I'm having a problem with a start routine in an update rule to one of my cubes. I debug it and it seems to work fine. However, it ends the simulation saying in the error message "No active update rules exist for this infosource." However, I think it's something to do with the logic I have in my start routine. Below is the start routine which I am trying to debug. I'm doing a lookup on an ODS and if no match is found on that ODS by Sales Order and Sales Order Item, I do another lookup on an object that has the same information that I'm looking to append to the transaction record. Any help would be greatly appreciated. I'm thinking the second loop against the internal table might not be working correctly as it seems to just sit on that table.
Thanks in advance,
John
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
DATA:   PENDING_QTY  LIKE /BIC/AZO_BKLG100-/BIC/ZQTYPEND1,
        ABSOLUTE_QTY LIKE /BIC/AZO_BKLG100-/BIC/ZQTYPEND1,
        TEN_PERCENT  LIKE /BIC/AZO_BKLG100-/BIC/ZQTYPEND1,
        TEN_PERCENT_VALUE TYPE P LENGTH 4 DECIMALS 2 VALUE '0.1'.
DATA:   ZWEEK LIKE SCAL-WEEK.
$$ end of global - insert your declaration only before this line   -
The follow definition is new in the BW3.x
TYPES:
  BEGIN OF DATA_PACKAGE_STRUCTURE.
     INCLUDE STRUCTURE /BIC/CSZO_PMO1_ENHANCED.
TYPES:
     RECNO   LIKE sy-tabix,
  END OF DATA_PACKAGE_STRUCTURE.
DATA:
  DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
       WITH HEADER LINE
       WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
           MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
           DATA_PACKAGE STRUCTURE DATA_PACKAGE
  USING    RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line        -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
TABLES : /BIC/AZO_PMI100.    "Active PM Invoice ODS
TABLES : /BIC/PZ_CTBWOBJ.    "CTBW Order Master
  DATA: T_DATA_PAK  LIKE DATA_PACKAGE OCCURS 0 WITH HEADER LINE,
        T_DATA_PAK1 LIKE DATA_PACKAGE OCCURS 0 WITH HEADER LINE,
        IV_INVQTY like /BIC/AZO_PMI100-INV_QTY,
        IV_INVVAL like /BIC/AZO_PMI100-NETVAL_INV,
        BEGIN OF IT_INVOICES OCCURS 0,
              INV_SALES_ORD    LIKE /BIC/AZO_PMI100-/BIC/ZSORDDORD,
              INV_SALES_ITEM   LIKE /BIC/AZO_PMI100-/BIC/ZSORDIORD,
              INV_DOC_NUM      LIKE /BIC/AZO_PMI100-/BIC/ZBILLDINV,
              INV_DOC_ITEM     LIKE /BIC/AZO_PMI100-/BIC/ZBILLIINV,
              INV_QTY          LIKE /BIC/AZO_PMI100-INV_QTY,
              NETVAL_INV       LIKE /BIC/AZO_PMI100-NETVAL_INV,
              ZBRAND           LIKE /BIC/AZO_PMI100-/BIC/ZBRAND,
              ZBRANDOWN        LIKE /BIC/AZO_PMI100-/BIC/ZBRANDOWN,
              ZDESGNOWN        LIKE /BIC/AZO_PMI100-/BIC/ZDESGNOWN,
              ZFLAGBKLG        LIKE /BIC/AZO_PMI100-/BIC/ZFLAGBKLG,
              ZNOCOLORS        LIKE /BIC/AZO_PMI100-/BIC/ZNOCOLORS,
              ZNOSPCLRS        LIKE /BIC/AZO_PMI100-/BIC/ZNOSPCLRS,
              ZOPENFCTY        LIKE /BIC/AZO_PMI100-/BIC/ZOPENFCTY,
              ZPACKSYST        LIKE /BIC/AZO_PMI100-/BIC/ZPACKSYST,
              ZPPG             LIKE /BIC/AZO_PMI100-/BIC/ZPPG,
              ZAPPLICAT        LIKE /BIC/AZO_PMI100-/BIC/ZAPPLICAT,
              ZPAPERGDE        LIKE /BIC/AZO_PMI100-/BIC/ZPAPERGDE,
              ZPRINTMTH        LIKE /BIC/AZO_PMI100-/BIC/ZPRINTMTH,
              ZQUALITY         LIKE /BIC/AZO_PMI100-/BIC/ZQUALITY,
              ZSHAPE           LIKE /BIC/AZO_PMI100-/BIC/ZSHAPE,
              ZSIZE            LIKE /BIC/AZO_PMI100-/BIC/ZSIZE,
              ZVARIANT         LIKE /BIC/AZO_PMI100-/BIC/ZVARIANT,
              ZVOLUME          LIKE /BIC/AZO_PMI100-/BIC/ZVOLUME,
        END OF IT_INVOICES,
        BEGIN OF IT_CTBW OCCURS 0,
              CTBW_SALES_ORD    LIKE /BIC/PZ_CTBWOBJ-/BIC/ZSORDDORD,
              CTBW_SALES_ITEM   LIKE /BIC/PZ_CTBWOBJ-/BIC/ZSORDIORD,
              CTBW_BRAND        LIKE /BIC/PZ_CTBWOBJ-/BIC/ZBRAND,
              CTBW_BRANDOWN     LIKE /BIC/PZ_CTBWOBJ-/BIC/ZBRANDOWN,
              CTBW_DESGNOWN     LIKE /BIC/PZ_CTBWOBJ-/BIC/ZDESGNOWN,
              CTBW_NOCOLORS     LIKE /BIC/PZ_CTBWOBJ-/BIC/ZNOCOLORS,
              CTBW_NOSPCLRS     LIKE /BIC/PZ_CTBWOBJ-/BIC/ZNOSPCLRS,
              CTBW_C_APM_006    LIKE /BIC/PZ_CTBWOBJ-/BIC/C_APM_006,
              CTBW_PACKSYST     LIKE /BIC/PZ_CTBWOBJ-/BIC/ZPACKSYST,
              CTBW_PAPERGDE     LIKE /BIC/PZ_CTBWOBJ-/BIC/ZPAPERGDE,
              CTBW_PPG          LIKE /BIC/PZ_CTBWOBJ-/BIC/ZPPG,
              CTBW_PRINTMTH     LIKE /BIC/PZ_CTBWOBJ-/BIC/ZPRINTMTH,
              CTBW_QUALITY      LIKE /BIC/PZ_CTBWOBJ-/BIC/ZQUALITY,
              CTBW_SHAPE        LIKE /BIC/PZ_CTBWOBJ-/BIC/ZSHAPE,
              CTBW_SIZE         LIKE /BIC/PZ_CTBWOBJ-/BIC/ZSIZE,
              CTBW_VARIANT      LIKE /BIC/PZ_CTBWOBJ-/BIC/ZVARIANT,
              CTBW_VOLUME       LIKE /BIC/PZ_CTBWOBJ-/BIC/ZVOLUME,
        END OF IT_CTBW.
*These deletions are already included in the InfoPackage:
*Keep only PackMat Finished Materials SOrders:
*DELETE DATA_PACKAGE
  WHERE MATL_GROUP(5) NE 'PM-FM'.
*Keep only open SOrders:
*DELETE DATA_PACKAGE
   where /BIC/ZOSTATUS = 'C'.
*Keep only MC and CF SOrders:
*DELETE DATA_PACKAGE
   where DOC_TYPE NE 'ZOR6' AND DOC_TYPE NE 'ZOR9'.
*Keep only non rejected SOrders:
DELETE DATA_PACKAGE
    where REASON_REJ IS NOT INITIAL.
          Exclude list of statistical Item Categories (not billing
          relevant).
DELETE DATA_PACKAGE WHERE
   ITEM_CATEG = 'ZPC1' or     
   ITEM_CATEG = 'ZPC2' or     
   ITEM_CATEG = 'ZPC3' or
   ITEM_CATEG = 'ZPC4' or
   ITEM_CATEG = 'ZTAF' or     
   ITEM_CATEG = 'ZTAE' or     
   ITEM_CATEG = 'ZTAG' or     
   ITEM_CATEG = 'ZTSV'.
  REFRESH: T_DATA_PAK,T_DATA_PAK1,
           IT_INVOICES, IT_CTBW.
  T_DATA_PAK[] = DATA_PACKAGE[].
  T_DATA_PAK1[] = DATA_PACKAGE[].
  DATA : COUNT1 LIKE SY-TABIX.
  DESCRIBE TABLE T_DATA_PAK1 LINES COUNT1.
  IF NOT COUNT1 IS INITIAL.
   Selection for Invoice Items    ***********
SORT T_DATA_PAK1 BY /BIC/ZSORDDORD /BIC/ZSORDIORD.
   SELECT   /BIC/ZSORDDORD /BIC/ZSORDIORD /BIC/ZBILLDINV /BIC/ZBILLIINV
            INV_QTY        NETVAL_INV
            /BIC/ZBRAND    /BIC/ZBRANDOWN /BIC/ZDESGNOWN /BIC/ZFLAGBKLG
            /BIC/ZNOCOLORS /BIC/ZNOSPCLRS /BIC/ZOPENFCTY /BIC/ZPACKSYST
            /BIC/ZPPG      /BIC/ZAPPLICAT /BIC/ZPAPERGDE /BIC/ZPRINTMTH
            /BIC/ZQUALITY  /BIC/ZSHAPE    /BIC/ZSIZE     /BIC/ZVARIANT
            /BIC/ZVOLUME
       INTO  TABLE IT_INVOICES
       FROM /BIC/AZO_PMI100
       FOR ALL ENTRIES IN T_DATA_PAK1
       WHERE /BIC/ZSORDDORD   = T_DATA_PAK1-/BIC/ZSORDDORD AND
             /BIC/ZSORDIORD  = T_DATA_PAK1-/BIC/ZSORDIORD AND
051114: Exclude pro forma invoices from selection.
                ( bill_type NE 'ZPF1' AND bill_type NE 'ZPF2' AND
                  bill_type NE 'ZPF3').
    SORT: IT_INVOICES BY INV_SALES_ORD   INV_SALES_ITEM.
    DELETE IT_INVOICES WHERE ZQUALITY IS INITIAL.
    REFRESH: T_DATA_PAK1.
  LOOP AT T_DATA_PAK.
     CLEAR: T_DATA_PAK1, IV_INVQTY, IV_INVVAL, IT_INVOICES, IT_CTBW.
     MOVE-CORRESPONDING T_DATA_PAK TO T_DATA_PAK1.
     loop at IT_INVOICES
          where INV_SALES_ORD  = T_DATA_PAK-/BIC/ZSORDDORD
            and INV_SALES_ITEM = T_DATA_PAK-/BIC/ZSORDIORD.
        IV_INVQTY = IV_INVQTY + IT_INVOICES-INV_QTY.
        IV_INVVAL = IV_INVVAL + IT_INVOICES-NETVAL_INV.
     endloop.
        Use req. del. date if not conf. del. date is available
        Changes being made to use conf. del. date instead of
        req. del. date.   This is not always filled in.
     IF T_DATA_PAK1-/BIC/ZDATESCHL IS INITIAL.
       MOVE T_DATA_PAK1-DSDEL_DATE to T_DATA_PAK1-/BIC/ZDATESCHL.
     ENDIF.
     move:
         IV_INVQTY                  to T_DATA_PAK1-INV_QTY,
         IV_INVVAL                  to T_DATA_PAK1-NETVAL_INV,
         IT_INVOICES-ZBRAND         to T_DATA_PAK1-/BIC/ZBRAND,
         IT_INVOICES-ZBRANDOWN      to T_DATA_PAK1-/BIC/ZBRANDOWN,
         IT_INVOICES-ZDESGNOWN      to T_DATA_PAK1-/BIC/ZDESGNOWN,
         IT_INVOICES-ZFLAGBKLG      to T_DATA_PAK1-/BIC/ZFLAGBKLG,
         IT_INVOICES-ZNOCOLORS      to T_DATA_PAK1-/BIC/ZNOCOLORS,
         IT_INVOICES-ZNOSPCLRS      to T_DATA_PAK1-/BIC/ZNOSPCLRS,
         IT_INVOICES-ZOPENFCTY      to T_DATA_PAK1-/BIC/ZOPENFCTY,
         IT_INVOICES-ZPACKSYST      to T_DATA_PAK1-/BIC/ZPACKSYST,
         IT_INVOICES-ZPPG           to T_DATA_PAK1-/BIC/ZPPG,
         IT_INVOICES-ZAPPLICAT      to T_DATA_PAK1-/BIC/ZAPPLICAT,
         IT_INVOICES-ZPAPERGDE      to T_DATA_PAK1-/BIC/ZPAPERGDE,
         IT_INVOICES-ZPRINTMTH      to T_DATA_PAK1-/BIC/ZPRINTMTH,
         IT_INVOICES-ZQUALITY       to T_DATA_PAK1-/BIC/ZQUALITY,
         IT_INVOICES-ZSHAPE         to T_DATA_PAK1-/BIC/ZSHAPE,
         IT_INVOICES-ZSIZE          to T_DATA_PAK1-/BIC/ZSIZE,
         IT_INVOICES-ZVARIANT       to T_DATA_PAK1-/BIC/ZVARIANT,
         IT_INVOICES-ZVOLUME        to T_DATA_PAK1-/BIC/ZVOLUME.
     if IT_INVOICES-ZFLAGBKLG is initial.
        SELECT /BIC/ZSORDDORD
               /BIC/ZSORDIORD
               /BIC/ZBRAND
               /BIC/ZBRANDOWN
               /BIC/ZDESGNOWN
               /BIC/ZNOCOLORS
               /BIC/ZNOSPCLRS
               /BIC/C_APM_006
               /BIC/ZPACKSYST
               /BIC/ZPAPERGDE
               /BIC/ZPPG
               /BIC/ZPRINTMTH
               /BIC/ZQUALITY
               /BIC/ZSHAPE
               /BIC/ZSIZE
               /BIC/ZVARIANT
               /BIC/ZVOLUME
       INTO  TABLE IT_CTBW
       FROM /BIC/PZ_CTBWOBJ
       FOR ALL ENTRIES IN T_DATA_PAK1
       WHERE /BIC/ZSORDDORD   = T_DATA_PAK1-/BIC/ZSORDDORD AND
             /BIC/ZSORDIORD  =  T_DATA_PAK1-/BIC/ZSORDIORD AND
             OBJVERS = 'A'.
    SORT: IT_CTBW BY CTBW_SALES_ORD   CTBW_SALES_ITEM.
    DELETE IT_CTBW WHERE CTBW_QUALITY IS INITIAL.
     REFRESH: T_DATA_PAK1.
     endif.
     loop at IT_CTBW
        where CTBW_SALES_ORD  = T_DATA_PAK-/BIC/ZSORDDORD
        and CTBW_SALES_ITEM = T_DATA_PAK-/BIC/ZSORDIORD.
     endloop.
       move:
         IT_CTBW-CTBW_BRAND         to T_DATA_PAK1-/BIC/ZBRAND,
         IT_CTBW-CTBW_BRANDOWN      to T_DATA_PAK1-/BIC/ZBRANDOWN,
         IT_CTBW-CTBW_DESGNOWN      to T_DATA_PAK1-/BIC/ZDESGNOWN,
         IT_CTBW-CTBW_NOCOLORS      to T_DATA_PAK1-/BIC/ZNOCOLORS,
         IT_CTBW-CTBW_NOSPCLRS      to T_DATA_PAK1-/BIC/ZNOSPCLRS,
         IT_CTBW-CTBW_PACKSYST      to T_DATA_PAK1-/BIC/ZPACKSYST,
         IT_CTBW-CTBW_PPG           to T_DATA_PAK1-/BIC/ZPPG,
         IT_CTBW-CTBW_PAPERGDE      to T_DATA_PAK1-/BIC/ZPAPERGDE,
         IT_CTBW-CTBW_PRINTMTH      to T_DATA_PAK1-/BIC/ZPRINTMTH,
         IT_CTBW-CTBW_QUALITY       to T_DATA_PAK1-/BIC/ZQUALITY,
         IT_CTBW-CTBW_SHAPE         to T_DATA_PAK1-/BIC/ZSHAPE,
         IT_CTBW-CTBW_SIZE          to T_DATA_PAK1-/BIC/ZSIZE,
         IT_CTBW-CTBW_VARIANT       to T_DATA_PAK1-/BIC/ZVARIANT,
         IT_CTBW-CTBW_VOLUME        to T_DATA_PAK1-/BIC/ZVOLUME.
       if T_DATA_PAK1-MATERIAL+0(1) eq 'A'.
          move T_DATA_PAK1-MATERIAL+1(4) to T_DATA_PAK1-/BIC/ZQUALITY.
          move T_DATA_PAK1-MATERIAL+5(3) to T_DATA_PAK1-/BIC/ZSIZE.
          move T_DATA_PAK1-MATERIAL+8(2) to T_DATA_PAK1-/BIC/ZVARIANT.
       endif.
      APPEND T_DATA_PAK1.
     ENDLOOP.
  ENDIF.
  IF SY-SUBRC EQ 0.
    DATA_PACKAGE[] = T_DATA_PAK1[].
    ABORT = 0.
  ENDIF.
  REFRESH: T_DATA_PAK, T_DATA_PAK1.
  REFRESH: IT_INVOICES, IT_CTBW.
  FREE: T_DATA_PAK,T_DATA_PAK1.
  FREE: IT_INVOICES, IT_CTBW.
if abort is not equal zero, the update process will be canceled
  ABORT = 0.
$$ end of routine - insert your code only before this line         -
ENDFORM.
Edited by: John Lucky on Jan 25, 2008 10:58 PM

Hi,
Why is the hard coding of "breakpoint" done.
Try removing it.
Regards
Merlin.

Similar Messages

  • 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

  • The calendar sync is recently not working correctly, not display "All events" but it only displays the last six months for my individual entries. My repeating entires do go back further, though. How do I fix?

    I have an iPad 5.1.1. The calendar sync has started to not work correctly. I have it checked "All events," but it only displays the last two months for my individual entries. My repeating entires do go back further, though. How do I fix?

    HI Jason269. Thanks for your reply, however I wrote that I already have "All events" checked. If All Events is checked and it doesn't diaplay all events, how do I fix? It seems this is a common issue, as I have read many others on here state the same problem.
    I believe my problem occurred when I synced my iMac calendar to my iPad calendar using yahoo. Yesterday, I unsynced them on my iMac controls. When I checked my iPad calendar, all of my old entries reappeared - but only for five seconds and disappeared again. So, the data is saved and still there but cannot be displayed, even when I have All events checked. In fact, it only shows my individual entries for the last two months, but does show all my recurring entries. If I switched to last six months, I will see everything for the last six months. If I switch back to all events, it is only for the last two months.
    As I mentioned, others on here have expressed exactly the same issue, including the two month example and having used yahoo.
    For legal purposes, I need to be able to use the information from my indidual calendar entries in an upcoming court case. So I really need to fix this ASAP!

  • Windows 8 - SC6 started doing weird things, not working correctly

    Windows 8 and CS6 - Liquifying tool not working and and actions not working correctly, back ground screen flickers and changes color and does weird things. I have done a complete D&R and it does the same thing. Someone with the same problem suggested a D&R and deactivate, then reinstall and reactivate, could this possibly work? if so, how would you do that? Thanks

    Yes, one I can think of. Get the make and model of your video card and head over to the card manufacturer's website.
    Check for and install the latest drivers for your card.
    Also see if changing the settings of your GPU helps. Uncheck everything (OpenCL Anti-alias 30 bit displays) and start at Basic. then work your way up to Normal and Advanced.

  • If statement within a view is not working correctly ?

    Hi all,
    maybe i am wrong but i think the if statement within a view is not working correctly. See code down below.
    I would like to use the Hallo World depending on the page attribute isFrame with or without all the neccessary html tags. Therefore i have embedded the htmlb tags in an if statement. But for any reason if isframe is initial it isn't working. It would be great if anybody could help me.
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if not isframe is initial. %>
      <htmlb:content design="design2003">
         <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    hallo world
    <% if not isframe is initial. %>
         </htmlb:page>
      </htmlb:content>
    <% endif. %>
    thanks in advance and best regards
    Matthias Hlubek

    Matthias,
    The short answer: your example is <b>NOT</b> going to work. The long answer will probably 5 pages to describe. So first let me rewrite the example so that it could work, and then give a short version of the long answer. Do not be disappointed if it is not totally clear. It is rather complicated. (See the nice form of IF statements that are possible since 620.)
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if isframe is <b>NOT</b> initial. %>
    <htmlb:content design="design2003">
      <htmlb:page title = "Top Level Navigation view">
        hallo world
      </htmlb:page>
    </htmlb:content>
    <% else. %>
      hallo world
    <% endif. %>
    So why does your example not work? Let us start with a simple tag:
      <htmlb:page title = "Top Level Navigation view">
      </htmlb:page>
    Now, for each tag, we have effectively the opening part (<htmlb:page>), an optional body, and then the closing part (</htmlb:page>). We are now at the level of the BSP runtime processing one tag. What the runtime does not know, is whether the tag wants to process its body or not. Each tag can decide dynamically at runtime whether the body should be processed. So the BSP compiler generates the following code:
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
      ENDIF.
      tag->DO_AT_END( ).
    You should actually just debug your BSP code at ABAP level, and then you will immediately see all of this. Now, let us mix in your example with our code generation. First you simplified example:
    <% if isframe is NOT initial. %>
      <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    <% if isframe is NOT initial. %>
      </htmlb:page>
    <% endif. %>
    And then with our generated code. Look specifically at how the IF/ENDIF blocks suddenly match!
    if isframe is NOT initial.
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
    endif.
    if isframe is NOT initial.
      ENDIF.
      tag->DO_AT_END( ).
    endif.
    You can see that your ENDIF statements are closing IF blocks generated by the BSP compiler. Such a nesting will not work. This is a very short form of the problem, there are a number of variations, and different types of the same problem.
    The only way to solve this problem, is probably to put the body into a page fragment and include it like I did above with the duplicate HelloWorld strings. But this duplicates source code. Better is to put body onto a view, that can be processed as required.
    brian

  • ** Filtering is not working correctly in ALV (REUSE_ALV_GRID_DISPLAY)

    Hi Friends,
    We have one Z report that output is displayed in ALV. We are using the standard FM 'REUSE_ALV_GRID_DISPLAY. 
    We have requirement to remove leading zeros for the field like Material Number (MATNR), Equipment Number (EQUNR) etc. We did the changes by applying the field catalog properties as below.
    lw_fieldcat-lzero = space.
    lw_fieldcat-no_zero = 'X'.
    After this, the MATNR and EQUNR is displayed correctly in the ALV. (Leading zeros are suppressed). But, when we do filter for these fields, in the filter window it displays all the values with leading zeros.
    1. We don't understand why it is showing in the Filter widow with all leading zeros. All it shows all the records instead of unique items.
    Later on, we removed the above fieldcat coding. Then, we have called the CONVERSION_EXIT routines (in the domain) for the fields to remove leading zeros.
    Now, the MATNR and EQUNR is displayed correctly (without leading zeros) in ALV. When we do filter, it is also doing filtering correctly. But, when we do filter which have EQUNR having long values (after zero suppression), it is not working correctly. i.e no items are displayed in the ALV.
    Not only for this items. If we filter character columns which have long text, it is not filtering correctly.
    2. It is not able to understand why the filtering is not working for long items. But in the standard report, the filtering is working correctly.
    We are using SAP ECC 6.0.
    Friends, can you clarify the about doubts. It is surprising for me.
    Kind regards,
    Jegathees P.
    Our customer is asked to remove the leading zeros for the numeric field

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

  • Email pushing not working correctly for office email - 3 seperate devices/carriers

    We switched email hosts several months ago and since our email pushing has not worked correctly. Our host/IT guy has been very unwilling to help me through this (I get the pleasure of being the in-house IT source)
    I personally am on AT&T have no problems with the other 3 emails I have set up on my blackberry. However I receive my work account one time a day at roughly 6:15. Another user is on Alltel and he receives spotty emails throughout the day, but his gmail account comes through instantly. The third user is on nextel and he receives his 2-3 times per day.
    I began to think this was an email host issue since the three of us are all on different carriers, until I found out a fourth user, also on nextel, receives his emails fine.
    Users 1-3 are on Outlook 07 on various versions of the Curve. We have all our messages to stay on the server.
    User 4 is on the older nextel blackberry push to talk, and is not on outlook. 
    We do not have an exchange server. Our emails were all set up through our devices.
    Any suggestions? The answers I have received through our carriers is to make sure that our messages are set to be left on the server. Everyone else at the office has given up - but for me this is the quest for the Holy Grail.......I'm determined find the answer!
    Thank you in advance for any suggestions.
    Caitlin Talbot 

    Potential solution for windows for a side-by-side install. This works for me.
    To setup a firefox install side by side so that links from external programs (like email) can open (so you don't get a "Firefox is already running but is not responding" message) do the following.
    The solution entails the use of the -no-remote switch. Don't use it for the default browser. Use it for the non default browser.
    I'll use firefox 3.6 and firefox 4.0 as examples but this should work for future versions.
    + Install firefox 3.6 and Firefox 4.0 in different directories. Eg.
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\Program Files\Mozilla Firefox 4\firefox.exe
    + Open profile manager. Start > Run : firefox.exe -ProfileManager
    + In profile manager create Two Profiles.
    firefox3.6
    firefox4
    + In profile manager select firefox 4 as your default (assuming you want to default to the latest) and tick "Don't ask at startup"
    + Create two windows shortcuts.
    * General: Mozilla Firefox 4 (default). Shortcut > Target: "C:\Program Files\Mozilla Firefox 4\firefox.exe". Shortcut > Start In: "C:\Program Files\Mozilla Firefox 4"
    * General: Mozilla Firefox 3.6. Shortcut > Target: "C:\Program Files\Mozilla Firefox\firefox.exe" -p firefox3.6 -no-remote. Shortcut > Start In: "C:\Program Files\Mozilla Firefox"
    That's it. Links from external programs should now open in your default browser.
    Further details see. [http://kb.mozillazine.org/Opening_a_new_instance_of_your_Mozilla_application_with_another_profile Opening a new instance of your Mozilla application with another profile]

  • Query is not working correctly

    Hi all,
    Below query is not working correctly. Please let me know, if you find the mistake
    select
    a.name,
    b.VOD_NAME,
    count(xm.ATTRIB_03)
    from
    siebel.s_vod b
    left outer join ISS_OBJ_DEF c on b.OBJECT_NUM=c.PAR_VOD_ID
    left outer join vod d on c.VOD_ID=d.row_id
    left outer join PROD_INT a on d.OBJECT_NUM=a.CFG_MODEL_ID
    left outer join PROD_INT_XM xm on a.row_id=xm.PAR_ROW_ID
    where
    b.VOD_TYPE_CD='CLASS_DEF'
    and
    c.LAST_VERS = 0
    and
    b.vod_name='Componentes'
    group by a.name,b.vod_name having count(xm.ATTRIB_03) >=5

    user9522927 wrote:
    Hi all,
    Below query is not working correctly. Please let me know, if you find the mistake
    select
    a.name,
    b.VOD_NAME,
    count(xm.ATTRIB_03)
    from
    siebel.s_vod b
    left outer join ISS_OBJ_DEF c on b.OBJECT_NUM=c.PAR_VOD_ID
    left outer join vod d on c.VOD_ID=d.row_id
    left outer join PROD_INT a on d.OBJECT_NUM=a.CFG_MODEL_ID
    left outer join PROD_INT_XM xm on a.row_id=xm.PAR_ROW_ID
    where
    b.VOD_TYPE_CD='CLASS_DEF'
    and
    c.LAST_VERS = 0
    and
    b.vod_name='Componentes'
    group by a.name,b.vod_name having count(xm.ATTRIB_03) >=5I couldn't see through the internet what happend when you ran said query. How about helping us out by showing us the evidence that it "is not working correctly".
    "Here's a picture of my car sitting in the driveway. Why won't it start?"

  • Spry tab not working correctly after custom changes

    Hi,
    i have used Spry Widget for making tabs in Dreamweaver for one of my project. i have customize these tabs. every thing was working fine until i add the horizontal scrolling to tab by jquery. tabs are not working correctly they do not show the tab content. i am sure there is some linking issue. all this problem begin when i added a addition div within the spry div tags if i remove <div style="overflow: hidden;" class="sc_menu" > every thing start working fine but this div control the scrolling and its important to put there. please can any one guide me what i am doing wrong i have uploaded the project to my server. below is the zip file link to download.
    http://khurram.visbl.com/test.zip
    please let me know if someone having problem in downloading above zip file. also waiting to find a solution for above. hope anyone is here who knows the solution 
    Best - Khurram

    Sorry to disappoint, the structure of the tabbed panels is
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    As soon as you change that structure, this widget (out-of-the-box) will not work.
    Gramps

  • Why can I not import pictures any more? Lightroom says "Your Lightroom 5 64-bit does not work correctly"

    Why can I not import pictures any more?
    Lightroom says "Your Lightroom 5 64-bit does not work correctly"
    Technical informations:
    PC with Windows 7 64-bit, Lightroom 5.7.1 64-bit installed.
    What I have done:
    I downloaded the newest LR 5.71 and installed it again - mode repair; without success
    I checked my PC with Norton 360: full scanning and optimizing registry
    I restarted the PC and than I installed the LR 5.7 again - repair
    Trouble 1:
    Two days ago I could work with my LR 5 and to import pictures from a SD was no problem. Now I can start LR 5 and I can watch/modify pictures, but as soon as I try to import new pictures LR 5 stops and gives the message "your LR 5 64-bit does not work correctly - searching for solution". I have not changed anything in my computer since lasttime LR 5 worked properly, only the registry was optimized by Norton 360.
    Trouble 2:
    I live in Switzerland and my language ist German. I dit not find a place where I can present my problem in German, e.g. a phone number oder email-address oder german-chat. My English is to week for a discussion for computer problems and do understand it.
    Help:
    I would very appreciate if anybody can help me, either to trouble 1 or to trouble 2. Thanks.

    Sehen Sie diesen Beitrag:
    Photoshop CS4 & Lightroom 2.6 X64 funktionieren nicht mehr
    Wacom Tablet-Treiber-Problem?

  • My MacBook Pro keyboard not working correctly after Win7 bootcamp installation. In OSx boot it keep Win keyboard. How can I have Mac keyboard in OS boot and Win keyboard in Win boot?

    My MacBook Pro keyboard not working correctly after Win7 bootcamp installation.
    Installation went well but when I boot either with OSx or Win it always keeps Windows keyboard.
    How can I have Mac keyboard in OS boot and Win keyboard in Win boot?

    Hi - I have the exact same model as your MacBook and had a few questions as mine is acting up. I upgraded the ram to 8gb (2x 4GB ram) and ever since then my computer has not been running as smoothly and the start up time is horrendous. Have you encountered this problem? And if so how did you fix? What would you advise me do?
    I was thinking of reverting back to the original factory 4GB then rebooting the entire computer. Any suggestions?
    Thanks in advance!
    Allen

  • Need help iPhone 5 not working correctly

    my iPhone 5 keeps pressing all the keys around the key I want it to press on the keyboard also problems using lock screen numbers have re-started and the phone just reverts to not working correctly
    also when I got this phone I did it from a back up of my old iPhone 4 but not all the songs have fully downloaded (they are there, but cannot play) when I look on iTunes it says I have no songs that arn't on my iPhone that I've bought?
    Should I take my phone back to my carrier which is 3? Or make an appointment at the Genius Bar?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).
    Backups do not contain media, all the media should be in iTunes on your computer.  Simply select the content desired to sync to the device and sync.

  • Mouse scroll wheel not working correctly.

    Just installed Firefox 4 and my mouse scroll wheel is not working correctly. When opening the program, I can scroll as normal for about 5/10 minutes. Then, suddenly, the mouse scroll wheel no longer works. I've since found that it is actually scrolling outside of Firefox. E.g. I had Outlook open and it was scrolling through my Outlook even though Firefox was the open window. I checked this multiple times and it always seems to be the case.
    Checked about:config as advised, everything looks correct on the mousewheel settings (i.e everything is set to default). Mouse drivers are up to date. No problems with any other programs. This issue started occurring in Firefox 4 beta. I switched back to 3.6 so I could continue scrolling. Updating to Firefox 4 caused the issue to recur.

    It seems a lot of people are having problems with the Mighty Mouse's scroll ball. I actually thought I was done for after just a few weeks of using my first (wired) one. But here I am years later with my wireless variant, beeing perfectly happy with it (in case you don't know, the wireless Mighty Mouse is a much better option due to it's laser based tracking system). In my experience, getting rid of fluff that interferes with the ball is quite easy on both types. Try blowing really hard directly at the trackball (optionally while you press it down with some pointed device) a few times. Rotate it and repeat as needed. Alternatively roll the mouse upside down on the microfiber cloth that probably came with your Mac.

  • Sound in Macbook pro is not working correctly! PLEASE HELP!

    A few days ago, the sound in the build in speakers in my macbook pro (Mac OS X 10.6.8) started not working correctly, i did not hit it or anything, just closed it down when i woke up the next day, the sound was not working correctly. i know it is hard to describe what's wrong in a written forum, but the best way to describe it is this: it sounds like when you have a set of headphones plugged in, but not wearing them. the sound is weak, with no bass. when i actualy do hear the sound when wearing headphones (in my ears) the sound is fine.
    hope anyone can help.

    Intel-based Macs: Resetting the System Management Controller (SMC)
    Resetting your Mac's PRAM and NVRAM

  • Cooling fan not work correctly

    my computer says the cooling fan not work correctly plase visit www.hp.com.go/teachcenter/startup

    Dear Customer,
    Welcome to HP Support Forum and we are glad to assist you
    It looks like you are having difficulties with regards to the Cooling Fan of your Netbook
    We will surely assist you with this
    According to the message you have posted I suspect this is purely a hardware issue where in your getting "System Fan(90B) - The system has detected that a cooling fan is not operating correctly" message. This is a mechanical fault and the Cooling Fan on your Notebook and needs to be replaced before the Notebook starts up with an Overheating Issue.
    Causes/Reason for this Issue:
    1. Sometimes this is just because of Dust, Pet Animals Hair slowing down the fan
    Perform the  below shown troubleshooting steps:
    Step 01. Turn OFF the Notebook
    Step 02. Un-plug the Power/AC Adapter and also remove the Battery too
    Step 03. Press and Hold the Power Button of the Notebook for a full minute
    Step 04. Now let's re-insert the battery back in and plug back the Power/AC Adapter
    Step 05. Start the Notebook and keep tapping F10 Key during the startup to access the BIOS
    Step 06. Once you get to the BIOS, Please press F5 Key to load setup defaults for the BIOS
    Step 07. Now let's press Esc/Escape Key. Save Changes and Exit - Yes
    Step 08. Now please wait till Unit loads Windows and then Shut down the Netbook again
    Step 09. You should clean all the Vents and Openings really good with a can of compressed air
    Note: If you are still getting the same error we need to replace the fan
    I strongly recommend you to immediately Contact HP Technical Support over the Phone for further assistance without any delay to get your Netbook Fan replaced and serviced by an authorized HP Certified Engineer
    You can also Check your warranty Here to verify the warranty status
    Hope this helps, for any further queries reply to the post and feel free to join us again
     **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

Maybe you are looking for