Problems with calculation in table footer

I’m working on a 'dynamic form’ with an expandable table (i.e. the user presses a button to add a new row), there are cells in each row for beginning month & ending month, plus an autocalc total field containing the formula: “ending – beginning +1” (which accurately calculates total months e.g. Jan-Dec = 12 months). There is also a ‘total months’ field in the footer which sums the row ‘total’ cells. The problem I have is that the user could add a blank row throwing off the total cell in the footer. Any suggestions to accomplish my goal of presenting accurate total in footer while ‘idiot proofing’ the form?

A link to the your live test page would be much more productive here. 
It's much easier for us to diagnose problems when we can see your page & images in our browsers.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Problem with last column in footer - 11G

    Hello,
    I have a problem with displaying sum in footer for af:table .
    The footer connected to attributeValues which defined in the pageDef.
    I have 3 columns in the footer, the two first are shown fine, but last one is empty , althouh they are defined the same way.
    Replacing the order of columns did not resolve the problem, because still the last column is not shown.
    Any help will be appriciated.
    pageDef:
    <attributeValues id="BalancesDetailsViewSumCountUsed"
    IterBinding="InitBvBalancesDetailsViewIterator">
    <AttrNames>
    <Item Value="SumCountUsed"/>
    </AttrNames>
    </attributeValues>
    <attributeValues id="BalancesDetailsViewSumDifference" IterBinding="InitBvBalancesDetailsViewIterator">
    <AttrNames>
    <Item Value="SumDifference"/>
    </AttrNames>
    </attributeValues>
    Jspx:
    column c2 is fine , but c3 is empty
    <af:column sortProperty="CountUsed" sortable="false" id="*c2*"
    headerText="#{res['balances.countUsed']}" width="80px">
    <af:outputText value="#{row.CountUsed}">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.BalancesAMBalancesDetailsView.formats.CountUsed}"/>
    </af:outputText>
    <f:facet name="footer">
    <af:outputText value="#{bindings.BalancesDetailsViewSumCountUsed.inputValue}">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.BalancesDetailsViewSumCountUsed.format}"/>
    </af:outputText>
    </f:facet>
    </af:column>
    <af:column sortProperty="Difference" sortable="false" id="*c3*"
    headerText="#{res['balances.difference']}" width="80px">
    <af:outputText value="#{row.Difference}">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.BalancesAMBalancesDetailsView.formats.Difference}"/>
    </af:outputText>
    *<f:facet name="footer">*
    *<af:outputText value="#{bindings. BalancesDetailsViewSumDifference.inputValue}">*
    *<f:convertNumber groupingUsed="false"*
    *pattern="#{bindings. BalancesDetailsViewSumDifference.format}"/> </af:outputText>*
    *</f:facet>*
    </af:column>
    Thanks!

    Thanks you all!
    I found the problem. The iterator which sum the coulmn was at the last after the second sum, so it return null.
    So I replaced the hasNext() function with getAllRowsInRange() and now it is OK.

  • Problem with checkbox on table component

    Hello i am having a problem with checkbox in table component
    i am developing something like a shopping cart app and i have a checkbox in my table component , i want users to select items from the checkbox to add to thier cart, They can select the items from cartegory combobox , my problem is when they select the items from the checkbox if they select another category the alread selected once do not display in my collection opbject please how can i maintain the state of the already selected items in my collection object

    Hi,
    Please go through the tutorial "Understanding scope and managed beans". This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
    The details of the selected items need to be stored in an object that is in session scope.
    Hope this helps
    Cheers
    Girish

  • OBIEE 11G - problem with calculating percentage

    Hi,
    I have a problem with calculating a percentage....
    I have a 2 measures Success and Failure
    where Success is a count(Response_key)
    Failure is a count(failure_key)
    I want Success/(Success+Failure) * 100
    I am getting this value as a 0
    Infact any column I take from the subject area and say count of that column and divide it by any integer say count(column1)/5 ,Say count of that column1 is 132 Eg: 132/5 , Its showing this value as 26.00 when I put decimal value to 2 , but it is 26.4...It is avoiding decimal values .
    So in my case success/(success+failure) in which Dr is greater than Nr . Since we get the value as 0.something . It is showing 0 value
    So , 0*100 it is showing me as 0%
    Can anyone please help me on this ??
    --Siri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Yes, you need to put cast in numerator alone to get the resultant output in double.
    You can mark the post as Correct since your issue is resolved now.
    Thanks

  • Problem with sap script table in main window

    hi all,
    i have created a sap script  for which output is in 7 pages.
    except first page all the remaining pages are giving the correct output.
    the problem with the first page is iam not not getting vertical lines in the table which is in the main window of page 1.
    iam getting the vertical lines correctly in the mainwindow table of all the remaining pages.

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • Problem with loading fact table in OWB3i

    Hi,
    I have a problem while trying to load a fact table using OWB 3i. Let me explain the situation :
    I have 2 dimensions: Customer, Product say.
    I have loaded the dimension tables separately, successfully using different mappings from source tables.
    Now I want to load the fact table with the corresponding warehouse keys from these dimension tables through lookup transformation.
    When I try to bring to lookup transformations for the 2 dim. tables, it gives an error--"Source and target are bound to different data providers". Using 1 dim table and 1 corresponding lookup transformation , the fact table is successfully loaded.
    How to load a fact table when there are more than 1 dim. tables using lookup ?Is there any other way of solving the same problem?
    Any suggestion will be highly appreciated.
    regards
    Dipanjan

    Simply, try joining source tables with the join operator. In wich way you can create a single source object into the mapping suitable to be connected with yours fact tables.
    Greetings

  • Problems with Java Dictionary Tables

    Hi Experts,
    I have some problems with the Java Dictionary tables that I have created for my
    application. There are around 15 dictionary tables, each one of them having
    several hundred records, added in due course.
    As much as I understand these tables (created using the dictionary perspective)
    are stored in the default schema of the J2EE engine where the dictionary project
    is deployed and there is no direct way to insert records into these tables, we have
    to separately write methods to insert, update and delete records.
    I've already done this. Now the problem is that i have moved my project DC from
    development to testing. Now here the tables are existing, but not the data that i
    inserted during development.
    NOW, the main question: IS THERE ANY WAY IN WHICH I CAN TRANSFER
    THE CONTENTS OF THESE JAVA DICTIONARY TABLES??
    I have tried solutions like creating a DBLINK between the databases, but it is
    tedious, and unpredictable in behaviour. Also Please do not advise to first
    download them to excel and then upload using jxlapi, etc.
    Thanx in Advance.
    Alka.

    Hi Alka,
    The dblink is a good solution, but just a bit slow. You can also use a SQL Loader, first export the data from the source table in a text file (i.e. using a tool like TOAD), then sql loader loads the data in the destination table. This is more fast.
    Hope this help,
    Vito

  • Problem with DB6CONV online table move

    Hello,
    I tried to schedule a few concurrent online table move using DB6CONV (version 4.08, on NW07 SP17, DB2 9.5), and I got the error message below in two of the table move sessions:
    20090917 174517 ONLINE CONVERSION: Start of Step 1 (INIT)
    20090917 174517 CALL SAPTOOLS.ONLINE_TABLE_MOVE( 'SAPBD1', '/BIC/AZGL_D00600',
                      'BD1#ZDGLAD', 'BD1#ZDGLAI', '', '', '', 'INIT' )
    20090917 174518 ONLINE_TABLE_MOVE - INIT step aborted.
    20090917 174518 SQL0443N  Routine "*BLE_MOVE" (specific name "") has returned an error
                      SQLSTATE with diagnostic text "SQL0624N  Table
                      "SAPTOOLS.ONLINE_TABLE_MOVE" already has a ".  SQLSTATE=42889
    20090917 174518 Step 1 aborted with errors
    I then chose "Continue" on one session alone, it completed successfully.
    If this is a problem when running DB6CONV online table move in parallel? Is there any way to fix this problem?
    Thanks,
    Patrick

    Hi Siegfried,
    My trace file will excee the maximum 15000 characters allowed in this forum. If you like I can send you in the email.
    With a single table move, it will not fail. So the trace file below showed a successful init step:
    13286: entry: SQLT_db2sap_online_table_move     "SAPBD1"        "/BIC/B0001321000"      "INIT,TRACE"
      838: entry: SQLT_db2sap_Otm_constructor       fffffffffff5c40
        145: entry: SQLT_db2sap_StoredProcedure_connect     fffffffffff5c40
        172: exit:  SQLT_db2sap_StoredProcedure_connect=0
        113: entry: SQLT_db2sap_StoredProcedure_initVersion fffffffffff5c40
          130: SQLT_db2sap_StoredProcedure_initVersion      "driverVer"     "09.05.0002"
        136: exit:  SQLT_db2sap_StoredProcedure_initVersion=0       true    true
        877: SQLT_db2sap_Otm_constructor    "indexNameSz"   128
        880: SQLT_db2sap_Otm_constructor    "triggerNameSz" 128
      883: exit:  SQLT_db2sap_Otm_constructor=0
      2951: entry: SQLT_db2sap_Otm_getProtocolEntryAsInt    "TRACE" fffffffffff5c40 true    0
        2921: entry: SQLT_db2sap_Otm_getProtocolEntry       "TRACE" fffffffffff5138 129     fffffffffff5c40 true    "<null
    >"
          2847: entry: SQLT_db2sap_Otm_getProtocolEntry     "SAPBD1"        "/BIC/B0001321000"      "TRACE" fffffffffff513
    8       129     fffffffffff5c40
            305: entry: SQLT_db2sap_StoredProcedure_prepare "SELECT COALESCE(value, longvalue) AS VALUE FROM SAPTOOLS.ONLI
    NE_TABLE_MOVE WHERE tabschema = ? and tabname = ? and key = ? OPTIMIZE FOR 1 ROW"       fffffffffff5c40 false
            323: exit:  SQLT_db2sap_StoredProcedure_prepare=0
            2890: SQLT_db2sap_HANDLE_SQLCA  -100014
          2903: exit:  SQLT_db2sap_Otm_getProtocolEntry=-100014     ""
          2847: entry: SQLT_db2sap_Otm_getProtocolEntry     ""      ""      "TRACE" fffffffffff5138 129     fffffffffff5c4
    0
            2890: SQLT_db2sap_HANDLE_SQLCA  -100014
          2903: exit:  SQLT_db2sap_Otm_getProtocolEntry=-100014     ""
          2940: SQLT_db2sap_HANDLE_SQLCA    -100014
        2943: exit:  SQLT_db2sap_Otm_getProtocolEntry=-100014       ""
      2981: exit:  SQLT_db2sap_Otm_getProtocolEntryAsInt=0  0
      3469: entry: SQLT_db2sap_Otm_setLock  fffffffffff5c40
        2921: entry: SQLT_db2sap_Otm_getProtocolEntry       "LOCK"  fffffffffff50d8 129     fffffffffff5c40 false   ""
          2847: entry: SQLT_db2sap_Otm_getProtocolEntry     "SAPBD1"        "/BIC/B0001321000"      "LOCK"  fffffffffff50d
    8       129     fffffffffff5c40
            2890: SQLT_db2sap_HANDLE_SQLCA  -100014
          2903: exit:  SQLT_db2sap_Otm_getProtocolEntry=-100014     ""
        2943: exit:  SQLT_db2sap_Otm_getProtocolEntry=0     ""
        2993: entry: SQLT_db2sap_Otm_protocolTime   "LOCK"  fffffffffff5c40
          305: entry: SQLT_db2sap_StoredProcedure_prepare   "MERGE INTO SAPTOOLS.ONLINE_TABLE_MOVE AS t USING TABLE
      323: exit:  SQLT_db2sap_StoredProcedure_prepare=0
      922: entry: SQLT_db2sap_Otm_destroy   110029290       fffffffffff5c40
        3522: entry: SQLT_db2sap_Otm_releaseLock    fffffffffff5c40
        3536: exit:  SQLT_db2sap_Otm_releaseLock=0
        770: entry: SQLT_db2sap_Otm_deinitReplay    fffffffffff5c40
        788: exit:  SQLT_db2sap_Otm_deinitReplay=0
        181: entry: SQLT_db2sap_StoredProcedure_disconnect  fffffffffff5c40
        260: exit:  SQLT_db2sap_StoredProcedure_disconnect=0
        648: entry: SQLT_db2sap_StmtPool_destructor
          649: SQLT_db2sap_StmtPool_destructor      2
        654: exit:  SQLT_db2sap_StmtPool_destructor=0
        181: entry: SQLT_db2sap_StoredProcedure_disconnect  fffffffffff5148
        260: exit:  SQLT_db2sap_StoredProcedure_disconnect=0
      997: exit:  SQLT_db2sap_Otm_destroy=0
    13634: exit:  SQLT_db2sap_online_table_move=0   "00000" ""

  • Select distinct problem with muliple join tables, help needed

    Hi,
    I have two main tables. Each has its of sub joined tables.
    guest_id_for_reservation connects two major tables. This has
    to be that way
    because my guest may change the room status from single to
    double (and the
    similar exceptional requests).
    guests reservation
    guest_id_for_reservation
    countrytable hoteltable
    delegationtable roomtype
    I form a query. I want to select distinct those results. But
    it does not
    work.
    If I do not include any table related to reservation table
    and its sub
    joined tables (disregarding guest_id_for_reservation), it
    works.
    Is there a specific syntax for select distinct of this type
    or any
    workaround.?
    Thank you
    Hakan

    Hi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
    So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
    And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
    I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
    Any ideas would be great!

  • Problem with saving duplicated tables in interactive form

    Hi,
    I have an interactive form that contain a table with a row that contain "insert remove move " object .
    when i press the add button, it duplicate the table, but if i save the PDF and then open it again, the extra table does not appear,
    it seems like it never been save.
    do you knoe what is the problem? why the tables are not saved properly?
    thanks, Noa

    Hi,
    Try doing the following
    try using the simple 'Button'. In the button's object properties, in the tab named 'field', select 'Control Type: submit'.
    Then, in the 'submit' tab in the object properties, choose PDF in the 'submit format' dropdown field.
    In the 'submit to URL field' type:
    mailto:nameataddress.com?subject=mySubject&body=Done
    You may need to adjust the e-mail address, subject and body text.
    Regards
    Ayyapparaj

  • Problems with Performance in table AUSP - R/3

    Hello, I am working with the set of tables (Klah, KSSK, KSML, AUSP, CABN in SAP R3) and generate reports with Crystal Reports 2008. The problem arises when displaying the data in Table AUSP, since the characteristics (Attin) are listed as records and I must show them grouped by the field AUSP.OBJEK as columns (see how in the transaction CL30N).
    I probe with infoset, query / infoset and related tables in Crystal Reports but the performance is very bad.
    Anybody know of a function standard similar to CL30N or I have only programmed in ABAP?
    Edited by: Carolina Jerez on Oct 7, 2009 10:01 AM

    Hi Ruven,
    so you are able to log on to the portal from Windows via SSO. When you access the backend from the portal it is not working, right?
    What kind of iView are you using to access the backend? Can you try with a simple Windows-SAPGui-iView? Is it working then? If you are using some web-based application to access the backend there might be a problem with different domains so that the SAPLogon Ticket is not passed along (both the URL of the portal and the URL of the backend have to be in the same domain -- of course there are way to enable SSO to different domains, but let's start with this simple case)
    I would still recomend to use the Note mentioned above to trace what is actually sent to the backend (I don't think that the dataSourceConfiguration file you are using has anything to do with SSO not working from the portal to the backend).
    Regards,
    Holger.

  • Problem with version enabling tables with ric.

    Hello,
    i have the a problem when i want to version enable tables having ref. int. constraits having delete rule cascade or set null.
    Is it possible that i can't version enable the tables because of these constraints? How i could solve this problem if i want to keep the delete rule?
    thanks,
    Orsi Gyulai

    Hi,
    We are internally creating a <table_name>_g procedure that transfers privileges to the necessary users.  If you have a table with that name, it would explain the error.
    When using ignore_last_error, it will skip the statement that is selected from the all_wm_vt_errors view. Sometimes, the statement can be safely skipped, while in other cases it cannot be. This procedure will always eventually complete when it is repeatedly called with ignore_last_error set to true. However in doing so, some required objects or privileges may not exist or be in an invalid state.
    In your case, you most likely had to skip the 3 or so statements that dealt with the <table_name>_g procedure.  Typically, these statements should not be skipped, but you may or may not see a problem with it due to a number of factors.
    The best course of action may be to drop the trigger in a beginDDL/commitDDL session, and then recreate it in a separate session. Of course, only do this after renaming the <table_name>_g table that you have.  Unfortunately, there is currently no way of getting around this naming convention.
    Thanks,
    Ben

  • Interactive form: problem with ValueHelp in table

    I have InteractiveForm element  in my WDA.
    The form has Table. One of the columns of the table is ValueHelp button from WebdynproNative library.
    The form executes ContainerFoundation_JS code on the ValueHelp click event just fine.
    The Search help gets called just fine.
    My problem is that the Table cell on the form doesn't get populated with the value selected on the search help.
    The Table is bound ro WDA context.
    I am afraid that Adobe gets confused with the row number to return the Help value.
    I have no problem with ValueHelp button on a single TextField (not in a table).
    But within the Table....
    Is ValueHelp working in a Table?
    Any help is greatly appreciated,
    Tatyana.

    Ralph,
    I followed you advice and created identical WDA's and forms in "ECC box" and "RPM box".
    To clarify, "ECC box" is:
    - component version = SAP ECC 6.0
    - SAP_BASIS package level 20
    "RPM box" is:
    - component version = SAP Netweaver 2004's
    - SAP_BASIS package level 17
    I didn't have problems in "ECC box".. Value help in table was working.
    There was some disconnection between WDA table and PDF table in  "RPM box".
    I noticed differences in schemas generated from WDA: "RPM box" schema was not same as "ECC box" schema.
    I believe that it is WDA issue giving me a problem, since I generated XML schemas using right  click on IneratctiveForm object in WDA.
    We defenetly need to update RPM system to a nigher package or try to find OSS note  to fix the issue.
    Points are awarded.
    Ralph, thank you very much for helping me to identify the problem!
    Tatyana.
    Otto,
    I thought you are SAP mentor...
    Somebody with exactly same name as yours sounds like a grampy person in many of  his replies...

  • Problem with selecting remote tables.

    Hi, im having problems with one select...
    Running select, in which i select tables from remote DB, takes not more then 2 seconds, retrieving few rows.
    1) When i try to "create table as" using that select it takes about 1 minute to run.
    2) Trying "merge into" my table using that select takes more that 5 minutes, ... replacing the select within merge by newly created temporary table (point 1) works fine - takes few seconds to run.
    So why simple select takes few seconds, creation of table using that select takes one minute and merge using that select takes 5minutes to run ?
    Thanks for any ideas
    Plan hash value: 1936184599
    | Id  | Operation                             | Name                        | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | MERGE STATEMENT                       |                             |     1 |   642 |    84  (12)| 00:00:02 |       |       |        |      |
    |   1 |  MERGE                                | NP_HT_REC        |       |       |            |          |       |       |        |      |
    |   2 |   VIEW                                |                             |       |       |            |          |       |       |        |      |
    |   3 |    NESTED LOOPS OUTER                 |                             |     1 |  8637 |    84  (12)| 00:00:02 |       |       |        |      |
    |*  4 |     HASH JOIN                         |                             |     1 |  8244 |    81  (13)| 00:00:01 |       |       |        |      |
    |*  5 |      HASH JOIN                        |                             |     1 |  4220 |    60  (10)| 00:00:01 |       |       |        |      |
    |*  6 |       HASH JOIN                       |                             |     1 |  4182 |    56   (9)| 00:00:01 |       |       |        |      |
    |   7 |        NESTED LOOPS                   |                             |     1 |  4134 |    41  (10)| 00:00:01 |       |       |        |      |
    |*  8 |         HASH JOIN                     |                             |     1 |  4109 |    40  (10)| 00:00:01 |       |       |        |      |
    |   9 |          REMOTE                       | HT_REC              |     2 |   170 |    11   (0)| 00:00:01 |       |       |   NP | R->S |
    |  10 |          VIEW                         | VW_SQ_3                     |   806 |  3167K|    29  (14)| 00:00:01 |       |       |        |      |
    |  11 |           SORT GROUP BY               |                             |   806 | 96720 |    29  (14)| 00:00:01 |       |       |        |      |
    |  12 |            MERGE JOIN                 |                             |   806 | 96720 |    28  (11)| 00:00:01 |       |       |        |      |
    |  13 |             SORT JOIN                 |                             |     2 |   170 |    12   (9)| 00:00:01 |       |       |        |      |
    |  14 |              REMOTE                   | HT_REC              |     2 |   170 |    11   (0)| 00:00:01 |       |       |   NP | R->S |
    |* 15 |             SORT JOIN                 |                             |  7100 |   242K|    16  (13)| 00:00:01 |       |       |        |      |
    |  16 |              REMOTE                   | T_UR_BUS               |  7100 |   242K|    14   (0)| 00:00:01 |       |       |   NP | R->S |
    |  17 |         REMOTE                        | T_UR                      |     1 |    25 |     1   (0)| 00:00:01 |       |       |   NP | R->S |
    |  18 |        REMOTE                         | T_UR_BUS               |  7100 |   332K|    14   (0)| 00:00:01 |       |       |   NP | R->S |
    |  19 |       REMOTE                          | HT_BUS                 |     3 |   114 |     3   (0)| 00:00:01 |       |       |   NP | R->S |
    |  20 |      VIEW                             | VW_SQ_4                     |     2 |  8048 |    21  (20)| 00:00:01 |       |       |        |      |
    |  21 |       REMOTE                          |                             |       |       |            |          |       |       |   NP | R->S |
    |  22 |     PARTITION RANGE ITERATOR          |                             |     2 |   786 |     3   (0)| 00:00:01 |   KEY |   KEY |        |      |
    |  23 |      TABLE ACCESS BY LOCAL INDEX ROWID| NP_HT_REC        |     2 |   786 |     3   (0)| 00:00:01 |   KEY |   KEY |        |      |
    |* 24 |       INDEX RANGE SCAN                | NP_HT_REC_IDX_UK |     2 |       |     1   (0)| 00:00:01 |   KEY |   KEY |        |      |
    Predicate Information (identified by operation id):
       4 - access("HB"."CHANGE_DATE"="VW_COL_1" AND "TUB"."BUNDLE_ID"="BUNDLE_ID")
           filter("ROWID"=ROWID)
       5 - access("TUB"."BUNDLE_ID"="HB"."BUNDLE_ID")
           filter("TUB"."DATE_CHANGE">="HB"."CHANGE_DATE")
       6 - access("HR"."USER_ID"="TUB"."USER_ID" AND "TUB"."DATE_CHANGE"="VW_COL_1")
           filter("HR"."CHANGE_DATE">="TUB"."DATE_CHANGE")
       8 - access("HR"."USER_ID"="USER_ID")
           filter("ROWID"=ROWID)
      15 - access(INTERNAL_FUNCTION("HR"."CHANGE_DATE")>=INTERNAL_FUNCTION("TUB"."DATE_CHANGE"))
           filter(INTERNAL_FUNCTION("HR"."CHANGE_DATE")>=INTERNAL_FUNCTION("TUB"."DATE_CHANGE"))
      24 - access("RES"."CHANGE_ID"(+)=TO_NUMBER(TO_CHAR("HR"."CHANGE_ID")) AND "RES"."REC_ID"(+)=TO_NUMBER(TO_CHAR("HR"."REC_ID")) AND
                  "RES"."SCHEDULE_ID"(+)=TO_NUMBER(TO_CHAR("HR"."SCHEDULE_ID")) AND "RES"."USER_ID"(+)=TO_NUMBER(TO_CHAR("HR"."USER_ID")) AND
                  "RES"."CHANGE_DATE"(+)=TO_DATE(INTERNAL_FUNCTION("HR"."CHANGE_DATE"),'dd.mm.yyyy hh24:mi:ss'))

    Have tried hint /*+NO_QUERY_TRANSFORMATION*/ and it is working fine now = 2seconds for merge :) Have no idea why is that, but it works
    thanks
    d.

  • Smart form problem with multiple pages & table problem

    Hi experts,
    I have a problem with my smart form with multiple pages
    Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
    The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
    The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
    Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
    Regards,
    PJ

    I would suggest another approach to this problem.
    Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
    For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
    The table should flow as you would be using the Main window for this one.
    As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
    Hope this resolves your problem.
    Regards,
    Ancy
    Edited by: abapfreak on Oct 4, 2010 11:52 AM

Maybe you are looking for