Help Needed to Sum Column in Fixed Table

I am new to LiveCycle.  I need to sum a column in a fixed table.  My rows are summing correctly.  I have tried every formula on the web both in FormCalc and Javascript.  I've cut and pasted script from Adobe templates and from forms on the web.  Nothing is working.  Each change produces a new set of errors.  The Hierarchy is:  (untitled Subform) (page 2), Table 2, Header Row {Header Row contains Year 1, Year 2...Year 5}, Row1 {Row1 contains Text Title, Cell2, Cell3, Cell4, Cell5, Cell6, (untitled Numeric Field) which is a calculated sum of Years 1-5}, Row2, Row3...Row7 are exactly the same.  I want to calculate the sum of each column in the footer row but I keep getting script errors.

I am new to LiveCycle.  I need to sum a column in a fixed table.  My rows are summing correctly.  I have tried every formula on the web both in FormCalc and Javascript.  I've cut and pasted script from Adobe templates and from forms on the web.  Nothing is working.  Each change produces a new set of errors.  The Hierarchy is:  (untitled Subform) (page 2), Table 2, Header Row {Header Row contains Year 1, Year 2...Year 5}, Row1 {Row1 contains Text Title, Cell2, Cell3, Cell4, Cell5, Cell6, (untitled Numeric Field) which is a calculated sum of Years 1-5}, Row2, Row3...Row7 are exactly the same.  I want to calculate the sum of each column in the footer row but I keep getting script errors.

