FOR ALL ENTRIES IN - Not selecting all Records

Hi,
       SELECT obknr ppaufnr ppposnr
                     FROM ser05
                     INTO TABLE gi_ser05
                     FOR ALL ENTRIES IN gi_objkpo
                     WHERE obknr EQ gi_objkpo-obknr
                       AND ppaufnr IN so_aufnr
                       AND ppposnr EQ '0001'.
              IF NOT gi_ser05 IS INITIAL.
                  SELECT bwart matnr menge dmbtr aufnr
                   FROM aufm
                   INTO TABLE gi_aufm
                   FOR ALL ENTRIES IN gi_ser05
                   WHERE aufnr = gi_ser05-ppaufnr
                     AND bwart IN ('261','262').
              ENDIF.
In debugging, this code is fetching 129 entries in gi_aufm.
Where in AUFM table for same WHERE Conditions there are 139 records.
Why it's skipping Records?

HI ,
SELECT obknr ppaufnr ppposnr
                     FROM ser05
                     INTO TABLE gi_ser05
                     FOR ALL ENTRIES IN gi_objkpo
                     WHERE obknr EQ gi_objkpo-obknr
                       AND ppaufnr IN so_aufnr
                       AND ppposnr EQ '0001'.
              IF NOT gi_ser05 IS INITIAL.
                  SELECT bwart matnr menge dmbtr aufnr
                   FROM aufm
                   INTO TABLE gi_aufm
                   FOR ALL ENTRIES IN gi_ser05
                   WHERE aufnr = gi_ser05-ppaufnr
                     AND bwart IN ('261','262').
              ENDIF.
in above code where you are getting  Less Records
  Because from above code it seems that  you  not  selected
MANDT
MBLNR
MJAHR
ZEILE from table aufm 
which is primary key of table AUFM   and  all records are depended  on  entries in table  gi_objkpo  which you are using for
all entries   .
so first check  data in table by passing values according to where condition  .
Regards
Deepak.

