Two Fields in a Single Table

Hello All,
I'm a newbie to the forum & to Crystal(9), I've searched the forum and ca't exactly find an answer to my question:
My goal is to be able to pull the Company Member Type & the Contact Member Type as part of the same report in the selection criteria.
My problem is: They both reside in the same table...
The question is: "how to be able to pull the info?"
If I need to provide more or clearer info pleasde let me know.  Any help is appreciated.
Lost in DC - DJ

If you have a single table datasource record duplication wouldn't be a result of the select expert. In fact, I can't think of a case where a single table datasource could possibly duplicate records.
The duplicates must be the result of a join.
To answer your initial question, the select expert you enter is subjected, in its entirety, to each record in the joined tables.
The problem that I see with the above suggestion relates to precedence.
This:
cond 1 AND cond 2 AND cond 3 OR cond 4
Is not this:
cond 1 AND cond 2 AND (cond 3 OR cond 4)
In the case of the non-paren-ed select statement, it will return records that satisfy ALL of the AND conditions OR just the or condition.
In the second case, it will return all records that satisfy condition 1 and condition 2 AND either condition 3 or condition 4.
Try bracketing the ored conditions from the same table. That should solve your select problem, but not the duplication problem.

Similar Messages

  • Multiple clob fields in a single table

    Are there any known performance issues associated with having 4 CLOB fields in a single table... the table as such will be relatively small.. like 100 MB... with most rows being << 50k.

    Not really. If you need 4 CLOB columns and it makes sense to have alll the columns in a single table, go for it.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to compare two fields from the same table in the select statement

    Hi, friends
    I try to compare tow fields from the same table, but no result,
    For example, this
    data: cptotchek tyep i.
    select count(*) into cptotchek
    from aufk where erdat = aufk-idat2 .
    The result is  cptotchek = 0, but there are the records in aufk , where,  aufk-erdat = aufk-idat2.
    Please, help me, i don't use the loop statement for optimize my program.
    Regards

    Hi  ,
           it will not return  any value   when you are using   column of same table 
           such as Date Field   , Because  while Using Aggregate Function  it will not check with self column
    .      For that you have to take data in one internal table and then you can work on it  .
         And if you are worried about Performance  it will not affect  , untill you are selecting only required data  .
    you can try this way  .
    data: cptotchek type i.
    types : begin of  w_aufk.
            include structure aufk  .
          types : end of  w_aufk .
    data : it_aufk type standard table of w_aufk with header line  .
    select * into corresponding fields of table it_aufk
    from aufk  .
    loop at it_aufk .
    if it_aufk-erdat  = it_aufk-idat2 .
    write : / it_aufk-erdat , it_aufk-idat2 .
    else .
    delete it_aufk .
    endif  .
    endloop.
    Regards
    Deepak.

  • Two BLOBS in a single table

    So I have a table:
    BLOB_TABLE
    BLOB_ID Number (primary sequence key triggered automatically)
    BULLETIN BLOB
    BULL_FILE VARCHAR(255)
    BULL_MIME VARCHAR(255)
    BULL_LAST_UPDATE DATE
    SUPERFORM BLOB
    SUPER_FILE VARCHAR(255)
    SUPER_MIME VARCHAR(255)
    SUPER_LAST_UPDATE DATE
    When I try to display either BLOB, it will only show the last BLOB loaded for that record.
    Can I store two BLOB data types in a table? It doesn't seem to matter how I even try to display (even using the "download" link attached to the File Browse).
    Or do I need to create two tables and link them together (I would rather not do this if I don't have to).
    Please advise.

    I'm trying to display the BLOB's image on an Interactive Report and Form but neither are working for me, even though I'm trying to follow the Demo/Sample Application to the letter! Aaagh!
    Does this feature have a restriction that the table and field have to be in the same schema as the Apex workspace?
    Just limiting it to the Form page, I haven't been able to get my image to display using either the apex_util.get_blob_file_src() function or defining a Number/Date Format.
    I've checked my database and the image is stored in the BLOG.
    1) The apex_util.get_blob_file_src() function shows a bad image icon in FireFox, nothing in IE8.
    2) Trying to simplify, I defined the format as:
    IMAGE:AEO_TESTING_BASELINE:ERROR_IMAGE::MIMETYPE:FILENAME:LAST_UPDATE_DATE
    Where
    :AEO_TESTING_BASELINE is the table name (in another schema, but granted and has public synonym)
    :ERROR_IMAGE is the column name with the BLOB
    :MIMETYPE is the column holding the mime info
    :FILENAME is the column where the file name was stored
    :LAST_UPDATE_DATE - date column
    But Apex says: "AEO_TESTING_BASELINE" not found
    I'm sure I've got the table and column names right.
    Help! This is driving me nuts.
    Thanks,
    Stew

  • Display two fields in one single cell in a BEx report.

    In a BEx 7 query, we need to display 'First name' and 'Last name' in one cell/column called "Name". The 'First name' and 'Last name' are two different info objects in the multiprovider on which the query is built. These are navigational attributes for Char - Employee. The entire flow is in 7.0 version.
    Any pointers to how this can be done in the query designer?
    Thanks.

    Hi,
    Follow the following steps:
    1. Create a Variable and in General Tab Set Processing By As Customer Exit.
    2. Now go to CMOD & Write the following code doing some custom changes specific to your requirement:
    WHEN "Variable Name"
    "Here you can write a code to select the value from Infocube table and Loop it in a work area"    
    Loop it_tab INTO wa
         concatenate S_date  s_tstmp into s_val_new separated by space.
          l_s_range-low = s_val_new.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    END LOOP
    Note: l_s_range is a structure and holds a single line whereas E_T_range stands for internal table and have multiple values . in customer exit (used for variable ) holds the derived value for the variable .
    You can go to query and there u can drag this Characteristic on which you created this custom exit variable

  • Multi instance of timestamp field in single table?

    Is this statement true?
    "Database does not allow multiple instances of this type if field in a single table"
    To me this makes so sense and I would assume it would not matter how many you had.
    Thoughts?

    Where did you get the error message? What was being done?
    UT1 > set echo on
    UT1 > @t13
    UT1 > create table marktest2 (
      2   fld1 number, fld2 varchar2(10), fld3 timestamp, fld4 timestamp)
      3  /
    Table created.
    UT1 > desc marktest2
    Name                                      Null?    Type
    FLD1                                               NUMBER
    FLD2                                               VARCHAR2(10)
    FLD3                                               TIMESTAMP(6)
    FLD4                                               TIMESTAMP(6)Ran on 9.2.0.6 running on AIX 5.2L
    HTH -- Mark D Powell --

  • Can not see two fields in Crystal 2008 Developer explorer/designer view

    I am currently developing crystal 2008 reports against the salesforce.com database using version 12.0.0.683 CR Developer Full version. I am using an updated driver that was provided in July or Aug 08 in order to view self referencing fields. The problem is that when I try and report against one of the tables (lead history) I cannot view two of the fields (New Value and Old Value)? I can see these two field (New Value and Old Value) in the database expert as the last two fields in the actual table, but the two fields are missing when I go into the explorer/designer view. In Salesforce, these two fields can not be filtered on, but I can export all the values in this table using Salesforece Apex data loader.

    Please re-post if this is still an issue to the OnDemand Forum or purchase a case and have a dedicated support engineer work with you directly

  • Material description filled automatically as the sum of two fields

    Hello to all
    We can automate the process of the creation a new material doing that the field material description(MAKT-MAKTX) can be filled by the system before saving(not by the user) as the sum of two fields in the MARA table that the users will be filled manually.
    Is it possible using a user exit, field exit,....?
    Thanks in advance.
    Regards

    Hello to all
    We can automate the process of the creation a new material doing that the field material description(MAKT-MAKTX) can be filled by the system before saving(not by the user) as the sum of two fields in the MARA table that the users will be filled manually.
    Is it possible using a user exit, field exit,....?
    Thanks in advance.
    Regards

  • SRM 7.0 Add Fields in Account Assignment Table

    Hi SRM Gurus,
    I am working on SRM7.0.
    I want to add two fields in Account Assignment Table in Account assignment tab of Shopping cart Item.
    I can do it using WebDynpro Enhancement framework , i.e.
    1) Create an append structure for Structure INCL_EEW_PD_ACC_CSF
    2) Enhance WebDynpro Component : /SAPSRM/WDC_UI_DO_ACC - Component controller node
    3) Map this with View  V_DO_ACCOUNTING Node
    4) Create the necessary Table Columns and Column editors in Account Assignment Table
    However i think using SPRO configuration and enhancing few structures also this can be achieved.
    Can anyone guide me on how can i achieve it without creating WebDynpro ABAP Enhancement?
    Regards,
    Ashish Shah

    I've never done it with account data, but yes with header and item.
    I think in this case you need to add these fields in SPRO:
    SAP Supplier Relationship Management --> SRM Server --> Cross-Application Basic Settings --> Extensions and Field Control (Personalization) --> Configure Field Control --> Configure Control for Fields of Substructures --> Metadata for Fields of Substructures and Table-Like Enhancements
    Adding the fields with "Set Type" = 31 Accounting...

  • TopLink Question - Mutliple Object to Single Table mapping

    Just a short question,
    Does toplink support mapping feature as such that it can map two distinct objects with single table that when in insertion or selection those two objects can be manipulated, selected in single operation? I know that TopLink mapping supports single object from multiple table mapping, but I'm not sure about multiple objects being associated with single table.
    Secondly, does Hibernate has something like what I described above?
    Howard.

    Hi Howard,
    You can map two objects to a single table if the objects are related by aggregation.
    In TopLink, two objects–a source (parent or owning) object and a target (child or owned) object–are related by aggregation if there is a strict one-to-one relationship between them, and all the attributes of the target object can be retrieved from the same data source representation as the source object. This means that if the source object exists, then the target object must also exist, and if the source object is destroyed, then the target object is also destroyed.
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/tutbuild004.htm#sthref2325
    -Blaise

  • I need to run the program in back ground and then update two fields

    hi gurus
    i need to run the program in back ground and then update two fields in the z table by mm02 transaction by using bapis , can any one give me the code for this.
    Message was edited by:
            Rocky

    hi
    good
    go through this link
    http://www.sapdb.org/7.4/htmhelp/34/ee7fba293911d3a97d00a0c9449261/content.htm
    thanks
    mrutyun^

  • Dynamic value help for a table field to fill two fields, how to?

    Hi all gurus,
    In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
    That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
    DATA: lo_tabnode        TYPE REF TO IF_WD_CONTEXT_NODE.
          DATA: lo_tabnode_info   TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
          DATA: tab_value         TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
                wa_value          TYPE WDR_CONTEXT_ATTR_VALUE.
          lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
          lo_tabnode_info = lo_tabnode->get_node_info( ).
          wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
                                            IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
          lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
                                                     value_set = tab_value ).
    The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
    value : contains the value of the field
    text   : contains a description of the value
    The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
    So I'd like to do as follows:
    - the user clicks on the search help for ZZ_PROLE_R3 field of the table;
    - the above described value help appears;
    - after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
    Could anyone help me achieving such a behaviour?
    Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
    Thanks in advance

    Chris Paine wrote:
    It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
    - I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
    Hi Chris and thanks for your help,
    lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
    I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
    [Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
    [Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
    [Result by now |http://imagebin.ca/view/3PaqdvE.html]
    [Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
    Chris Paine wrote:
    However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
    Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
    - retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
    - RFC call to a custom method that extracts possible values for the specific backend;
    - bind the ammissible values to the value help.
    Chris Paine wrote:
    I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
    Thanks again for your help; additional info as well as code examples would be highly appreciated

  • WebDynpro -  How to pass a single field value to BAPI table?

    Hello,
    I have just come from WebDynpro ABAP training and being a novice hit my first issue right away.
    I need to use BAPI - BAPI_CONTRACT_CREATEFROMDATA to create SD contract (I have used this BAPI to create a service call inside Webdynpro). I have two required fields: contract start and end dates. These fields passed in a table called CONTRACT_DATA_IN.
    When I use the fields from the structures or individual fields, all I need to do is just put them on the view, and when I hit my submit button they will be passed to the BAPI. They are a part of COMPONENTCONTROLLER context (I have also mapped them in View context), but tables are obviously different.
    Is there any way to pass data to tables as seamlessly without any code as for structures? Or do I need to write code to get the values from the input fields and then populate the table manually?
    Thanks,
    Alex

    Hi,
    Single customer contract creation use the struture-
    If you want to pass only one record then using the input fields for those 2 fields we can pass them to BAPI and then create the Customer Contract. This will work for only one record of customer contract.
    then we can directly read these input fields and pass to BAPI.
    Creating many customer contracts -
    For example, If you want to provide the group of records at a time and then you want to create the cusotmer contracts for so many records then you fill these fields and pass them to table then pass this table to the tables parameters of that BAPI.
    Here we need not create the Table UI element separate input fields would serve the purpose.
    Now we can create the batch of contracts for N customers.
    these input fields of a customer will be passed to table, then next set of input fields etc.
    For this create the Table UI element and fill all the records and then pass it to the Tables of the BAPI.
    Regards
    Lekha

  • How to get two tansaction data's in a single table.

    hi experts,
                   I have 2 transaction data's:
    Eg:
    Transaction data 1: 
    ID       C1      C2     C3
    101     10      20      30
    102     11      21      31
    103     12      22      32
    Transaction data 2:
    ID       C1      C4     C5
    101     10      40      50
    102     11      41      51
    103     12      42      52
    my question is, when i am trying to loading the data into the infocube, i should get both data's in a single table. that means it should be like:
    ID    C1  C2   C3   C4   C5
    101  10   20    30   40   50
    102  11   21    31   41   51
    103  12   22    32   42   52
    Note:  C1 object contains same data in both trandata's

    Venkata,
    In this case you should first load to ODS and then to Infocube. But both the data should have common key fields. Data fields can vary.
    In your case suppoe ID be the key field. Both the dat should have ID, as the ODS will have ID as key field.
    Now you can have two infosources and two update rules to the same ODS.
    So the ODS strcuture will be:
    ID C1 C2 C3 C4, C5
    First data and second data as you gave. But the C1 in second dat should have an extra field as it will be overwritten if it is not a key field and will add a new record if the value of C1 is not same as that of data1.
    First decide upon teh key fields of ODS. In update rules you can map only required fields from the respective tran data only. Like in first update rules you can map ID C1, C2, C3 only and in second you can map ID C4, C5. Now we need to evaluate only C1 for which I need some sample records and data relation
    By this way you can get a single record in ODS after loading both data.

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

Maybe you are looking for

  • Creative Inspire P580 volume control probs

    Reading through some of the posts on these forums, it is quite apparent that there is a very obvious fault with certain Creative speaker systems. I've used my P580's for over a year now, and has been working fine, although I've now changed to the Log

  • Where is the movie template in GB 10.0.3?

    Need to add music to a preexisting, pre shot movie. The video tutorials show an older version of GB, where the movie template appears in create a new project. Can not find that template on 10.0.3 version. All I found was movie under tracks. Is that t

  • V2.1 EA2  - Congratulations

    Hello Congratulations for the 2.1 version. Regards António Cunha Edited by: acunha76 on Nov 13, 2009 5:43 PM Edited by: acunha76 on Nov 13, 2009 5:43 PM

  • Question related to extends

    Hi guys, we have : class A { public void method(String l) { System.out.println(l); class B extends A { public void method(String k) { System.out.println(k + "java " ); System.out.println(); public int method2(int x) { return 2 * x; Then we do : A var

  • Regarding ABAP Query related

    Hi,   Can any body tell me how to keep query related data in internal table? Regards, Suresh Kumar.