How to make dynamic selection in case of innerjoin

hi
in run time i will get some table name into g_v_fubw
if i write a select quiry like this its working
  SELECT * FROM (g_v_fubw)
    INTO TABLE g_it_fubw
    FOR ALL ENTRIES IN g_it_werks
    WHERE kostl IN s_kostl3    AND
          platznr IN s_platz3  AND
          werks = g_it_werks-werks   AND
          matnr IN s_matnr     AND
          prctr IN s_prctr.
But if i am  using inner join  like bellow
    SELECT
    avalev ainvpe vastrd vtxjhr a~bukrs
    awerks amatnr
    aindei abwtar a~bklas
    v~adqty
    v~meins
    a~peinh
    INTO TABLE g_it_temp_display
            FROM (g_v_fuba) AS a INNER JOIN
                 (g_v_abcd) AS v ON
                   amatnr = vmatnr AND
                   ainvpe = vinvpe
          WHERE a~invpe EQ p_invw                 AND
                a~valev EQ 'P'              AND
                v~astrd IN g_r_astrd              AND
                v~txjhr IN g_r_txjhr              AND
                a~bukrs EQ p_bukrs                AND
its not working
how can i write dynamic select quiry using innerjoin

Hi...
Make sure the structure of g_it_temp_display is same as the selected fields.
FROM (g_v_fuba AS a INNER JOIN
g_v_abcd AS v ON
amatnr = vmatnr AND
ainvpe = vinvpe ).....>
See the syntax...
as below...
SELECT a~knuma_ag          "SAP agreement number
       a~boart_ag              "SAP agreement type
       a~zzlegsum              "Legacy summary number
       b~datab                 "Begin date
       b~datbi                 "End date
  FROM ( /irm/ipbbasp AS a INNER JOIN  kona AS b ON
  aknuma_ag = bknuma )
  INTO TABLE i_irm_kona
  FOR ALL ENTRIES  IN i_kona_deal
  WHERE a~boart_ag IN r_agrmnt_typ  AND         "SAP agreement type
        a~zzlegsum IN r_summ_number AND         "Legacy summary number
        b~knuma = i_kona_deal-knuma AND         "SAP agreement No
        b~valdt    IN r_ppd.                "Prior price date

