Dynamic select for in list

Hi there,
  I have 2 tables:
select * from table1: 
FIELD1
V1
V2
V3
select * from table2: 
FIELD2
V1,V2,V3
I want the following query has same return as select * from table1:
select * from table1 where field1 in (select field2 from table2)
But, I got 0 row return.
Can you help me?
Thanks,

SQL> create table table1 (field1 varchar2(5)) tablespace users;
Table created.
SQL> create table table2 (field2 varchar2(5)) tablespace users;
Table created.
SQL> insert into table1 values('V1');
1 row created.
SQL> insert into table1 values('V2');
1 row created.
SQL> insert into table1 values('V3');
1 row created.
SQL> commit;
Commit complete.
SQL> insert into table2 values('V1');
1 row created.
SQL> insert into table2 values('V2');
1 row created.
SQL> insert into table2 values('V3');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from table1;
FIELD
V1
V2
V3
SQL> select * from table2;
FIELD
V1
V2
V3
SQL> desc table1
           Name                            Null?    Type
    1      FIELD1                                   VARCHAR2(5)
SQL> desc table2
           Name                            Null?    Type
    1      FIELD2                                   VARCHAR2(5)
SQL> select * from table1 where field1 in (select field2 from table2);
FIELD
V1
V2
V3
SQL>