Similar Messages

  • For All Entries is NOT better than INNER JOIN in most cases

    I quote from Siegfried Boes' excellent post here: Will writing an inner join be better or creating a view?
    For all the FOR ALL ENTRIES lovers ... there is no proof for these reappearing recommendation.
    There is nearly nobody who receives forum points, who recommends FOR ALL ENTRIES instead of Joins. What is the reason ???
    It is easier to prove the opposite. A Join is a nested loop inside the database, a FOR ALL ENTRIES is partly outside of the database. FOR ALL ENTRIES works in blocks, joins on totals.
    FOR ALL ENTRIES are not recommded on really large tables, because the chances are too high that
    too many records are transferred.
    People prefer FOR ALL ENTRIES, because JOINs are not so easy to understand. Joins can go wrong, but with a bit of understanding they can be fixed.
    Some Joins are slow and can not be fixed, but then the FOR ALL ENTRIES would be extremely slow.
    There are several kinds of views:
    - projection views, i.e. only one table involved just fields reduced
    - join views, several tables, joins conditions stored in dictionary
    - materialized views, here the joined data are actually stored in the database. Storing and synchronisation has to be done manually.
    Only the last one creates real overhead. It should be the exception.
    Join Views and Joins are nearly identical. The view is better for reuse. The join is better in complicated, becuase if the access goes wrong, it can often be fixed by adding a hint. Hints can not be added to views.
    Abraham Bukit  points out:
    If it is cluster table, (you can't use join). If it is buffered table, I would also say avoid join.
    If they all are transaction table which are not buffered and are not cluster tables.  
    He further supports Siegfried's statement that FAE is easier to undestand than INNER JOINs.
    Thomas Zloch says, regarding buffered tables:
    At least think twice, maybe compare runtimes if in doubt. 
    So, unless someone has some EVIDENCE that FOR ALL ENTRIES is better, I don't think we want to see this discussed further.
    Kind regards
    Matt

    To give food for thought here's an example I  gave in a thread:
    If you have a statement like
    SELECT ... FOR ALL ENTRIES IN FAE_itab WHERE f = FAE_itab-f.
    SAP sends it to the database depending how the parameter rsdb/prefer_union_all is set:
    rsdb/prefer_union_all = 0 =>
    SELECT ... WHERE f = FAE_itab[1]-f
              OR    f = FAE_itab[2]-f
              OR    f = FAE_itab[N]-f
    You have some influence  of the generated statement type: Instead of OR'ed fields an IN list can be used
    if you have only a single coulmn N to compare:
    rsdb/prefer_in_itab_opt parameter:
    SELECT ... WHERE f IN (itab[1]-f, itab[2]-f, ..., itab[N]-f)
    rsdb/prefer_union_all = 1 =>
    SELECT ... WHERE f = FAE_itab[1]-f
    UNION ALL SELECT ... WHERE f = FAE_itab[2]-f
    UNION ALL SELECT ... WHERE f = FAE_itab[N]-f
    see: Note 48230 - Parameters for the SELECT ... FOR ALL ENTRIES statement
    As you can see for the 2nd parameter several statements are generated and combined with a UNION ALL,
    the first setting generates statements with OR's (or uses IN  if possible) for the entries in FAE_itab.
    I give you a little example here (my parameters are set in a way that the OR's are translated to IN lists; i traced the execution in ST05)
    Select myid into table t_tabcount from mydbtable
      for all entries in t_table    " 484 entries
        where myid = t_table-myid .
    ST05 trace:
    |Transaction SEU_INT|Work process no 0|Proc.type  DIA|Client  200|User |
    |Duration |Obj. name |Op.    |Recs.|RC    |Statement|
    | 640|mydbtable |PREPARE|   |  0|SELECT WHERE "myid" IN ( :A0 , :A1 , :A2 , :A3 , :A4 ) AND "myid" = :A5|
    | 2|mydbtable |OPEN   |   |  0|SELECT WHERE "myid" IN ( 1 , 2 , 3 , 4 , 5 ) AND "myid" = 72 |
    | 2.536|mydbtable |FETCH  |    0|  1403|   |
    | 3|mydbtable |REOPEN |   |  0|SELECT WHERE "myid" IN ( 6 , 7 , 8 , 9 , 10 ) AND "myid" = 72 |
    | 118|mydbtable |FETCH  |  0|  |
    | 2|mydbtable |REOPEN |  |  0|SELECT WHERE "myid" IN ( 11 , 12 , 13 , 14 , 15 ) AND "myid" = 72     |
    | 3|mydbtable |REOPEN |  |  0|SELECT WHERE "myid" IN ( 475 , 476 , 477 , 478 , 479 ) AND "myid" = 72  |
    | 94|mydbtable |FETCH  | 0| 1403|   |
    | 2|mydbtable |REOPEN |   |  0|SELECT WHERE "myid" IN ( 480 , 481 , 482 , 483 , 484 ) AND "myid" = 72 |
    You see the IN list contained 5 entries each , wich made up about 97 statements for all 484 entries.
    For every statment you have a single fetch operation wich means a separate access to the database.
    If you would replace the FAE with a join you would only have one fetch to the database.
    With the example above we can derive these observations:
    1. From database point of view these settings kill performance when you access a big table and/or have a lot of entries or columns in your FAE_itab. Furthermore, you hide information what data you will access
    at all and thus you block the database from creating a more efficient execution plan because it DOESN'T KNOW wich data you will select in the next step. I.e. it may be more efficient to scan the table in one shot instead of having many index accesses - but the database can make this decision only if it can examine ONE statement that has ALL the information of what data to retrieve.
    2. A second impact is that with every statement execution you trigger the allocation of database resources
    wich will contribute to the overhead described above.
    Said that, FAE  can never be a replacement for joining big tables (think of having a table with thousands of records in a FAE table )
    Edited by: kishan P on Nov 2, 2010 2:16 PM - Format Fixed

  • Have a question I do not use mail in my computer I use yahoo and I have all these emails and selected all and then delete then delete trash and they always come back how do I stop these old email in apple mail? I never send anything from there but I have

    have a question I do not use mail in my computer I use yahoo and I have all these emails and selected all and then delete then delete trash and they always come back how do I stop these old email in apple mail? I never send anything from there but I have the same email in yahoo but delete them and they still show up in apple mail from day one how do I get rid of these once and for all.Please help
    <Edited by Host>

    I am soooooooooooo confused now.  Ok, if you are having problems with Yahoo Mail and Gmail but you do not use Apple's Mail you need to do the following:
    1 - Post in Yahoo's Mail forums and/or contact their tech support.
    2 - Post in Gmails forums and/or contact their tech support.
    Neither of the above are Apple's products.

  • You did not select all the docs belonging to the cross-co code transact Message no. F5876

    Hello All,
    When Cross company document is reversed with FBU8, Only one (1) leg is reversed and another (2) is not.
    For internal audit purpose, when any document is reversed, User should attach some proofs and then he should reverse it.
    When I tried to reverse only (2) leg through FBU8, I am getting this error – “You did not select all the docs belonging to the cross-co code transact Message no. F5876”.
    Pls give me some inputs how to reverse (2) leg.
    Thanks

    Hello Kalim - I am getting error message. We can not make it to warning message, though we have option in OBA5.
    Any other alternatives?
    Thanks

  • I want to set up 5 different ipods to sync from one library, but want to be able to control what is synced to each ipod and have it remember that for future synching and just look for new songs and not sync all the other music in the library

    I want to set up 5 different ipods to sync from one library, but want to be able to control what is synced to each ipod and have it remember that for future synching and just look for new songs and not sync all the other music in the library

    Click here for options.
    (58961)

  • GO-ITEM  - WHEN-BUTTON-PRESSED - SQLAP-10048 - You have not selected a record.

    Hi,
    I need to use go-item -> execute-trigger(when-button-pressed) personalization in oracle EBS Payables module. However i face certain problem.
    When i do 'go-item' to particular 'button', row selection disappear(its a multi row block). In the result i receive an error - 10048 - you have not selected a record.
    Manually you just click a button with row selected, and everything goes fine. There must be some kind of a context parameter which is passed from a block/record/row to a button. However how to achieve this through personalization?
    Many thanks for every help.
    Best regards,
    Martin

    write a procedure in forms that disables all your items in that record and call this on When-New-Record-Instance and When-Button-Pressed.
    PROCEDURE disable_item IS
    BEGIN
    IF :<block>.indicator = 'X'
    THEN
    SET_ITEM_INSTANCE_PROPERTY('<block>.<item>, CURRENT_RECORD, INSERT_ALLOWED, PROPERTY_FALSE);
    SET_ITEM_INSTANCE_PROPERTY('<block>.<item>, CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
    .. (repeate this t2o Statemnts for every item,
    more elegantliy you may write a loop using built-in NEXT_ITEM to get all items and set insert and update off) ...
    END IF;
    END;
    On When-Button-Pressed set the value of :block.indicator to 'X' before calling the disable_item procedure.
    Attemtion: This solution assumes that the button is part of your MR block (cited bove as <block>).
    ... and code is just written down, not tested.

  • FOR ALL ENTRIES stmnt. in SELECT query is not running properly

    Hello experts,
              In my report program, I write one query on table BSIS.
             Internal table declaration -             
           DATA : BEGIN OF DLC_BSIS OCCURS 0,
                            BUKRS LIKE BSIS-BUKRS,
                            GJAHR LIKE BSIS-GJAHR,
                            BELNR LIKE BSIS-BELNR,  
                            SHKZG LIKE BSIS-SHKZG,
                            BSCHL LIKE BSIS-BSCHL,
                            AUFNR LIKE BSIS-AUFNR,
                            HKONT LIKE BSIS-HKONT,
                            QSSKZ LIKE BSIS-QSSKZ,
                            DMBTR LIKE BSIS-DMBTR,
                       END OF DLC_BSIS.                                                                               
    Query as follows --
             SELECT BUKRS
                           GJAHR
                           BELNR
                           AHKZG
                           BSCHL
                           AUFNR
                           HKONT
                           QSSKZ
                            DMBTR FROM BSIS
                                      INTO TABLE DLC_BSIS
                                     FOR ALL ENTRIES IN IT_BKPF2
                                     WHERE BELNR = IT_BKPF2-BELNR
                                                  AND BUKRS = IT_BKPF2-BUKRS
                                                  AND GJAHR = IT_BKPF2-GJAHR.
    IT_BKPF2 internal table having -- BUKRS - LT01
                                                         BELNR - 6400000061
                                                         GJAHR - 2009.
    And in BSIS database  table  -- 3 entries are there for the above documnet.
    But, in my internal only one entry has come for the same above document.
    I think For all entries stmnt. is not running properly. But Why it's not running properly.??
    What would be the reason..??
    Thanks in advance....!!
    Regards,
    Poonam.

    >
    Poonam Patil wrote:
    > Hello experts,
    >           In my report program, I write one query on table BSIS.
    >
    >          Internal table declaration -             
    >                                            
    >        DATA : BEGIN OF DLC_BSIS OCCURS 0,
    >                         BUKRS LIKE BSIS-BUKRS,
    >                         GJAHR LIKE BSIS-GJAHR,
    >                         BELNR LIKE BSIS-BELNR,  
    >                         SHKZG LIKE BSIS-SHKZG,
    >                         BSCHL LIKE BSIS-BSCHL,
    >                         AUFNR LIKE BSIS-AUFNR,
    >                         HKONT LIKE BSIS-HKONT,
    >                         QSSKZ LIKE BSIS-QSSKZ,
    >                         DMBTR LIKE BSIS-DMBTR,
    >                    END OF DLC_BSIS.                                                                               
    >                           
    >          Query as follows --
    >
    >          SELECT BUKRS
    >                        GJAHR
    >                        BELNR
    >                        AHKZG
    >                        BSCHL
    >                        AUFNR
    >                        HKONT
    >                        QSSKZ
    >                         DMBTR FROM BSIS
    >                                   INTO TABLE DLC_BSIS
    >                                  FOR ALL ENTRIES IN IT_BKPF2
    >                                  WHERE BELNR = IT_BKPF2-BELNR
    >                                               AND BUKRS = IT_BKPF2-BUKRS
    >                                               AND GJAHR = IT_BKPF2-GJAHR.
    >
    > IT_BKPF2 internal table having -- BUKRS - LT01
    >                                                      BELNR - 6400000061
    >                                                      GJAHR - 2009.
    >
    > And in BSIS database  table  -- 3 entries are there for the above documnet.
    >
    > But, in my internal only one entry has come for the same above document.
    >
    > I think For all entries stmnt. is not running properly. But Why it's not running properly.??
    > What would be the reason..??
    >
    >
    > Thanks in advance....!!
    >
    > Regards,
    > Poonam.
    include the buzei field in selection criteria i have faced the same situation earlier.
    always select all the key fields.
    varun

  • The select with for all entries is not working correctly

    IF NOT i_ekko_ekpo[] IS INITIAL.
        SELECT ebeln
               ebelp
               zekkn
               vgabe
               bewtp
               menge
               bpmng
               shkzg
               INTO TABLE i_ekbe
               FROM ekbe
               FOR ALL ENTRIES IN i_ekko_ekpo
               WHERE ebeln EQ i_ekko_ekpo-ebeln.
                AND ebelp EQ i_ekko_ekpo-ebelp.
        IF sy-subrc EQ 0.
          SORT i_ekbe.
        ENDIF.
      ENDIF.
    I have a PO with 2 line items in i_ekko_ekpo. In EKBE, I have 49 recs for this PO and this select is returning only 13 recs.
    I tried by commenting EBELP and still the same result.
    Thanks
    Kiran
    Edited by: kiran dasari on May 22, 2009 9:56 PM

    Hi Sudhi, I added these now but still no charm
        SELECT ebeln
               ebelp
               zekkn
               vgabe
               bewtp
               menge
               bpmng
               shkzg
               INTO TABLE i_ekbe
               FROM ekbe
               FOR ALL ENTRIES IN i_ekko_ekpo
               WHERE ebeln EQ i_ekko_ekpo-ebeln
                 AND ebelp EQ i_ekko_ekpo-ebelp
                 AND zekkn GE '00'
                 AND vgabe IN ('1','2').
    And as per your note: in the 13 entries, am having duplicate also. This is something weird for me now.
    Any more clues.
    Thanks
    Kiran

  • Text Entry Box not showing all text

    I am creating a simple exercise where I would like the user to copy text from the course, paste it into word, and report back what the word count is.  I thought perhaps the Text Entry Box would be the best way to go, since if you click on the existing (default) text, you can copy it.  However after I place the paragraph of text in the box, and resize in the editor so that all the text shows, it does not show all the text when playing back, either previewd or published.  It only shows the last few words of the last line at the top of the box.
    Is there something I am missing?  Or, is there an easier/better way to do what I need?
    Thanks

    Hi all
    If this is Captivate 4, there may not be any need for a widget to do this. I'm guessing you haven't tried enabling the Scroll Bar for the Text Entry Box (TEB)?
    When I just plop a TEB on a slide, I get this in edit view:
    During playback it looks like this:
    But if I edit the TEB properties and enable the Show Scrollbar option:
    I get this in the output:
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How can i submit all entries of a select ?

    i have used "request.getParameterValues("selectNamer")",but it just returns the selected entry.
    can anybody help me?
    thanks in advance.

    Nope. Thats the way select boxes work. They only submit the selected entry.
    I presume you are using javascript to add/remove items to the select box at the client end?
    The workaround has to be in javascript as well
    1 - use hidden field(s) to submit all the values in the select box (run javascript to populate it)
    2 - use javascript to select all items in the select box when you submit the form.
    Cheers,
    evnafets

  • Select all do not select all

    I am using Acrobat 9 to change pdf font in which there are about 300 pages.
    First I select all pages from file but never work.
    How to use "select all" and change existing fonts?

    You can select entire content thru Edit > Select All, but you can not change existing font at one go. If you have created this pdf from Word, go back to Word and change the font there itself.

  • Can Garageband NOT select all regions on a track when I select the track???

    I'm recording audio on 2 tracks. When I switch from one track to the other, it doesn't look like anything's selected because all the other regions are off the screen to the right. If I record a quick region and then delete it, EVERYTHING ON THAT TRACK GETS DELETED because it's automatically selected.
    So ... where is the setting in Garageband that lets you select a track without selecting all the regions on it?

    When you select a track, it automatically selects all of the regions in the track, which I think is silly.
    Only, you cannot avoid it. It is built in. So deselect the regions afterwards by clicking some empty space in the track.
    Write feedback to Apple with a feature request, that you want it changed:
    http://www.apple.com/feedback/garageband.html

  • Turned off ALL startup programs with "select all" - Windows 8

    I was trying to increase available memory and decrease the start up time on my Window 8 run Ideapad,  by selecting "all" and "remove from startup". Now almost nothing comes up at start up (should I be surprised?!?!).  I can log in, but do not have any other options on the screen to choose from (e.g., no menu bar, cntrl/alt/delete does not bring up a management panel). 
    Any suggestions for this foolish Win 8 newbie would be most appreciated. 
    Steve

    ...some more info on this situation. 
    The system boots relatively quickly to the "Welcome Screen" and after signing in it takes another 3 minutes for me to have a useable system - although that is not completely accurate.  In the course of the 3 minute wait, I am able to start the Task Manager; and by use of the Lenovo "black button" I can get into the Control Panel.  So it seems a large part of the wait time is spent being on hold until Windows Explorer is clear to start.  
    If I disable all non-Microsoft services via "msconfig", I get a very quick (at least, relatively) startup; however, I am unable to identify which of the non-MS services is giving me grief (or which ones, if there are more than one).  Likewise, a boot in "Safe mode" also provides a fast start up. 
    Hopefully, some bright soul(s) - from Lenovo or MS or ??? - will come up with a solution to this predicament; altho', at this point, maybe not in time for Christmas!
    Season Best

  • Play All Script does not Play All !!

    i need to be able to add a Play All button to the various menu pages on my project.
    I tried using the sample scripts in the manual, and aside from changing the movie file names, it was letter and space perfect. Yet when i tried testing it using the Simulator the first movie played through but then instead of jumping to the next movie it just went back to the menu.
    Is there a problem with the script in the manual, or perhaps simulator does not simulate this particular function? ideas how i should tackle this?
    thanks
    adam

    If you have muliple tracks in DVDSP, I usually use stories to handle play all behaviors. This allows you to let each track end jump back to the menu, but specify a different and jump for the stories, to go from one story to the next track's play all story.
    If you are using scripts, you need to set the end jumps to the scripts. I find using scripts as pre-commands on a track doesn't always work, particularly if you press the "next" button on the remote. So the flow would go something like this:
    menu: jump to script "play all, which sets your "play all" gprm to 1
    script jumps to track, which jumps to script "after track so-and-so" which says if play all=1, then play next track, otherwise, return to menu.
    each track needs to jump to a new script which tells it what to do by checking for the play all gprm

  • Slice and 'saving for web and devices' not saving all images in selected area

    Ive designed my site in illustrator and now im using slices and save for web and devices.
    When I save a slice as a jpeg or gif it saves the text and but not the background image behind it. I haven't locked the background image and all the content is on the same layer in illustrator so why is it doing this and how can I stop it?
    Thanks
    James

    Thanks for your reply.  Yes, my Photoshop CS5 is updated to 12.1.  I'm running OSX 10.5.8 and have tried viewing in Safari, Firefox, and Chrome with no improved success.
    I have been reading these forums for about 3 hours trying to find the answer to this question but am still at a loss.  I have found one article here: 
    http://stackoverflow.com/questions/7974006/overlapping-image-in-photoshop-splice-how-to-fl oat-with-css
    which explains using an "absolute" value in CSS to lock images in place.  I'm currently working in Dreamweaver to see if it's a common error in Photoshop when resizing browser but is easily fixed on the CSS side.
    Any help would be appreciated
    Thanks!

Maybe you are looking for

  • Error - No GL account selected for Asset account in Business partner master

    Hi Experts, Scenario - While adding A/P Invoice for Asset item, the error "Error - No GL account selected for Asset account in Business partner master Message (3518-13) Awaiting your replies Regards, Sid

  • Menu inactive over MP4 video on iphone, ipad.

    Hello, Has anyone got an idea as to why my dropdown menu doesn't work, when it drops down over a MP4 video file on iPhone and iPad? Works fine in a regular Mac/PC browser... Thanks.

  • Foreign trade error Urgent!!!

    I have a Canceled Invoice that we are trying to post to accounting but it's not posting to accounting it's giving this error msg...... _Foreign trade data incomplete?_ i cannot make the changes in the...mode of transport and Domestic mode transport s

  • G3 will not recognize Keyboard C key on boot

    I have 1999 G3 with 128M Ram running OS9X. I wanted to upgrade to OSX 2.4 and reformatted 12G drive to 2 partions, 8G and 4G. I did not read install notes and started install OSX on 8G partion and went away for a while. When I returned, had just gray

  • Reader XI won't open pdf

    I upgraded to Reader 11.0.2 and it wouldn't open any pdf's. I tried the troubleshooting steps, none of which worked and then tried to uninstall and re-install. Now I can't re-install any version of Reader. Any help much appreciated.