Similar Messages

  • How to make dynamic select list with time interval of 15 minutes

    Dear all,
    I've a question. I need a select list that contains time with intervals of 15 minutes from 08:00 till 16:00.
    example 8:00
    8:15
    8:30
    8:45
    9:00
    9:15
    and so on till 16:00
    The values or stored in a varchar column.
    Can someone please help me with this one?
    Best regards,
    Caroline

    I think the easiest way would be to create a table "INTERVALS" with one row and column "INT_PERIOD"? per 15 minute period description
    8:00
    8:15
    16:00
    Then create your select list item based on a Dynamic List, or Query as
    SELECT int_period d, int_period r
    FROM INTERVALS
    ORDER BY INT_PERIODYou could write something to load the table, but that might take about as long to just edit in the values.
    Making it a Dynamic LOV, you then have it available anywhere else you might need it.
    Edited by: Bob37 on May 4, 2012 8:57 AM

  • How to make dynamic search items in a report?

    Hi all,
    I have two questions.
    1. How to make dynamic search (i.e without GO button) field above report to provide dynamic search by words in one field of report query?
    2. How to make similar multiply dynamic search fields on report to provide individual search by selected fields of report with refine capability (i.e any search conditions in different fields must work together as complex WHERE clause)
    Thanks in advance

    hey yuri--
    if i'm understanding your questions correctly, the easiest way to achieve the functionality you're after is to have your query criteria fields submit the page when values are entered/selected. the page should then branch back to itself using the submitted criteria in the query. because you're asking about dynamically adding in your where clause predicates, you should consider using a report region of type "SQL Query (Pl/sql Function Body Returning SQL Query)". that way you can use pl/sql to piece together your query based on the provided criteria.
    so the part of your question i'm not sure of is when your page should submit itself ("without a GO button" as you said). for your first question, it seems to be a simple matter of javascript. you want users to be able to enter search criteria into a field and have that criteria be using in the report. to facilitate that we have a few self-submitting item types such as "SelectList with Submit" and "Text Field (always submits page when Enter pressed)". for your second question, it seems that you should have a Go button for the user to indicate he's done entering in his query criteria. anyhow, that's up to you, i suppose. hopefully this response will give you the concepts you need to implement this as you'd like.
    regards,
    raj
    ps-after re-reading your post, i now realize there's a chance that you wanted users to not have to submit the page at all when filtering their result sets. if that's the case, you'd have to use javascript for that cumbersome feat. google would be a good place to go for that code.

  • How to pass dynamic selection to logical databse using ldb_process function

    dear friends,
                         can anybode tell me how to pass dynamic selection to the logical database when i m using LDB_PROCESS function module.  however, in EXPRESSIONS paramter of the function module i m  passing the selecti-option, it is passing their also but when i used more than  two select-option or paramter it throw an exception FREE_SELECTIONS_ERROR.
    SO PLEASE GUIDE ME HOW TO PASS MORE THAN TWO SELECT-OPTION IN LOGICAL DATANSE DYNAMICALLY USING LDB_PROCESS.

    would be nice if you post the answer to all

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

  • How to make row selection by checkbox in ADF table

    hello,
    using jdev11g TP4 , fusion web application
    when i drag my view object as ADF table into jsf page,
    i want to know how to make row selection by checkbox
    thanks
    greenApple
    Edited by: greenApple on Nov 10, 2008 11:33 AM

    Hi,
    the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
    Frank

  • 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

  • How to make a SELECT LIST READONLY

    Hi,
    I have a form to update the existing values in a table. Primary column is based on a Select List.
    So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
    SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
    There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
    I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
    Thanks in advance...
    mc

    You define a function(this is based aorund jQuery selectors) in the page header like
    <script>
      var makereadonly = function(selector, makeReadonly) {
          $(selector).filter("select").each(function(i){
              var select = $(this);
              //remove any existing readonly handler
              if(this.readonlyFn) select.unbind("change", this.readonlyFn);
              if(this.readonlyIndex) this.readonlyIndex = null;
              if(makeReadonly) {
                  this.readonlyIndex = this.selectedIndex;
                  $(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
                  this.readonlyFn = function(){
                      this.selectedIndex = this.readonlyIndex;
                  select.bind("change", this.readonlyFn);
          //For input items
          $(selector).filter("input,textarea").attr('readOnly','readOnly');
          $(selector).filter("input,textarea").css('background-color','#CDCDCD');
    </script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
      makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing.

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • How to make a select list editable or searchable like the combobox

    Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.

    Hi Nilesh,
    If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
    get the combobox plug-in
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
    I have not tried this though. Found it while searching for some other plug-ins.
    Regards,
    -Senthil

  • How to make software select on UI

    May I know how to make software select. just click down the mouse and drag, then there will be a dot line square. After release the mouse,
    the things selected will change color to red.
    When move mouse over one object on UI, the mouse icon with change to the one with 4 arrow to 4 direction. If click down, the object will change to red color, other red
    color object will back to normal color.
    Any suggestion, thanks.

    As the attached vi, when in runtime, the selected 4 object need to change color. Or the click one need to change color. Thanks.
    Attachments:
    ss.JPG ‏67 KB

  • How to make Dynamically Shortened Text With "Show More"

    Hi there! i want to know how to make dynamically shortened text with show more or read more in my website using HTML 5 pages  or ASP.NET ?
    example like these paragraphs 
    Lorem Ipsum är en utfyllnadstext från tryck- och förlagsindustrin. Lorem ipsum har varit standard ända sedan 1500-talet, när en okänd boksättare tog att antal bokstäver och blandade dem för att göra ett provexemplar av en bok. Lorem ipsum har inte bara överlevt fem århundraden, utan även övergången till elektronisk typografi utan större förändringar. Det blev allmänt känt på 1960-talet i samband med lanseringen av Letraset-ark med avsnitt av Lorem Ipsum, och senare med mjukvaror som Aldus PageMaker.
    Det är ett välkänt faktum att läsare distraheras av läsbar text på en sida när man skall studera layouten. Poängen med Lorem Ipsum är att det ger ett normalt ordflöde, till skillnad från "Text här, Text här", och ger intryck av att vara läsbar text. Många publiseringprogram och webbutvecklare använder Lorem Ipsum som test-text, och en sökning efter "Lorem Ipsum" avslöjar många webbsidor under uteckling. Olika versioner har dykt upp under åren, ibland av olyckshändelse, ibland med flit (mer eller mindre humoristiska).
    I motsättning till vad många tror, är inte Lorem Ipsum slumvisa ord. Det har sina rötter i ett stycke klassiskt litteratur på latin från 45 år före år 0, och är alltså över 2000 år gammalt. Richard McClintock, en professor i latin på Hampden-Sydney College i Virginia, översatte ett av de mer ovanliga orden, consectetur, från ett stycke Lorem Ipsum och fann dess ursprung genom att studera användningen av dessa ord i klassisk litteratur. Lorem Ipsum kommer från styckena 1.10.32 och 1.10.33 av "de Finibus Bonorum et Malorum" (Ytterligheterna av ont och gott) av Cicero, skriven 45 före år 0. Boken är en avhandling i teorier om etik, och var väldigt populär under renäsanssen. Den inledande meningen i Lorem Ipsum, "Lorem Ipsum dolor sit amet...", kommer från stycke 1.10.32.
    Den ursprungliga Lorem Ipsum-texten från 1500-talet är återgiven nedan för de intresserade. Styckena 1.10.32 och 1.10.33 från "de Finibus Bonorum et Malorum" av Cicero hittar du också i deras originala form, åtföljda av de engelska översättningarna av H. Rackham från 1914.

    Moved to the main Dreamweaver support forum.
    There are several ways you could approach this. Here's one you might try:
    Give the first paragraph an ID, such as "first", and wrap the paragraphs you want to hide in a <div> with another ID, such as "more". Then add the following block of JavaScript just before the closing </body> tag of the page:
    <script>
    var first = document.getElementById('first'),
         more = document.getElementById('more'),
         trigger = document.createElement('span');
    trigger.id = 'trigger';
    trigger.innerHTML = 'Show less';
    first.appendChild(trigger);
    function toggleDiv() {
      var state = more.className,
           text = trigger.innerHTML;
      more.className = (state == 'open') ? 'closed' : 'open';
      trigger.innerHTML = (text == 'Show more') ? 'Show less' : 'Show more';
    toggleDiv();
    if (trigger.addEventListener) {
        trigger.addEventListener('click', toggleDiv, false);
    } else if (trigger.attachEvent) {
      trigger.attachEvent('onclick', toggleDiv);
    } else {
      trigger.onclick = toggleDiv;
    </script>
    This gets references to the "first" paragraph and the "more" <div>. It also creates a <span> with the ID "trigger" that's appended to the "first" paragraph. The rest of the script defines a function called toggleDiv(), which toggles the "more" <div> open and closed, and changes the text in the "trigger" <span>.
    You also need to create the following style rules for the various elements:
    <style>
    #trigger {
        text-decoration: underline;
        color: blue;
        cursor: pointer;
    #more {
        transition: ease-out .7s;
        overflow: hidden;
    #more p:first-child {
        margin-top: 0;
    #more.closed {
        height: 0;
        -webkit-transform: translateY(-600px);
        transform: translateY(-600px);
    #more.open {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        max-height: 600px;
    #more + p {
        margin-top: 0;
    </style>
    This solution hides the text and creates the "trigger" <span> only if JavaScript is enabled in the browser. It should work in all browsers, including Internet Explorer 8 and earlier.

  • How to get dynamic select options from logical database?

    Hi,
    in one of my extended reports (means - overwritten standard SAP functionality in Z-namespace) I'm using LDB 'DDF'. I've been requested to validate some of the dynamic selection options (for example - field HKONT at Document level) and to split the logic depending on the particular value(s).
    Tracking what is happened in the LDB program I found that this select option is added as dynamic WHERE clause to the SELECT statement - in a way:
    WHERE bukrs = p_burks AND ... AND
    (where_tab)
    Is there a way to get values of these LDB dynamic select options into my report and if yes - how?
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP Abap Consultant

    Hi,
    Try to use the following fm in your report and check
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = sy-cprog
          mode_write_or_move = 'M'
        importing
          p_trange           = gt_dyn_trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
    PS please make a whereused of this fm , how it has been used in LDB's to get dynmic selection values

  • 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

  • How to make text selection in RTL direction?

    In my application, user need to highlight the text by mouse for arabic language. So how could I make the selection direction as RTL? Already my text aligned in 'right'. which component should I use?

    So thanks, I did it, it works. How now to make next: I selected Id from list and in the next column appears name with ID from DB. so how to make ondemand process i know (thanks to you), but how to get value from LOV that I selected to give it to Dynamic Action.
    Thanks

Maybe you are looking for

  • BPEL Scheduling in SOA Suite 11g

    Hi, I am new to Oracle SOA. I have come across of multiple ways of scheduling in BPEL (Using Servelts with Quartz, DBMS_JOB, Enterprise Scheduler, Wiat activity etc). Can any one suggest best approach to handle various scenarios in scheduling. What i

  • Javaw.exe - Application Error when installing Oracle 10.2.0.1.0

    I hope I am in the correct area. Please forgive me if I have wandered into the wrong space, but has anyone seen this particular issue and what did you do to get around it? v/r George javaw.exe - Application Error The exception unknown software except

  • Using both Time Machine and External HD

    Does it make sense to use both Time Machine for internal back up AND an external hard drive to move files to free up space? 

  • Photo- Edit in option to edit in a third party app. is not working

    In the Develop module, when I go to the Menu Option Photo -> Edit in, normally LR2 created a TIFF file and uploaded it in the third party application for further editing. However, since yesterday, I am getting an error window with the following text.

  • Installing ML on SL at work

    I have a 2007 MBP 3,1 that my boss "loaned" me for work.  It is running SL 10.6.8.  I have a 2011 MBA at home that is running ML 10.8.1.  I really love ML (never used SL until now).  I'm logged into the work computer with my apple ID.  If I update it