Similar Messages

  • Dynamic Select One Lookup List restricted to a subset of values

    I'm working with JDeveloper 10.1.3. trying to put an application together that needs two Lookup List the first is a Manufacturer Name and the second is items manufactured based on the selection of the first Lookup List choice (Manufacturer Name). I have two tables that make a nice master-detail relationship also I have a view that has the manufacturer name and what they manufacture but I just can't get a handle on how to set up the second lookup list to provide the subset of manufactured items based on the selection made in the first list. So the basic question is how do you restrict a Dynamic Select One Lookup List to a subset of values from the table based on a value stored in the application (on the page or in a bean). This has me stumped and any help would be greatly appreaicated.

    I am not sure if you have tried using the partial trigger on your second lookup list.
    Here's an overview of how you can do it @
    1.) Create a binding on the page to keep the selected value from your first LOV.
    2.) Set autoSubmit = true on your first LOV ) [ so that your binding in the first step gets populated upon selection]
    3.) Set up an ID value for the first LOV component.
    4.) Set up the partial trigger property on your second LOV to the ID of your first LOV.
    5.) In your page definition, use the value from the binding in step1 to assign value to any where clause parameters on the view object for your second LOV.
    HTH,
    Shishir
    donnellypl wrote:
    I'm working with JDeveloper 10.1.3. trying to put an application together that needs two Lookup List the first is a Manufacturer Name and the second is items manufactured based on the selection of the first Lookup List choice (Manufacturer Name). I have two tables that make a nice master-detail relationship also I have a view that has the manufacturer name and what they manufacture but I just can't get a handle on how to set up the second lookup list to provide the subset of manufactured items based on the selection made in the first list. So the basic question is how do you restrict a Dynamic Select One Lookup List to a subset of values from the table based on a value stored in the application (on the page or in a bean). This has me stumped and any help would be greatly appreaicated.

  • Dynamic Selections for the F.42 report

    Hii Experts,
    I want to add a field called Business Place(BUPLA) in dynamic Selection in tcode F.42.
    So, in F.42 KDF Logical Database is used, so i make a Custom Selection view for KDF database.
    Business place is successfully added in Dynamic Selection, but it doesn`t reflect when i execute F.42.
    When i test from SE36, it reflects.
    Nitin Garg

    Note 50370 explains in full detail how the system works for selecting the documents with dynamic selection.
    Balance report reads the transaction figures which are stored with the help of several different fields, so the selection according to further fields cannot be proceed. This is standard design.
    The dynamic selection for Document Data does not work for reports which use customer / vendor transaction tables (KNC1 LFC1),i.e., document data like doc.number and Doc.date is not stored in transaction tables.
    Dynamic selections can only be used with customer / vendor, company code
    or fiscal year fields.  The following reports are affected by this
    program design.
    S_ALR_87012186 - Customer sales
    S_ALR_87012082 - Vendor Balances in Local Currency
    S_ALR_87012093 - Vendor Business
    S_ALR_87012079 - Transaction Figures: Account Balance
    S_ALR_87012080 - Transaction Figures: Special Sales
    S_ALR_87012081 - Transaction Figures: Sales
    S_ALR_87012105 - List of Down Payments open at Key Date - Vendors
    S_ALR_87012172 - Customer balances in local currency
    RFKSLD00       - F.42
    RFDSLD00       - F.23
    Hope this clarifies.
    Kind Regards
    Soumya

  • How to extend dynamic selection for Logical Database PNPCE

    Hi All,
    I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
    Thanks
    Ranjith

    Hi All,
    I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
    Thanks
    Ranjith

  • Dynamic select for all entries?

    Hi!
    Is it possible to do a dynamic SELECT FOR ALL ENTRIES IN... command?
    sg. like:
      DATA:
        select_text TYPE string,
        from_text TYPE string,
        where_text TYPE string.
      SELECT FOR ALL ENTRIES IN <gt_table1> (select_text)
      into corresponding fields of table <gt_table2>
      FROM (from_text)
      WHERE (where_text).
    Thanks and Best Regards,
    Tamas

    Hi,
    you can use the Dynamic Selects for FOR ALL ENTRIES, but i think you may need to use the correct Internal table to match the tabel structure
    Regards
    Sudheer

  • Dynamic selections for the FBL5N report

    Hi Experts,
    Can any body help how to add the account assignment group field in dynamic selections for the FBL5N report.
    rgds / Srini

    Hi Alex,
    Thanks for your quick response, here for the report FBL5N the logical database is DDF and the field which should be add in dynamic selection is (KTGRD) account assignment group is available in KNVV table but this table is not available in DDF logival database.
    Please suggest us how we can pickup this field into the report FBL5N for dynamic selections.
    regards / Srini

  • How To Document: Dynamic selection for InfoSpoke

    Hello
    I have downloaded and read the "How To" document: Dynamic selection for InfoSpoke & Use InfoSpoke Badi to correct KYF format
    link: https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/01d3a090-0201-0010-9783-bc33ab690e70&overridelayout=true
    I'm mostly interested for the dynamic selection part of the document and the code for that seems to be stored in an attached text document (ZLX_ESS_INTERFACE.txt). The problem is that i cannot actually view it or any other txt in the pdf.
    Can anyone who has got the txt file link it here please or suggest a program that would dynamicaly change the infospoke selections?
    Actualy i'm not interested in having an input screen for filling the variable value, i just want to get the value from an ODS
    any suggestions?
    Thanx in advance
    Fragi

    Hello
    I have downloaded and read the "How To" document: Dynamic selection for InfoSpoke & Use InfoSpoke Badi to correct KYF format
    link: https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/01d3a090-0201-0010-9783-bc33ab690e70&overridelayout=true
    I'm mostly interested for the dynamic selection part of the document and the code for that seems to be stored in an attached text document (ZLX_ESS_INTERFACE.txt). The problem is that i cannot actually view it or any other txt in the pdf.
    Can anyone who has got the txt file link it here please or suggest a program that would dynamicaly change the infospoke selections?
    Actualy i'm not interested in having an input screen for filling the variable value, i just want to get the value from an ODS
    any suggestions?
    Thanx in advance
    Fragi

  • The dynamic selection for profit center in FBL1N isn't working

    Dear all,
    I have one one issue regarding FBL1N.
    The dynamic selection for profit center in FBL1N isn't working.
    If we enter profit center, we don't get any value.
    As per developer after debugging, table BSIK is not getting updated, hence values are not updating in the report.
    Please let me know, any configuration is missing.
    BR,
    Shailendra

    Try BSEG and see if its there for the particular doc. If its not there its a functional issue, you have to capture profit center at the time of entry. You can either make the profit center field mandatory or substitute it at the time of document generation. Consult your FI consultant. If u have activated New GL features the profit center may me in table FAGLFLEXA. but i don't think u can get the profit center from this table for your purpose, you may need to develop a zreport.
    And its not BISK its BSIK
    Edited by: Harisankar S on May 4, 2010 3:05 PM

  • Selection-screen dynamic selections for dtab

    Hey experts,
    when I add this to my code
    selection-screen dynamic selections for zbr_t_autori
    and I want activate it, it writes out an error
    The addition "DYNAMIC_SELECTIONS" is only allowed in INCLUDE DB__SSEL.
    and I don't know how to solve it, what is that include db__ssel?
    Can anybody help me.
    Regards,
    Robert

    Check this:
    Structure of Logical Databases - ABAP Programming (BC-ABA) - SAP Library
    Where are you using this code?
    selection-screen dynamic selections for zbr_t_autori
    It should be in the include reserved for your LDB selection:

  • Dynamic Selection for FBL1N and FBL5N reports

    Dear all,
    is it possible to show more fields in Dynamic Selection for FBL1N and FBL5N reports?
    Thanks in advance
    Alberto

    Dear Alberto,
    Please refer to the SAP note 310886. In the note you should be able
    to see how to add fields in to the dynamic selection , and the fields,
    which are available for this.
    I hope this can help You.
    Mauri

  • Submit syntax for dynamic selections for T-code FAGLL03

    Hi Experts,
    My z report contains following fields in selction screen.
    1 . G/ L account
    2. Comapny code
    3. posting date
    4. Profit Center
    5. layout
    In my z report i used following syntax for passing selection screen values to standard program and getting data.
    This is for T-code FAGLL03
    SUBMIT FAGL_ACCOUNT_ITEMS_GL
    WITH SD_SAKNR IN S_SAKNR
    WITH SD_BUKRS IN S_BUKRS
    WITH %%DYN001-LOW (Profit Center)
    EXPORTING LIST TO MEMORY
    AND RETURN.
    The above syntax is not working for dynamic selection field ( Profit Center), entire Profit center data is fetching from standard program. I want to fetch profit center data based on my z report selection values .
    Expect for profit center field , submit syntax is working.
    kindly provide submit syntax for my above requirement .
    Any suggestions from experts....
    Edited by: PLP REDDY on Nov 25, 2009 8:59 AM

    Indeed it won't work. Instead of passing parameters one by one use
    [SUIBMIT... WITH SELECTION-TABLE rspar|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_3@3@]
    Here you add one line per parameter (field KIND = 'P' ) and multiple lines per select options (field KIND = 'S' ). For the latter you need also provide SIGN and OPTIONS, i.e SIGN = 'I' , OPTIONS = 'EQ'
    The lin I gave you will explain it more.
    Regards
    Marcin

  • Dynamis selections for transaction FDK43

    HI All,
    I need to add field (BUSAB) from table KNB1 in the dynamic selection screen of transaction FDK43 (Cre4dit Management :Master Data List)
    I tried this using selection view in LDB but its not displayed the field in dynamic selections in the transaction FDK43.Altough it shows the field in the LDB ...this is not the case for the transaction FDK43.
    Please advise.
    Thanks.
    Shital

    Hi Shital,
    Were you able to fix this issue? Could you please share how you fixed this?
    Thank you

  • Use of Field selection for Multilevel list Display Equipment/Function loc

    Dear Expert,
                          Anybody suggest me that how can we use the feature of Equipment & function location settings as given SPRO path.
    Plant Maintenance and Customer Service ® Master Data in Plant Maintenance and Customer Service ® Technical Objects ® Equipment ® Define Field Selection for Multi-Level List Displays of Equipment.
    Plant Maintenance and Customer Service ® Master Data in Plant Maintenance and Customer Service ® Technical Objects ® Functional Locations ® Field Selection for Multi-Level List Displays of Functional Locations.
    Your help & suggestions are much appreciated.
    Regards,
    Akhilesh

    Dear AKhliesh,
    This customizing setting is for the T-code IE07. You can customize view of IE07 in different strcuture with required fields wants to didplay or suppress.
    Regards,
    Kaushal Rai

  • How to do dynamic selection for fields

    Hi,
    Can you please help me on this.
    I am adding the custom fields to the standard trasactions CJI3, CJI4, CJI5 for dispalying the line items. For this I am using COOMEP01 CO-OM: Information system -> line item reports enhancement.
    I am displaying the custom fileds for line items.
    The problem is...In all three t.codes I am having dynamic selection icon. user wants, selection is based on my custom fields...How to get my custom fileds on the selection screen?
    Please assist me as soon.
    Regards,
    Ravi

    Hai reddy
    This example shows how different transactions codes can be used to produce different selection options for the same program. The example allows for lookups on Sales Order number, Purchase Order Number, Delivery Number or Invoice number.
    *--- SELECTION OPTIONS -
    SELECTION-SCREEN BEGIN OF BLOCK SO WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN,"Sales order number  
                   S_VBELND FOR LIKP-VBELN,"Delivery number    
                   S_VBELNI FOR VBRK-VBELN,"Invoice number     
                   S_VBELNP FOR VBKD-BSTKD."PO number          
    SELECTION-SCREEN END OF BLOCK SO.                           
    *--- EVENT AT SCREEN OUTPUT -
    AT SELECTION-SCREEN OUTPUT.                                      
      CASE SY-TCODE.                                                 
        WHEN 'ZEDI6'.                                                
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                      
              WHEN '001'.                  "Sales order select       
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '002'.                  "Delivery select          
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select           
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '004'.                  "PO Select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
            ENDCASE.                                                 
          ENDLOOP.                                                    
        WHEN 'ZEDI6D'.                     "Delivery select           
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                       
              WHEN '001'.                  "Sales order select        
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
              WHEN '002'.                  "Delivery select            
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select            
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
              WHEN '004'.                  "PO Select                 
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
            ENDCASE.                                                  
          ENDLOOP.                                                    
        WHEN 'ZEDI6I'.                     "Invoice select                  
          LOOP AT SCREEN.                                                  
            CASE SCREEN-GROUP4.                                            
              WHEN '001'.                  "Sales order select             
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                             
              WHEN '002'.                  "Delivery select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                             
              WHEN '003'.                  "Invoice select                 
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                             
              WHEN '004'.                  "PO Select                      
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                              
            ENDCASE.                                                       
          ENDLOOP.                                                         
        WHEN 'ZEDI6P'.                     "PO select                  
          LOOP AT SCREEN.                                              
            CASE SCREEN-GROUP4.                                        
              WHEN '001'.                  "Sales order select         
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                         
              WHEN '002'.                  "Delivery select            
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                          
              WHEN '003'.                  "Invoice select             
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                         
              WHEN '004'.                  "PO Select                  
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                         
            ENDCASE.                                                    
          ENDLOOP.                                                     
      ENDCASE.                                                        
    Thanks & regards
    Sreenivasulu P

  • Dynamic Selection for non-logical database

    How to read the dynamic selections information to a table that is not in logical database for ex. : BSAD.
    Currently, i'm reading from the function module 'RS_REFRESH_FROM_DYNAMICAL_SEL'. The value for the fields are read one by one...........totalling to thousands of codes.
    Does anyone noe a shorter way of reading it ?
    Please give sme guidance. Thank you.

    Hi Mr Anthony,
    I have a report using logical database. However, the logical database used does not contain a table, BSEG, which i need to access.
    I understand that for tables which are not in the logical database, I cannot use the "GET <tablename>" in the "START_OF_SELECTION" event.
    Please advise on how to use the "SELECT" statement for the BSEG table with constraints from the dynamic selections. Thank you

Maybe you are looking for

  • Applications no longer work after fsck

    Hi there, I have been having major computer problems that just seem to keep getting worse. Today - office 2011 stopped working (kept crashing at startup) so I did a completely fresh install of the software. Didn't work. I then ran disk utility and ca

  • "Object reference not set to an instance of an object." in Visual Studio 2012 Entity Framework Model-First

    Hello We're trying to use a Model-First with Entity Framework in Visual Studio, targeting an Oracle XE 11g installation. No matter from what angle we're approaching the issue, we always end up with an "Object reference not set to an instance of an ob

  • Can't get gmail to work on 4S

    Hi, No matter what I do I cannot set up my gmail account on my 4S (ATT). I've read the gmail threads on Google's website re this issue, and followed what their YouTube clip says to do re 2-Step-Verification for gmail on iPhone's (generates a password

  • Three Problems

    I have InDesign CS3 (v. 5.0.4) installed on a Dell Latitude E6520 with i5 processor, 8 GB RAM,  Win 7 Pro 64 bit SP1. All of a sudden, I have encountered 3 problems: 1.  I created a paragraph style called Article Title:  Palatino Linotype 18 pt, bold

  • I didn't register my Iphone but it's icloud is on can I still use find my iphone

    I just lost my iphone and I have find my iphone app, the icloud is on but he give me a massege that I need to register my device what can I do?