Multiple Entries in Single Field (seperate data...?)

I have some mess of data and curious on if this can resolved simple from a query.
What I have, is multiple entries in a single cell. All the data is separated by pipes(|).
So, I have data similar to this in a table.(all made up of course :))..
Soda, coke|pepsi|dew|dtcoke,
Computer, dell|hp|gateway,
What I'm looking to do, is to turn these values into separate columns. So the final output would look
soda, coke
soda, pepsi
soda, dew
soda, dtcoke
computer, dell
computer, hp
computer, gateway
Any suggestions. And, sorry for the hefty examples. Figured more the better....
Edited by: Topher34 on Sep 5, 2008 9:20 AM

Hi,
Topher34 wrote:
With that, ...With what? There are a lot of queries in the thread to which C linked, not to mention links from there. If you need an explanation of any of them, post a copy.
I think this is what you want:
WITH     cntr     AS
     SELECT     LEVEL     AS n
     FROM     dual
     CONNECT BY     LEVEL <= 1 +
                    (     SELECT     MAX (REGEXP_COUNT (b_list, '[|]+'))
                         FROM     table_x
SELECT     a
,     b_list
,     REGEXP_SUBSTR     ( b_list
               , '[^|]+'
               , 1
               , n
               )     AS b
FROM     table_x
JOIN     cntr
ON     n     <= 1 + REGEXP_COUNT (b_list, '[|]+')
ORDER BY     a
,          n;In Oracle 11, this produces the following output from the sample data you posted (that is, the first two distinct columns):
A          B_LIST                         B
Computer   dell|hp|gateway                dell
Computer   dell|hp|gateway                hp
Computer   dell|hp|gateway                gateway
Soda       coke|pepsi|dew|dtcoke          coke
Soda       coke|pepsi|dew|dtcoke          pepsi
Soda       coke|pepsi|dew|dtcoke          dew
Soda       coke|pepsi|dew|dtcoke          dtcokeREGEXP_COUNT is new in Oracle 11, but here's how to adapt it for Oracle 10:
The solution above finds the number of entries in b_list (entries delimited by one or more consecutive | characters) like this:
1 + REGEXP_COUNT (b_list, '[|]+')In Oracle 10, you can get the number of entries delimited by a single | character like this:
1 + LENGTH (b_list) - LENGTH (REPLACE (b_list, '|', NULL))The results will be the same if b_list does not contain consecutive | characters. Otherwise, you may want to test for NULL values in column b.
Edited by: Frank Kulash on Sep 30, 2008 3:32 PM
Originally posted with error.
In the Oracle 10 work-around, when this expression
1 + LENGTH (b_list) - LENGTH (REPLACE (b_list, '|', NULL))is used in sub-query cntr, it is to find the worst case across the whole table, so it should be the argument of MAX. Say
MAX (1 + LENGTH (b_list) - LENGTH (REPLACE (b_list, '|', NULL)))or
1 + MAX (LENGTH (b_list) - LENGTH (REPLACE (b_list, '|', NULL)))In the main query, it applies just to the single value in the current row, so you should not use MAX there.

Similar Messages

  • Pass Multiple values of single field to ITS url

    Hi ,
    I have one transaction code(YW37P),
    I that have one field(Order No) in the selection screen, which has capable to accept multiple values (i.e multiple single values) and excute the t code.
    Now my question is how to pass this multiple values of one single field to the ITS url and by pass the selection screen.
    I have gone through the blogs which explains about how to pass only one single value of single field to ITS url and by pass the selection screen
    please provide some solution for this
    Regards
    Srinivas

    Hello Srinivas,
    How do you enter multiple order numbers in the field usually?  Is there a space or comma separating the numbers?  If so you will probably need to encode the space or comma, ie if a comma %2C.  The easiest way to figure it out is to use a tool like HTTPwatch and capture the POST data to see the value that is normally sent by the transaction. 
    Edgar

  • "Up Next" broken? multiple entries for single songs

    Problem: I double-click an album and only one song plays. "Next" plays the same song. All songs are checked. Looking at "Up Next" and I find multiple listings of the first song in the album - my one song. Similarly I can double-click a single song and get similar results - multiple entries in "Up Next" - 21, 22, and then 19 times in a quick test on several songs (I think the number of duplicates is the same for a particular song but I'm tired of beta-testing).
    I can drag an album or other selection into "Up Next" and all seems well. All my songs are "checked."
    I keep iTunes up to date and installed a new version today before reporting this.
    - Mac OS 10.7.5 iTunes 11.3
    ...dan wheeler
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song
    frustrated to keep hearing the same song

    That did work (kind of). Thanks. 
    That did work (kind of). Thanks. 
    That did work (kind of). Thanks. 
    I was looking for something like that and can (almost) swear that the blue repeat icon wasn't there (I was looking for something like that, but of course my screenshot does not include the culprit so I'll have to assume I missed it).
    And it's "kind of" only since in the latest version anyway you need to select "Off" from Control | Repeat rather than toggle the "One"
    Again, thanks very much.
    I still think the overall UI behavior is wrong - "playing" an album or playlist shouldn't repeat the first item IMHO. It should at least warn that Repeat | One is on.
    ...dan wheeler

  • Multiple values for single field

    hi
    In order to upload Purchase order details, how you handle multiple values for a single field? 
          Eg: Item field may contain no. of values for a record

    Hi,
    It is generally taken care using BDC's by Table Control, and if you are using BAPI's then there are tables for ITEMS.
    Regards,
    Atish

  • Multiple Entries for a field in Table

    Hi All,
    I needed to add field to a ztable, the options should include  values from table LIKP-LFART and should allow for multiple entries.
    I tried adding field with table type and structure type but error saying table type or sturcture cannot be used for table. Please let me know is there any other way how i can include multiple entries.
    Thanks,

    Thanks Sandra and Advait. I have done exactly as advised by sandra, i have added check table as Advait suggest. Also, to test this for multiple entries how can i do this. or shouls i raise this in a new thread.
    Thanks Again.

  • Multiple entries for single employee in salary posting document

    Hi All,
    Require your help badly in sorting out an issue.
    For a particular provision, for ex - Prov for LTA, it is observed that multiple entries appear in salary posting document for a single employee. It is the case for other provisions too like LTA, Gratuity for numerous employees.
    Account Number with Text                  Wage Type   Pers.No.       Credit Amount      Crcy
    14520      PROV FOR LTA-CY            9LTA LTA      700002         11,902.00             INR
    14520      PROV FOR LTA-CY            9LTA LTA      700002         12,984.00             INR
    14520      PROV FOR LTA-CY            9LTA LTA      700002           3,636.00             INR
    Could you pl help me identify the reason and sort out the same.
    Thanks
    Amitava

    Hi,<br>
    How have you configured the 9LTA's provision? Is it any standard functionality for PY-IN or custom?
    Good luck<br><br>
    Thanks,
    Amosha
    <br><br>"Known is a drop & unknown is an OCEAN!"

  • Beginner User:  Locking (making read only after data entry) a single field after selecting date

    Hello, I am a beginner user trying to create a form using Adobe Livecycle.  One of the fields I would like to make read only/protect it/password protect it after a user selects the date.   For example, I select August 17, 2010 as the date. After I select it, I would like that field to be read only or protected so that another user can not edit it. 
    I am a complete novice using XML or codes.  I'm learning alot from these boards though.    I know its probably simple.
    Any help is appreciated.

    The attached locks a text field if the date chosen is "08-17-2010". If it is not the text field is accessible.
    // form1.page1.date::exit - (JavaScript, client)
    if (this.rawValue == "2010-08-17") {
      form1.page1.tf.access = "protected";
    else {
      form1.page1.tf.access = "";
    Steve

  • Excel cells appear garbled; either multiple values in single field or problem with redrawing of the cells.

    In editing a simple, new Excel 2013 file, I am seeing certain cells with multiple, overlapping values in the a single cell.  This is in the A-column so, not a matter of margins.  Specificially, in one cell, I had "Design", then replaced
    that text with "Reqt".  Now I see the word "Reqt" written over "Design".  when trying to delete the values, I can remove the "Reqt" value, but the "Design" value will not disappear/delete.
    I've tried saving and reopenning the file with no effect; problem persists.  Makes me think this is a corrupted .xlsx file, even though I just started from scratch 15 minutes before the problem arose.
    I appreciate any guidance (or bug submission) you can support.
    V/R,
    Kevin

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • Help with Multiple Entries in To Field

    Hi,
    I need some assistance... I have an iPhone 4 and have it configured to get mail via POP and send via SMTP (no Exchange involved). I have all my contacts synchronised from my Outlook client from home. What I am seeing is that when I create a new e-mail on my phone and starting typing in the name of the contact, the contact is listed (and both work and home e-mail addresses are there). But in addition to this, similar to that of the "NK2 file in Outlook" there is an entry also for the contact as a plain e-mail address which is not stored on my phone contacts.
    To summarise, I am getting say a contact with both a work and home e-mail listed plus what the phone sees as their e-mail address (not actually stored as a contact). For example,
    TO: Barb
         > Barbara H
              e-mail_address
         > Barbara H
              home e-mail_address
         > Barbara H
              work e-mail_address
    Does that make sense? I want to get rid of the first listed e-mail address as I rely on my saved contacts in my phone for sending e-mails. It seems to be working in a fashion like the Outlook nk2 files for autofilling e-mail addresses.
    Any advice is greatly appreciated.
    Cheers,
    Loz

    I spoke to apple and they advised this was a feature of the server and people who do this should really use the CC field
    <cough>BS</cough>
    I can't believe anyone at Apple said that was expected. That's worth complaining to Apple Support about because clearly whoever you spoke to isn't qualified to take calls.
    Specifying multiple 'to' recipients should be entirely valid. I'd look at the mail logs to see what's going on.

  • SQL Join help for multiple values in single field.

    Hello All,
    I need a help, I have two tables T1 and T2
    Content of T2 will be like
    T2. ID | T2.USERNAME
    ID1 | John
    ID2 | Peter
    ID3 | Mark
    Content of T1 is like
    T1.ID
    ID1 ID2 ID3
    ID2
    ID1 ID3
    I need to join these two tables and replace the T1.ID values with T2.USERNAME, for eg. Row one of T1 should be changed as John Peter Mark.
    Note: ID1 ID2 ID3 is a single value.
    Thanks for your help.
    Sathish.

    At Volder: I have made a slight enhancement. It's the same thing but the other way around as last week's regular expression thread. Remember the "and then the bird flew away"? ;-)
    SQL> create table t1
      2  as
      3  select 'ID1 ID2 ID3' id from dual union all
      4  select 'ID2' from dual union all
      5  select 'ID1 ID3' from dual union all
      6  select 'ID11 ID2' from dual
      7  /
    Tabel is aangemaakt.
    SQL> create table t2
      2  as
      3  select 'ID1' id, 'John' username from dual union all
      4  select 'ID2', 'Peter' from dual union all
      5  select 'ID3', 'Mark' from dual union all
      6  select 'ID11', 'Volder' from dual
      7  /
    Tabel is aangemaakt.
    SQL> select * from t1
      2   model
      3    reference r on (select t2.*, rownum rn from t2)
      4     dimension by (rn)
      5     measures(id, username)
      6    main m
      7     dimension by (id)
      8     measures(cast(id as varchar(200)) str)
      9     rules iterate(100) until (r.id[iteration_number+1] is null)
    10      (str[any] = replace(str[CV()], r.id[iteration_number+1],r.username[iteration_number+1]))
    11  /
    ID          STR
    ID1 ID2 ID3 John Peter Mark
    ID2         Peter
    ID1 ID3     John Mark
    ID11 ID2    John1 Peter
    4 rijen zijn geselecteerd.
    SQL> select id
      2       , str
      3    from t1
      4   model
      5         reference r on (select id,username,rownum rn from t2)
      6           dimension by (rn)
      7           measures (id, username)
      8         main m
      9           dimension by (id)
    10           measures (cast(' ' || id || ' ' as varchar2(200)) str)
    11           rules iterate(1000) until (r.id[iteration_number+1] is null)
    12           ( str[any] = replace
    13             ( str[cv()]
    14             , ' ' || r.id[iteration_number+1] || ' '
    15             , ' ' || r.username[iteration_number+1] || ' '
    16             )
    17           )
    18  /
    ID          STR
    ID1 ID2 ID3  John Peter Mark
    ID2          Peter
    ID1 ID3      John Mark
    ID11 ID2     Volder Peter
    4 rijen zijn geselecteerd.At Sathish: just look at the queries we have to come up with to do such a simple thing. As said many times before, I would also encourage you to change the design instead of executing the queries presented by Volder and me.
    Regards,
    Rob.
    Message was edited by:
    Rob van Wijk
    Just noticed I missed a final TRIM function around "str", so please add this.

  • Updating multiple entries into one field

    Hi i have a legal directory in which when a solicitor
    registers they can select as many or as few areas of law they want.
    I have all of the areas in a check box
    <input type="checkbox" name="areaoflaw" value="Agricultural
    Law">
    <input type="checkbox" name="areaoflaw" value="Aviation
    Law">
    <input type="checkbox" name="areaoflaw" value="Charity
    Law">
    <input type="checkbox" name="areaoflaw" value="Civil
    Liberties & Human Rights">
    <input type="checkbox" name="areaoflaw" value="Computer
    & IT Law">
    <input type="checkbox" name="areaoflaw"
    value="Construction & Civil Engineering">
    <input type="checkbox" name="areaoflaw" value="Consumer
    Problems">
    <input type="checkbox" name="areaoflaw"
    value="Conveyancing (non-UK)">
    <input type="checkbox" name="areaoflaw" value="Corporate
    Finance">
    <input type="checkbox" name="areaoflaw" value="Dental
    negligence">
    <input type="checkbox" name="areaoflaw" value="Debt
    Collection">
    <input type="checkbox" name="areaoflaw" value="Defamation
    Law">
    <input type="checkbox" name="areaoflaw" value="European
    Law">
    <input type="checkbox" name="areaoflaw" value="Education
    Law">
    <input type="checkbox" name="areaoflaw"
    value="Environmental Law">
    <input type="checkbox" name="areaoflaw"
    value="Enfranchisement & Lease extensions">
    <input type="checkbox" name="areaoflaw" value="Fraud">
    <input type="checkbox" name="areaoflaw" value="Insurance
    Miss-selling">
    <input type="checkbox" name="areaoflaw"
    value="Intellectual Property">
    <input type="checkbox" name="areaoflaw"
    value="Landlord">
    <input type="checkbox" name="areaoflaw" value="Tenant">
    <input type="checkbox" name="areaoflaw" value="Licensing
    Law">
    <input type="checkbox" name="areaoflaw" value="Media &
    Entertainment Law">
    <input type="checkbox" name="areaoflaw"
    value="Mediation">
    <input type="checkbox" name="areaoflaw" value="Mental
    Health">
    <input type="checkbox" name="areaoflaw" value="Motoring
    Offences">
    <input type="checkbox" name="areaoflaw" value="Planning
    Law">
    <input type="checkbox" name="areaoflaw"
    value="Professional Negligence">
    <input type="checkbox" name="areaoflaw"
    value="Pharmaceutical Claims">
    <input type="checkbox" name="areaoflaw" value="Regulatory
    Investigations">
    <input type="checkbox" name="areaoflaw" value="Sports
    Claims">
    <input type="checkbox" name="areaoflaw" value="Shipping
    Law">
    <input type="checkbox" name="areaoflaw" value="Tax
    Law">
    <input type="checkbox" name="areaoflaw" value="Travel
    & Tourism">
    <input type="checkbox" name="areaoflaw" value="Welfare
    Benefits">
    When they submit i want it to insert as many areas as they
    have selected but it only submits the last one checked.
    <cfquery name="insertsolicitor" datasource="law4essex"
    dbtype="odbc">
    insert into
    solicitors(companyname,contactname,address1,address2,town,county,postcode,tel,fax,email,w ebsite,areaoflaw)Values('#companyname#','#contactname#','#address1#','#address2#','#town#' ,'#county#','#postcode#','#tel#','#fax#','#email#','#website#','#areaoflaw#')
    </cfquery>
    Does anyone how i can add all or a few of them depending what
    is selected. they should all go into the area of law field in the
    database

    cybertek23, I'd seriously reconsider doing an INSERT INTO
    for these fields as a comma delimited list. This will undoubtedly
    cause nothing but headaches in the near future. A better way might
    be use each checkbox fieldname as its own column name in the dB.
    In any case, see if this works for you:
    <input type="checkbox" name="areaoflaw"
    value="Agricultural Law">
    <input type="checkbox" name="areaoflaw" value="Aviation
    Law">
    <input type="checkbox" name="areaoflaw" value="Charity
    Law">
    <input type="checkbox" name="areaoflaw" value="Civil
    Liberties & Human Rights">
    <input type="checkbox" name="areaoflaw" value="Computer
    & IT Law">
    <input type="checkbox" name="areaoflaw"
    value="Construction & Civil Engineering">
    <input type="checkbox" name="areaoflaw" value="Consumer
    Problems">
    <input type="checkbox" name="areaoflaw"
    value="Conveyancing (non-UK)">
    <input type="checkbox" name="areaoflaw" value="Corporate
    Finance">
    <input type="checkbox" name="areaoflaw" value="Dental
    negligence">
    <input type="checkbox" name="areaoflaw" value="Debt
    Collection">
    <input type="checkbox" name="areaoflaw" value="Defamation
    Law">
    <input type="checkbox" name="areaoflaw" value="European
    Law">
    <input type="checkbox" name="areaoflaw" value="Education
    Law">
    <input type="checkbox" name="areaoflaw"
    value="Environmental Law">
    <input type="checkbox" name="areaoflaw"
    value="Enfranchisement & Lease extensions">
    <input type="checkbox" name="areaoflaw" value="Fraud">
    <input type="checkbox" name="areaoflaw" value="Insurance
    Miss-selling">
    <input type="checkbox" name="areaoflaw"
    value="Intellectual Property">
    <input type="checkbox" name="areaoflaw"
    value="Landlord">
    <input type="checkbox" name="areaoflaw" value="Tenant">
    <input type="checkbox" name="areaoflaw" value="Licensing
    Law">
    <input type="checkbox" name="areaoflaw" value="Media &
    Entertainment Law">
    <input type="checkbox" name="areaoflaw"
    value="Mediation">
    <input type="checkbox" name="areaoflaw" value="Mental
    Health">
    <input type="checkbox" name="areaoflaw" value="Motoring
    Offences">
    <input type="checkbox" name="areaoflaw" value="Planning
    Law">
    <input type="checkbox" name="areaoflaw"
    value="Professional Negligence">
    <input type="checkbox" name="areaoflaw"
    value="Pharmaceutical Claims">
    <input type="checkbox" name="areaoflaw" value="Regulatory
    Investigations">
    <input type="checkbox" name="areaoflaw" value="Sports
    Claims">
    <input type="checkbox" name="areaoflaw" value="Shipping
    Law">
    <input type="checkbox" name="areaoflaw" value="Tax
    Law">
    <input type="checkbox" name="areaoflaw" value="Travel
    & Tourism">
    <input type="checkbox" name="areaoflaw" value="Welfare
    Benefits">
    <!--- ON THE PROCESSING PAGE, CREATE A VAR THAT'S BLANK
    --->
    <cfset listone = "">
    <cfif isDefined("FORM.areaoflaw")>
    <cfloop list="#FORM.areaoflaw#" index="i">
    <!--- APPEND EACH CHECKBOX VALUE THAT WAS SUBMITTED
    --->
    <cfset listone = ListAppend(listone, "#i#")>
    </cfloop>
    </cfif>
    <cfquery name="insertsolicitor" datasource="law4essex"
    dbtype="odbc">
    INSERT INTO solicitors
    (companyname,contactname,address1,address2,town,county,postcode,tel,fax,email,website,are aoflaw)
    VALUES
    ('#companyname#','#contactname#','#address1#','#address2#','#town#','#county#','#postcode #','#tel#','#fax#','#email#','#website#',
    '#i#')
    </cfquery>
    ------------------------------------------------------------------------------------------ --------------------------

  • Data in the cube is showing multiple entries when compared with ODS

    Hello BW Gurus,
    We have a waste report in production planning on Cube and ODS separately. The same info package loads both targets (which means same infosource) but when we run a report on Cube, the records are showing multiple entries (i.e. Key Figures are not matching when compared to ODS) where as the ODS records are showing correctly as it was in R/3. There are totally 6 key figures out of which 4 pulled from R/3 and 2 are populated in BW.
    An Example:
    Waste report in PP run for plant 1000 for 12/2005 and process order 123456. The operational scrap should be 2.46% and the component scrap should be 3.00% for material 10000000. The report is showing 7.87% for planned operational waste % and 9.6% for planned component waste %. These values are not correct. The ODS values for order 123456 matched the data in R/3 for component and operational scrap.
    There is a Start routine to the ODS and also to the cube. I am not good at ABAP so requesting your Help.
    Here is the ODS Code:
    tables: /BI0/PPRODORDER.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    modify data_package.
    endloop.
    Here is Cube Code:
    tables: /BI0/PPRODORDER,
    /BIC/ODS.
    TYPES:
    BEGIN OF ys_mat_unit,
    material TYPE /bi0/oimaterial,
    mat_unit TYPE /bi0/oimat_unit,
    numerator TYPE /bi0/oinumerator,
    denomintr TYPE /bi0/oidenomintr,
    END OF ys_mat_unit.
    DATA:
    l_s_mat_unit TYPE ys_mat_unit,
    e_factor type p decimals 5.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    data_package-agsu = 'GSU'.
    data_package-agsu_qty = 0.
    select single gr_qty
    base_uom
    into (/BIC/ODS-gr_qty,
    /BIC/ODS-base_uom)
    from /BIC/ODS
    where prodorder = data_package-prodorder
    and material = data_package-material.
    if sy-subrc = 0.
    if /BIC/ODS-base_uom = 'GSU'.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    else.
    SELECT SINGLE * FROM /bi0/pmat_unit
    INTO CORRESPONDING FIELDS OF l_s_mat_unit
    WHERE material = data_package-material
    AND mat_unit = 'GSU'
    AND objvers = 'A'.
    IF sy-subrc = 0.
    IF l_s_mat_unit-denomintr <> 0.
    e_factor = l_s_mat_unit-denomintr /
    l_s_mat_unit-numerator.
    multiply /BIC/ODS-gr_qty by e_factor.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    ENDIF.
    else.
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
    EXPORTING
    INPUT = /BIC/ODS-gr_qty
    NO_TYPE_CHECK = 'X'
    ROUND_SIGN = ' '
    UNIT_IN = /BIC/ODS-base_uom
    UNIT_OUT = 'GSU'
    IMPORTING
    OUTPUT = DATA_PACKAGE-gsu_qty
    EXCEPTIONS
    CONVERSION_NOT_FOUND = 1
    DIVISION_BY_ZERO = 2
    INPUT_INVALID = 3
    OUTPUT_INVALID = 4
    OVERFLOW = 5
    TYPE_INVALID = 6
    UNITS_MISSING = 7
    UNIT_IN_NOT_FOUND = 8
    UNIT_OUT_NOT_FOUND = 9
    OTHERS = 10.
    endif.
    endif.
    endif.
    modify data_package.
    endloop.
    some how the AGSU qyt is not populating in the cube and when I dbug the code, I could see a clean record in the internal table but not in the cube.
    your suggestion and solutions would be highly appreciated.
    thanks,
    Swathi.

    Hi Swathi
    In ODs we have option of overwriting and addition however in Cube we have only adition.Thats why you are getting multiple enteries.
    If you are running daily full load on the cube then please delete the earlier requests.
    So at one point of time there should be only one full load request in cube. Hope this will solve your problem.
    Regards,
    Monika

  • Multiple Text Boxes Populating a Single Field

    I need to create several select lists in a form that can each populate the same field in a table, but obviously need for the select lists in the form to be mutually exclusive so that the user can only enter data into one of them.
    There is also a field on the form displayed as a radiogroup, and I would like for the user's selection on this radiogroup to dictate which one of these multiple select lists they use to enter this data.
    Before I do any of this, however, I guess my first question is, how do I create multiple text entry fields on a form for just a single field in the table?

    hi brice--
    if you're coding your form page manually, you'd simply add your extra fields to your page definition and conditionally diplay and use the values you needed. i'm guessing you're asking about wizard generated forms.
    you can associate multiple fields with a single database column on your form by simply adding the extra ones you need and conditionally displaying/processing the ones you need. your other questions sound like javascript ones to me. if it were me, i'd take a look at our javascript how-to document at...
    http://otn.oracle.com/products/database/htmldb/howtos/htmldb_javascript_howto2.html
    ...and find the specific javascript i needed from google.
    hope this helps,
    raj

  • Multiple material entry in single notification QM01

    Hi,
    We have a requirement wherein we need to enter multiple materials in single notification. Currently the standard screen of QM01 allows only single material entry. Please help in finding a solution for this.
    regards,
    Satya

    Hi Satya,
    Putting multiple materials in single notification as header material is not possible. In fact how will you separate out material wise defects , coding causes, tasks and other information if you go with multiple materials.
    The materials which you put under items tab cannot be treated as header materials. Rather these are the materials which are used as child parts associated with header materials which constitute bill of material. The purpose of these materials is to identify which child part attached to parent part id defective.
    If the multiple materials you meant are child parts, you may proceed with these fields.
    If time saving is your intention then you may develop the BDC for notification creation with selected filed. Prepare data file in excel / text and upload as you upload master data.
    Regards,
    Anand Rao

  • Only multiple entries in BP when creating a new table/field with EEW

    Hi,
    I am creating new tables/fields for BP in CRM 4.0 using transaction EEWB.
    This is working quite well but the fields that appear allows multiple entries per BP. I just want one single entry per BP.
    The wizard talks about multiple options but I cannot see how I define that if it should be a single entry or multiple.
    Any idea how to achieve that?
    Thanks,
    //anders

    Hi
    As i know the fields will be multiple only, u can try for 'default'
    and also try in the wizard in step 2
    The Process of EEW will be like this
    1. To add new fields to the business partner, use the business object Business Partner (BUPA) and create an enhancement of the type "Add New Fields". A wizard helps you define the individual enhancements and provides you with the necessary information for each step.
    2 For each field, you must define the field name, data type and, if necessary, the field length.
    3 For each field, define whether a check table should be available.
    4 For each field, you must also determine whether it should be transferred to SAP BI or to CRM Field Applications.
    5 In the last wizard screen, the system shows you an overview of the fields you defined, together with their associated attributes.
    6 To start generation, choose Complete.
    I hope u can solve ur prob in Step 2 data type
    cheers
    Manohar

Maybe you are looking for