Similar Messages

  • ALV - need to sum values of internal table and display in ALV

    I have data in internal table as:
    Material     date     sum1     sum2
    Mat_A     19990101     4     4
    Mat_A     20080501     3     0
    Mat_A     20080601     2     0
    Mat_B     19990101     2     0
    Mat_B     20080601     5     5
    Required output is :
    Material     qty1     qty2     19990101     20080501     20080601
    Mat_A     432     4     4     3     2
    Mat_B     2+5     5     2           5
    Thinking of using ALV to pass the internal table and display as classical report (and also to save as excel spreadsheet).
    Counting your help on the following questions:
    1) How to accomplish the sum in ALV report? Can ALV FM do that or one has to use ABAP to compute the sum from the given internal table?
    2) Mat_A can have more date values. Here it got 3 distinct date values 19990101, 20080601, 20080501. If it has say 5 date values, how to create the ALV date columns (from 3 to 5 date columns) dynamically?
    Thanks for the help.

    for the sum inalv we use generally..
    it_fieldcat-do_sum = 1.
    check this examples...
    http://www.****************/Tutorials/ALV/Subtotals/text.htm
    *& Report  ZTEST_ALV_PERC_13317
    REPORT  ztest_alv_perc_13317.
    TYPE-POOLS: slis.
    DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
          wa_fieldcat TYPE slis_fieldcat_alv,
          it_events TYPE slis_t_event,
          wa_events TYPE slis_alv_event,
          it_sort TYPE slis_t_sortinfo_alv,
          wa_sort TYPE slis_sortinfo_alv,
          l_layout TYPE slis_layout_alv.
    TYPES: BEGIN OF ty_itab,
            field1(10),
            qty1 TYPE i,
            qty2 TYPE i,
            qty3 TYPE i,
            dummy TYPE c,
          END OF ty_itab.
    DATA: itab TYPE STANDARD TABLE OF ty_itab WITH  HEADER LINE,
    itab1 TYPE ty_itab.
    START-OF-SELECTION.
      itab-field1 = 'FIRST'.
      itab-qty1 = 2.
      itab-qty2 = 1.
      itab-qty3 = 5.
      itab-dummy = 10.
      APPEND itab.
      itab-field1 = 'FIRST'.
      itab-qty1 = 2.
      itab-qty2 = 1.
      itab-qty3 = 5.
      itab-dummy = 10.
      APPEND itab.
      itab-field1 = 'FIRST'.
      itab-qty1 = 2.
      itab-qty2 = 1.
      itab-qty3 = 5.
      itab-dummy = 10.
      APPEND itab.
      wa_fieldcat-col_pos = 1.
      wa_fieldcat-fieldname = 'FIELD1'.
      wa_fieldcat-tabname = 'ITAB'.
      APPEND wa_fieldcat TO it_fieldcat.
      wa_fieldcat-col_pos = 2.
      wa_fieldcat-fieldname = 'QTY1'.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-do_sum = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      wa_fieldcat-col_pos = 3.
      wa_fieldcat-fieldname = 'QTY2'.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-do_sum = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      wa_fieldcat-col_pos = 4.
      wa_fieldcat-fieldname = 'QTY3'.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-do_sum = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      wa_fieldcat-col_pos = 5.
      wa_fieldcat-fieldname = 'DUMMY'.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-do_sum = 'X'.
      wa_fieldcat-no_out = 'X'.
      APPEND wa_fieldcat TO it_fieldcat.
       CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = it_events
        EXCEPTIONS
          list_type_wrong = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
         i_callback_program           = sy-repid
         it_fieldcat                    = it_fieldcat
        TABLES
          t_outtab                       = itab
    EXCEPTIONS
       program_error                  = 1
       OTHERS                         = 2
      IF sy-subrc <> 0.
      ENDIF.

  • Help needed with PK and FK between tables

    I need help with setting Primary keys and specially Foreign Keys between tables.
    This is star schema case, where SalesFact in located in middle.
    I have specially understanding what should be primary keys in SalesFact and setting FK relations.
    Also any table needing new Id columns because of FK requirements.
    /*FOLLOWING SCRIPS CAN BE RUN IN YOUR SQL SERVER IF YOU WISH*/
    CREATE TABLE [dbo].[SalesFact](
     [SalesId] [nvarchar](50) NULL, /* Every Id is unique and listed only once in table*/
     [ProductId] [nvarchar](8) NULL,    /* Large amount of products are sold*/
     [CustomerId] [nvarchar](50) NULL,  /* Large amount of customers exists*/
     [SalesAmount] [float] NULL,
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[Product](
     [ProductId] [nvarchar](8) NULL, /* Every Id is unique and listed only once in table*/
     [ProductName] [nvarchar](50) NULL,
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[Customer](
     [CustomerId] [nvarchar](8) NULL, /* Every Id is unique and listed only once in table*/
     [CustomerName] [nvarchar](50) NULL,
    ) ON [PRIMARY]
    GO
    CREATE TABLE [dbo].[Sales](  /*Long and skinny table to describe sales related info*/
     [SalesId] [nvarchar](8) NULL, /* Every Id may be listed several time.*/
     [SalesProperty] [nvarchar](50) NULL, /*value can be SalesPerson,CustomerContact etc */
     [SalesName] [nvarchar](50) NULL, /*value can be John Smith etc.*/
    ) ON [PRIMARY]
    GO
    GO
    INSERT [dbo].[Customer] ([CustomerId], [CustomerName]) VALUES (N'1', N'Toyota')
    GO
    INSERT [dbo].[Customer] ([CustomerId], [CustomerName]) VALUES (N'2', N'Nissan')
    GO
    INSERT [dbo].[Customer] ([CustomerId], [CustomerName]) VALUES (N'3', N'Ferrari')
    GO
    INSERT [dbo].[Product] ([ProductId], [ProductName]) VALUES (N'11', N'Car')
    GO
    INSERT [dbo].[Product] ([ProductId], [ProductName]) VALUES (N'22', N'Phone')
    GO
    INSERT [dbo].[Product] ([ProductId], [ProductName]) VALUES (N'33', N'Milk')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'333', N'ContactPerson', N'John')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'333', N'CustomerManager', N'Bill')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'111', N'CTO', N'Ted')
    GO
    INSERT [dbo].[Sales] ([SalesId], [SalesProperty], [SalesName]) VALUES (N'111', N'CFO', N'Hillary')
    GO
    INSERT [dbo].[SalesFact] ([SalesId], [ProductId], [CustomerId], [SalesAmount]) VALUES (N'333', N'11', N'1', 123)
    GO
    INSERT [dbo].[SalesFact] ([SalesId], [ProductId], [CustomerId], [SalesAmount]) VALUES (N'111', N'222', N'22', 456)
    GO
    Kenny_I

    CREATE TABLE [dbo].[SalesFact](
    SalesFactID INT NOT NULL PRIMARY KEY,
     [SalesId] [nvarchar](50) NULL FOREIGN KEY REFERENCES Sales(Saleid) , /* Every Id is unique and listed only once in table*/
     [ProductId] [nvarchar](8) NULL
    FOREIGN KEY REFERENCES Products(Productd),   
    /* Large amount of products are sold*/
     [CustomerId] [nvarchar](50) NULL
     FOREIGN
    KEY REFERENCES Customers(Customerid), 
    /* Large amount of customers exists*/
     [SalesAmount] [float] NULL,
    ) ON [PRIMARY]
    GO
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Help needed to merge values from two tables -

    We have these three test tables shown, which have a common ID; And amount fields; I want the -------
    test1.val = test2.val + test3.val
    when they have common ids in them;
    I have shown the test data below: And the expected output;
    NOTE: In database with real table values - each of them have millions of rows in them. So effeciency is very important here;
    SQL> desc test1;
    Name Null? Type
    ID NUMBER
    VAL NUMBER
    SQL> desc test2;
    Name Null? Type
    ID NUMBER
    VAL NUMBER
    SQL> desc test3;
    Name Null? Type
    ID NUMBER
    VAL NUMBER
    SQL> select * from test1;
    ID VAL
    1 50
    2 50
    3 55
    4 60
    5 20
    5 rows selected.
    SQL> select * from test2;
    ID VAL
    1 25
    1 25
    2 5
    2 5
    4 75
    5 rows selected.
    SQL> select * from test3;
    ID VAL
    1 25
    1 25
    2 5
    2 25
    2 25
    5 10
    6 rows selected.
    I EXPECT the output to be:
    SQL> select * from test1;
    ID VAL
    1 100
    2 65
    3 20
    4 75
    3 20
    5 10
    6 rows selected.

    Need help with the update queries - joining three tables -

  • Need help in hiding particular column of a table depending upon value

    Hi experts,
    I have developed a custom smartform and Print program.
    My problem is ..depending upon the data i recieve,...i have to hide a particular column.
    For example ... i have a table with 2 rows...one header and main row..This table has 3 column.
    I have to hide one of the column depending upon the data i recieve. So my output should have 2 rows and 2 columns.
    Please help.

    well vishwa u r right it wont work for multiple columns,
    then i guess this shud work.
    @thendral
    U can try like this create the rows with single column
    then print all ur text elements with spaces inserted manually between them with text editor then in conditions tab of the text elements specify ur condition according to what all u want to print.
    кu03B1ятu03B9к

  • Help needed regarding SUM keyword in an ITAB loop

    Hello,
    I am maintaining a code as given below.
    LOOP AT itab INTO totwa.
    SUM.
    ENDLOOP.
    totwa is defined as a workarea which is needed to hold the sum totals of the fields in the itab. According to the documentation of SUM, it should calculate the sum totals and should put the totals in the workarea mentioned. But somehow its not calculating the value. Could anyone please help me in resolving this issue. Please guide me with your thoughts as to what might have gone wrong.
    Note: the itab fields are of type P.
    Thanks in advance
    Sudha Naik

    Hello Suha
    According to the ABAP documentation the SUM statement is used in a specific situation:
    <b>Syntax
    SUM. </b>
    <b>Effect </b>
    <i>The statement SUM can only be specified within a loop starting with LOOP, and is only considered within a AT-ENDAT control structure. Prerequisites for using the statement SUM include using the addition INTO in the LOOP statement, and that the specified work area wa is compatible with the row type of the internal table. In addition, SUM cannot be used when the row type of the internal table itab contains components that are tables. </i>
    <i>The statement SUM calculates the component total with the numeric data type ( i, p, f) of all rows in the current control level and assigns these to the components of the work area wa. In the control levels FIRST, LAST , and outside of an AT-ENDAT control structure, the system calculates the sum of numeric components of all rows in the internal table.</i>
    I hope the following sample report will clarify the use of <b>SUM </b>and <b>COLLECT</b>.
    *& Report  ZUS_SDN_COLLECT
    REPORT  zus_sdn_collect.
    TYPES: BEGIN OF ty_s_line.
    TYPES:   key(1)    TYPE n.
    TYPES:   value     TYPE p DECIMALS 2.
    TYPES: END OF ty_s_line.
    TYPES: ty_t_itab    TYPE STANDARD TABLE OF ty_s_line
                        WITH DEFAULT KEY.
    DATA:
      gs_line       TYPE ty_s_line,
      gt_itab       TYPE ty_t_itab,
      gt_itab_coll  TYPE ty_t_itab.
    START-OF-SELECTION.
      DO 3 TIMES.
        gs_line-key = syst-index.
        gs_line-value = syst-index * '2.3'.
        APPEND gs_line TO gt_itab.
        APPEND gs_line TO gt_itab.
      ENDDO.
      gs_line-key = 4.
      gs_line-value = '5.5'.
      APPEND gs_line TO gt_itab.
      WRITE: / 'Initial list'.
      LOOP AT gt_itab INTO gs_line.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using SUM statement with AT END OF'.
      SORT gt_itab BY key.
      LOOP AT gt_itab INTO gs_line.
        AT END OF key.
          SUM.
          WRITE: / gs_line-key,
                   gs_line-value.
        ENDAT.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using SUM statement without control structure (1)'.
      SORT gt_itab BY key.
      LOOP AT gt_itab INTO gs_line.
        SUM.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using SUM statement without control structure (2)'.
      SORT gt_itab BY key.
      LOOP AT gt_itab INTO gs_line.
        SUM.
        WRITE: / gs_line-key,
                 gs_line-value.
        EXIT.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using COLLECT statement'.
      REFRESH: gt_itab_coll.
      LOOP AT gt_itab INTO gs_line.
        COLLECT gs_line INTO gt_itab_coll.
      ENDLOOP.
      LOOP AT gt_itab_coll INTO gs_line.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
      WRITE: / 'Using COLLECT statement for total sum'.
      REFRESH: gt_itab_coll.
      LOOP AT gt_itab INTO gs_line.
        gs_line-key = 0.
        COLLECT gs_line INTO gt_itab_coll.
      ENDLOOP.
      LOOP AT gt_itab_coll INTO gs_line.
        WRITE: / gs_line-key,
                 gs_line-value.
      ENDLOOP.
      WRITE: / syst-uline.
      SKIP 2.
    END-OF-SELECTION.
    Regards
      Uwe

  • Help needed to load XML into DB table

    I need some serious help if someone can spare the time. I am completely new to XML and don't really understand it yet but I need to be able to load an XML file (example) below.
    I want to load this into a table that would look like the following:
    CHAPTER_TITLE    DOC_HTML    DOC_TITLE
    Men's Health      494440          AAAAA
    Men's Health      496812          BBBBB
    etc....
    <?xml version=1.0 encoding=utf-8?>
    <BookCollections Quantity=1 Title=Emis Books Collection>
        <Book Folder=PILSS Title=Patient Support>
            <Chapter Title=Men''s Health>
                <Document DocHTML=494440 Title=AAAAA />
                <Document DocHTML=496812 Title=BBBBB />
                <Document DocHTML=498923 Title=CCCCC />
                <Document DocHTML=499844 Title=DDDDD />
                <Document DocHTML=499901 Title=EEEEE />
            </Chapter>
        </Book>
    </BookCollections>I have read through the documentation I could find but I can't get it to work. I had a simple procedure which loaded the text file as a CLOB and then inserted it into an XMLTYPE column but even that wouldn't work. I would rather it loaded as above in seperate columns.
    Is there a simple example someone can help me out with?

    That is very close ORA_SID thank you. But I get the ORA-19025 error when I have more than one Chapter section. The example was a cut down version, ther real file has thousands of Chapters.
    e.g.
      1  insert into test2 values(xmltype(' <BookCollections Quantity="1" Title="Emis Books Collection">
      2  <Book Folder="PILSS" Title="Patient Support">
      3  <Chapter Title="Men''s Health">
      4              <Document DocHTML="494440" Title="AAAAA" />
      5              <Document DocHTML="496812" Title="BBBBB" />
      6              <Document DocHTML="498923" Title="CCCCC" />
      7              <Document DocHTML="499844" Title="DDDDD" />
      8              <Document DocHTML="499901" Title="EEEEE" />
      9              <Document DocHTML="500381" Title="FFFFF" />
    10              <Document DocHTML="500446" Title="GGGGG" />
    11              <Document DocHTML="500996" Title="HHHHH" />
    12          </Chapter>
    13          <Chapter Title="Contraception">
    14              <Document DocHTML="496815" Title="IIIII" />
    15              <Document DocHTML="496817" Title="JJJJJ" />
    16              <Document DocHTML="499547" Title="KKKKK" />
    17              <Document DocHTML="499550" Title="LLLLL" />
    18              <Document DocHTML="500473" Title="MMMMM" />
    19              <Document DocHTML="500704" Title="NNNNN" />
    20              <Document DocHTML="500813" Title="OOOOO" />
    21              <Document DocHTML="500995" Title="PPPPP />
    22              <Document DocHTML="500996" Title="QQQQQ" />
    23          </Chapter>
    24  </Book>
    25  </BookCollections>
    26* '))
    SQL> /
    1 row created.
    SQL> SELECT extractValue(xml_data, '/BookCollections/Book/Chapter/@Title') AS Chapter_Title,
      2  extractValue(value(em), '/Document/@DocHTML') AS Document_DocHTML,
      3  extractValue(value(em), '/Document/@Title') AS Document_Title
      4  FROM test2,table(XMLSequence(extract(xml_data,'/BookCollections/Book/Chapter/Document'))) em
      5  ;
    FROM test2,table(XMLSequence(extract(xml_data,'/BookCollections/Book/Chapter/Document'))) em
    ERROR at line 4:
    ORA-19025: EXTRACTVALUE returns value of only one nodeCan you help on this?

  • Help needed in Sorting Columns (date sorts alphabetically)

    Hi All,
    I have a report query as follows:
    select to_date(period,'MON-YYYY') start_date
    ,exp_type
    ,id
    ,acct_ref
    ,dept_ref
    ,item_date
    ,amt
    from test;
    I need to display the report in the same order as select statement (start_date,exp_type,id etc). I have given default sort order in report attributes and user enabled sort on all columns. The report attributes look as shown below:
    column_name / sort / sort_seq
    start_date / yes / 3
    exp_type / yes / 1
    id / yes / -
    acct_ref / yes / -
    dept_ref / yes / 2
    item_date / yes / 4
    Now my problem is that the start date sorts alphabetically (as varchar) instead of chronologically (date wise). How can I resolve this?
    If I change my default sort order so that start_date is sorted 1st, it works perfectly fine. Is there any restriction for APEX sort that says the column displayed needs to be sorted in the same order? How do I overcome it? Or is it possible to overcome it?
    Any suggestions would be appreciated.
    Thanks,
    Sumana

    Hi,
    Thanks. But no I cannot change it to date, as there are many applications using it for displaying the period. But I found an equivalent date column for that period and tried using that. It was not working.
    I did further analysis and found that even to_char(period) works fine. The problem was something else. In my region query the select statement was
    select exp_type
    ,id
    ,amt
    ,to_date(period,'MON-YYYY')
    from test.
    I then had in region attributes used the arrows to change order of display, so that period appears first. That was the culprit. When I change my region query, to match the order in region attributes the date column as well as to_date(period) both work fine.
    I never knew that the order of select statement and that in region attributes should match each other!!! And hence when posting I did not give importance to the order of my select list. Sorry for that.
    The mystery is how was it working when i changed the sort order to say "period" 1st and then exp_type (2nd)
    Thanks everyone for you help.
    Thanks,
    Sumana

  • Help needed on retreving QID from APQI table

    Hi Gurus,
    I am using RBIBGL00 standard batch program in my report to create a batch session and in turn execute it.
    Batch session is getting created and it is getting executed as well.
    Issue:
    Now i need to retreive the batch information (succes/failure msgs) from the log
    so i am writing code as:
    select QID to display session log
    SELECT SINGLE qid                             
        INTO gv_qid
        FROM apqi
        WHERE datatyp = gc_bdc
          AND groupid = p_group    
          AND progid  = sy-repid     
          AND userid  = sy-uname
          AND credate = sy-datum.
    But qid is not getting fetched.
    Please help me to resolve this issue.
    Regards'
    Madan.

    Hi Thomas,
    I am using RFBIBL00 program in my report in 2 modes,
    to Create Batch session and
    in Call Transaction mode as well. ( is my requirement)
    1. In Call Transaction mode, i am passing the option xlog, so that after documents are loaded, a log is displayed.
    2. In Batch Session mode, batch is getting created and to execute that batch, i am calling another program RSBDCSUB.
    Batch is getting executed and result gets exported to memory.
    I am fetching the results from memory using function module
    "LIST_FROM_MEMORY"
    Then converting that to ASCI fromat using function module
    "LIST_TO_ASCI"
    Now i need to display the session log
    so i am retreving session data (QID) from APQI table.
    Please let me know if there are any alternatives.
    Thanks for your time and help.
    Regards'
    Madan.

  • Urgent Help Needed - Joining On Columns with Concatenated Values

    I have a challenging issue where I'm trying to join two tables together with a USER_ID column. The caveat is that in one of the tables, the USER_ID is potentially concatenated.
    For example, TABLE1 has 2 columns:
    1) USER ID
    2) USER NAME
    TABLE2 has 3 columns:
    1) USER ID
    2) USER COUNTRY
    3) USER DATE HIRED
    The resulting SQL query is:
    select * from TABLE1, TABLE2
    where TABLE1.USER_ID = TABLE2.USER_ID
    The problem is that TABLE1.USER_ID is only limited to 1 ID per record. However, TABLE2 potentially has concatenated USER ID's.
    In other words, while TABLE1 has a USER_ID = 'ABC123', that same ID may appear in TABLE2 concatenated as USER_ID = 'ABC123;ABC124'
    Obviously, with a natural join, this individual will be dropped from the SQL result-set.
    Is there a "join function" that I can use to say - "whenever I'm joining these 2 tables, as long as the TABLE1.USER_ID appears *ANYWHERE* in the TABLE2.USER_ID concatenated string (regardless of position), then please include this record in the join??
    As of right now, I have total 80 rows. 55 of them successfully are pulled because they have a one-to-one USER_ID correspondence. The other 25 are dropped out because they have multiple concatenated ID's in TABLE2 and only one ID in TABLE1.
    Any advice/help will be greatly appreciated!

    Hi
    Etbin wrote:
    Maybe
    select *
    from TABLE1,TABLE2
    where instr(TABLE2.USER_ID,TABLE1.USER_ID) > 0Regards
    Etbin
    Edited by: Etbin on 20.4.2012 23:27
    Forgot to mention; <strike>Urgent</strike>How could you forget the "I found love in Slovenia" problem?
    If the keys can be different lengths, then the solution above will match different keys if the one in table1 happens to be a substring of the one in table2. For example, if table1.userid='ABC'1, and table2.userid='ABC123;ABC124', then it will be considered a match.
    To avoid that:SELECT  *
    FROM      table1
    ,     table2
    WHERE      INSTR ( ';' || table2.user_id || ';'
               , ';' || table1.user_id || ';'
               ) > 0And Martijn is right (as usual). Storing several different values in a single column, like you're doing with table2.user_id, will cause lots of problems. Store each one in a separate row of a new table.

  • Help needed to set consecutive numbering in table rows

    I need to set up a table so that the first column is a column of consecutive numbers (much like the record count).
    The table will be followed with a text frame, and then a new table will start.
    HOWEVER. I wanted to numbers in the first column to continue consecutively.
    I am using this for a lengthy explanation of technical instructions: one instruction/ per line.
    There will be about 1000+ instructions over the course of this 200-page book. The second column contains a checkbox, which is why I am having problems setting this up in an ordinary word-processing program, because of export issues (Dont ask). The third column contains the instruction.
    I am hoping that Numbers will solve my formatting problems.
    *Is there a simple way to set up the first table column in a sheet to number the rows consecutively, and continue the numbering each time a new table is inserted?*
    I hope I have explained this well enough.

    Fred, is it possible for this to work with other number related items. I'm talking specifically about sequential inventory numbers. At work I used excel, but now that computer is dead, and I'm working from home. I've refused to install microsoft products on my home machine for quite a while. I love numbers, and am glad it's out, so I am never even tempted by the "devil". Sorry got off topic.
    Essentially I used to write BLX-001 in cell one, BLX-002 in cell two, then do the drag method. When I have text in the Numbers cell though it won't give consecutive numbers, just continually repeat the numbers in the first two cells. Any helps

  • Help needed in  extracting data from PCD tables

    Hi Friends
    I Have a requiremnt for creating custom portal activity report ,even though
    we have  standard report, the extraced data will be used to create bw reports later.
    my part is to find a way to extract the data from PCD tables for creating
    custom portal activity reports
    i have selected the following  tables for the data extraction
    WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON,
    WCR_USERPAGEUSAGE.
    My questions are
    1.Did i select the Exact PCD tables?
    2.Can i use UME api  for  accessing the data from those tables?
    3.can i use  the data extracted  from PCD tables in JSPdynpage  or
    webdynpro apps?
    4.can i Querry  the  PCD tables from  JSPDynpage or Webdynpro
    Please help me in finding a solution for this
    Thanks
    Ashok Battula

    Hi daniel
    Can u tell  me weather i can develop the following  custom reports from those WCR tables
         Report Type
    1     Logins
          - Unique Count
          - Total Count
          - Most Active Users (by Partner Name)
          - Most Active Users (by Contact Name)
          - Entry Point (by page name)
          - Session Time
          - Hourly Traffic Analysis
    2     Login Failures
          - Total Count
          - Count by error message
          - Credentials Entered (by user name and password)
    3     Content Views (by File Name)
          - Unique Count
          - Total Count
          - Most requested Files
          - Most requested Pages
          - File Not Found
    4     Downloads (by File Name)
          - Unique Count
          - Total Count
          - Most requested Files
          - File Not Found
    5     Portal Administration
          - Site Content (by file name)
          - Site Content (by page name)
          - Latest Content (by file name)
          - Expired Content (by file name)
          - Subscriptions Count (by file name)
    6     Login History (by Partner, Contact Name)
          - No Login
          - First Login
          - Duration between registration and first login
          - Most Recent Login
          - Average Number of Logins
    plz  help me in find ing a way
    thanks
    ashok

  • Help needed on replicating data of condition tables to CRM.. pleaseeeeee..

    Hi all,
    Basically the issue is like this now.
    Im trying to download the confition tables data from R3 to CRM. so in CRM...
    when i manually try to start initial download the object for a table by R3AS, tcode..
    the bdocs are been in intermeditate state in CRM. with yellow.
    when i try to reprocess it is throughing a short dump( reason telling : already a record is been availble in table : CNLCRMPRSCALEDIM, trying to insert again.
    So m not understanding what the issue would be..
    Could you please help me with this. im really in dead situation.
    I just debugged something, and found that some code is not getting records from /sapcnd/T681e table.... for this condition table.
    kindly reply me please... this is urgeent.. hope u understand me.. if someone has the solutuion. points will be given....
    Robiin

    Hi Robin
    We are able to do the initial download successfully by using objects like DNL_COND_A004,DNL_COND_A005 etc.,
    Made entry in R3ac4 with the object CONDITIONS and in R/3 side made the entry in SM30, in table crmrfcpar with the entry DNL_COND* with download type ALL
    Please refer to note 514952 for the details on how to download condition tables
    Regards
    Manohar
    Edited by: Manohar R on Jul 2, 2008 7:40 AM

  • Minor help needed with four-column layout

    Hello,
    I took a three-column DW template and turned it into a
    four-column layout, and I'm very proud to say that I've figured out
    most of it myself. (CSS is NOT my strong point.) However, I'm
    having some problems with the background in the fourth column.
    http://www.patiastephens.com/new
    How can I make the top of the fourth column/background level
    with the other three columns?
    And how can I get the background to repeat?
    I plan to eventually put ads in the fourth column, and I may
    or may not leave the background in, depending on how it looks.
    Thanks much!

    Hi, thank you, Bonnie.
    I did mess with the repeat properties, but nothing helped.
    However, I ended up moving the background image to the entire page;
    I think it looks better. (See updated page if you're interested.)
    Now I'm trying to figure out why I get float drop when I move
    the main content column above columns 3 and 4 (so it loads first)
    And why the text in columns 1 and 4 is pushed down ....
    Aaargh.

  • Urgent help needed in Using German Umlauts for Table names

    I created a table with Umlauts But i am not able to select from
    this table.I am also not able to drop this table as i get
    invalid character error.What setting has to be set.The NLS is I
    believe GERMAN_GERMANY.WE8ISO8859P1

    Pl do not post duplicate threads - insert dont work in Workflow
    Srini

Maybe you are looking for

  • Two computers two ipods

    I have a desktop pc as my nano home. I have a new laptop and a new 80G ipod, I want ALL my music on the biggin' and just the travel songs on the littlun' Do I need an external harddrive to save all this? When I consolidate my library does this double

  • Change of G/L Account for specific vendors in Transaction MIGO

    HI Friends, I have a requirement  to change the G/L Account no for particular set of Vendors instead of G/L account maintained in the Transaction OBYC while doing MIGO. I need a user exit through which i can change the G/L account number . Thanks in

  • TROUBLING INSTALLING PROGRAMS

    Our PC is a TouchSmart 310 1025a model.  It runs on Windows 7. There is something wrong with it installing programs.  We had a problem where our printer stopped working a couple of months ago.  My husband tried to re-install it and couldn't so assume

  • Eg90 error

    hi friends i  got an  error while performing the transction eg90 for creating  order for replacement  of devices the error is No scheduling parameters have been entered for mainteance orders in Customizing plant 0002, order type PM05 and production s

  • FCP Canvas and Viewer

    My FCP canvas and viewer appears to be showing my 16:9 footage in a letterbox format - not the same as usual - normally when I make the canvas full screen the footage will fill the screen - but now it is letter boxed, if you see what I mean!? I am us