Records are not showing

what is wrong with this code? it is not showing my 7 records.
the output is this [LINK|http://i338.photobucket.com/albums/n440/googleb0y/album1/output01.jpg]
when i use the debugger, intenal table is empty. [LINK|http://i338.photobucket.com/albums/n440/googleb0y/album1/debug01.jpg]
where did i go wrong? thanks for the help.
data: begin of WA,
        MYUID       type ZADDRESSBOOK-USERID,
        MYFNAME     type ZADDRESSBOOK-FNAME,
        MYLNAME     type ZADDRESSBOOK-LNAME,
      end of WA.
data: ITAB like table of WA.
select USERID FNAME LNAME
      from ZADDRESSBOOK
      into corresponding fields of table ITAB.
write: / SY-DBCNT, 'records found'.
if sy-subrc eq 0.
    loop at ITAB into WA.
      write: / WA-MYUID, WA-MYFNAME, WA-MYLNAME.
    endloop.
endif.

Ur problem is with the select statement...
data: begin of WA,
        MYUID       type ZADDRESSBOOK-USERID,
        MYFNAME     type ZADDRESSBOOK-FNAME,
        MYLNAME     type ZADDRESSBOOK-LNAME,
      end of WA.
data: ITAB like table of WA.
select USERID FNAME LNAME
      from ZADDRESSBOOK
      into corresponding fields of table ITAB.
write: / SY-DBCNT, 'records found'.
if sy-subrc eq 0.
    loop at ITAB into WA.
      write: / WA-MYUID, WA-MYFNAME, WA-MYLNAME.
    endloop.
endif.
When u use corresponding fields of  addition SAP searches for same field names in table itab but u declare ur table with diff. field names..thats why these records are not entered into the table..as same field names are not found in the table...so to avoid it pl. try.this code:
data: begin of WA,
        MYUID          type ZADDRESSBOOK-USERID,
        MYFNAME     type ZADDRESSBOOK-FNAME,
        MYLNAME     type ZADDRESSBOOK-LNAME,
      end of WA.
data: ITAB like table of WA.
select USERID FNAME LNAME
      from ZADDRESSBOOK
      into table ITAB.
write: / SY-DBCNT, 'records found'.
if sy-subrc eq 0.
    loop at ITAB into WA.
      write: / WA-MYUID, WA-MYFNAME, WA-MYLNAME.
    endloop.
endif.
Regards,
Joy.

Similar Messages

  • Condition records are not showing in Invoice

    Hi Experts,
    My List price for XXXX material is amount $$$$$. Condition records having required validity.
    But the values are not showing in invoice though the pricing analysis shows green for this condition type.
    Condition values shown perfectly in preceeding documents.
    Analysis message says " Condition record exists but has not been set "
    Can you please suggest me, why this condition values are not shown in net value and suggest me the fis.
    Thank you in advance.
    Edited by: Ganesh B on Feb 4, 2010 4:45 AM

    Hi,
    Goto the T. Code "VF03".
    Enter your billing document number.Enter.Check what is the pricing procedure determined here.Goto the T.Code "V/08".Check whether that condition type present in that procedure.
    If so check the validity of the condition records.Ensure it falls under your billing document date.Also ensure that it is not marked for deletion.For this goto the last column in the condition record screen "VK12 T.Code".Ensure that this check box is not ticked.
    And you are telling that you are able get this one in previous documents.
    Goto the T.Code "VTFA(if your scenario is order related billing)" else goto the T.Code "VTFL(If your scenario is delivery-related billing)".
    Select your valid combination.Double click on item.Select your item category.Details.
    Make the Pricing type as "D" and pricing source as "blank".
    Regards,
    Krishna.

  • Parameter values are not showing in in the Organization Parameter form

    We have done a setup for an Inventory Organization.
    Everything was working fine.
    Values were showing everywhere.
    We have lot of transactions done in the org also.
    But suddenly yesterday when I was trying to open the Organization Parameter form for that specific organization, the form came up as blank and in the bottom the error is Query caused no records.
    I have checked data is there in the base table mtl_parameters.
    Value is coming for other organizations. Only one specific organization is having this issue.
    Even in Examine, I have taken the last query run on that form and ran the same in back end database, I can see all values are there in the database.
    But in frontend screen the values are not showing. even organization code also not showing.
    Navigation is: Inv Super user --> Setup --> Organization --> Parameter

    Have you checked Organization Access to ensure that no one restricted that org?
    Or shipping grants and roles?
    I think there are quite a few places that you can restrict access.

  • Update Record Does Not Show in Server Behaviors Pane

    I am using Dreamweaver CS4 on a Windows 7 machine. I am coding in ASP VBScript. When I apply an Update Record behavior to a form and upload the file to the server, it works fine. However, the Update Record does not show in the Server Behaviors pane. Therefore, I cannot click on it to make further edits to it. When I open this same file in Dreamweaver CS3 on a Windows XP machine, I do see the Update Record behavior in the Server Behaviors pane and I can click on it to make it edits. What do I need to do to get the Update Record behavior to show?

    Probably not the answer you are looking for, but support for traditional ASP has not been a focus of DW development, nor has it been for Windows 7 for
    that matter. ASP is a "depreciated" language and support for it is dwindling. The I don't know exact reason for what is happening to you here, but I'd imagine it's an issue with CS4s translators and the combination of the feature sets in both Win 7 and CS4 not "worrying" about ASP as much as they used to.
    Lawrence Cramer  *Adobe Community Professional*
    www.Cartweaver.com
    Complete Shopping   Cart Application for
    Dreamweaver, available in PHP and CF
    Stay updated - http://blog.cartweaver.com

  • Who, last, uptime are not showing supposed data in Solaris 9

    Hello All,
    I see below comands are not showing data on my Solaris 9 box.
    Any clue ?
    who -b <<<< returns with no output
    last | grep reboot <<<< returns with no output
    uptime <<<< does not show since when is up
    Please advise.
    Thank you
    Regards,
    ~Anoop

    Hi.
    1)
    Use command last . It will show when file */var/adm/wtmpx* was reset.
    Generaly, Solaris never clear this file. That can cause grow this file.
    Check cron may be somebody add commands for reset this file.
    2) wtmpx - it's binary file. Some times it corrupted and last not show new records.
    But it's not look like current state.
    Regards.

  • I've just found that three movies I've bought from iTunes on on my iPad are not showing up on Apple TV or anywhere other than that iPad.  What's up with that and will I lose these films if I reset this iPad?

    I've just found that three movies I've bought from iTunes on on my iPad are not showing up on Apple TV or anywhere other than that iPad.  What's up with that and will I lose these films if I reset this iPad?

    Thanks.  The reason this has become an issue is that I recently bought a new Macbook Air that the iPad is not synced to.  The one is was synced to was stolen.  If I want to sync this iPad to the new Air, won't it be wiped before I'm able to copy these films or am I wrong about that?

  • After migrating data from Time Machine, some of my photos are not showing up in iPhoto. I get a 'dashed rectangle." When I click on it I get ' ! in a Triangle" When I click on that, I actually can see the photo. I want to see my photos

    After migrating data from Time Machine, some of my photos are not showing up in iPhoto LIbrary view. I get a 'dashed rectangle." When I click on it I get ' ! in a Triangle" When I click on that, I actually can see the photo. I want to see all  my photos in 'Library' view, and I can't figure out how these photos seem to be arbitrarily hidden. Help, please.

    Try these for the first attempt:
    First be sure to have a backup copy of the library if you already don't have one.
    OT

  • Delta records are not loading from DSO to info cube

    My query is about delta loading from DSO to info cube. (Filter used in selection)
    Delta records are not loading from DSO to Info cube. I have tried all options available in DTP but no luck.
    Selected "Change log" and "Get one request only" and run the DTP, but 0 records got updated in info cube
    Selected "Change log" and "Get all new data request by request", but again 0 records got updated
    Selected "Change log" and "Only get the delta once", in that case all delta records loaded to info cube as it was in DSO and  gave error message "Lock Table Overflow" .
    When I run full load using same filter, data is loading from DSO to info cube.
    Can anyone please help me on this to get delta records from DSO to info cube?
    Thanks,
    Shamma

    Data is loading in case of full load with the same filter, so I don't think filter is an issue.
    When I follow below sequence, I get lock table overflow error;
    1. Full load with active table with or without archive
    2. Then with the same setting if I run init, the final status remains yellow and when I change the status to green manually, it gives lock table overflow error.
    When I chnage the settings of DTP to init run;
    1. Select change log and get only one request, and run the init, It is successfully completed with green status
    2. But when I run the same DTP for delta records, it does not load any data.
    Please help me to resolve this issue.

  • I am trying to transfer my movies (mp4 files) to my IPad, but they are not showing up on the IPad. I have 13 movies showing on my IPad that they are in ICloud. I've sync'd the movies I want to the IPad, but only one is showing under the "movies" folder. ?

    I have been trying to transfer some different movies from my PC to my IPad, but they are not showing in the "movie" folder. I have sync'd the movies (these are mp4 files) that I wanted transfered, but only one is showing in the folder. There are 13 other movies in the folder that have the ICloud symbol in the corner of their picture. I understand that I can pull those movies from ICloud any time I want to watch them, but I want to watch the ones that I've just sync'd with my IPad. How do I find them? After I checked the movies I wanted, I "applied" them and watched it sync and copy the wanted movies to my IPad. Now what?  Thanks.

    There are some good programs that you could use to convert the format, Handbrake or Mpegstreamclip are two good free ones. Convert them to MP4 and then try importing them again.

  • I purchased a bunch of songs on my iPhone but they are not showing up on it my computer.

    I purchased a bunch of songs recently on my iPhone but they are not showing up in iTunes on my computer.  They have always shown up in the past but these few haven't. I usually do a manual upload and backup of my phone, as opposed to doing it via icloud.
    In the meantime, I went to the purchases for my account and see that they are listed there and I hit "report a problem".  But it doesn't even ask me what the problem is....
    Is there anything else I can do?

    Go to View->Account and verify you're logged into the same AppleID as the iPhone
    Then go to iTunes->Preferences->Store and verify that "Show iTunes in the Cloud purchases" is checked.

  • HT201272 I downloaded sveral ringtones and they are not showing up in my purchased items.   I had to wipe out my phone so they are not on there anymore.  Please, any advice would be appreciated!

    I recently had to wipe out my phone and lost everything!  I have been able to recover all apps, pics, songs.  Lost alot of my contacts due to me not backing up my info to icloud more often.  (my mistake)  However, I cant find any of my purchased ringtones.  They are not showing up in my purchase history on itunes either.  I do have the receipts for all of them tho.
    Any advice or info would be greatly appreciated!

    Ringtones are currently a one-time only download, they won't appear under the Purchased tab nor in the cloud. Have you got copies of them in the Tones section of your computer's iTunes library or in the backup of your downloads that you can use to re-sync them to your phone ? If not, and they are still in the store, then you can try contacting iTunes support and see if they will grant you a re-download : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then try selecting Purchases, Billing & Redemption

  • My smart playlists are not showing up on my iPhone after turning on Music Match

    I have turned on Music Match (iOS 5 GM and iTunes 10.5 r 9) and can see all the songs in my library now across the cloud. The iPhone also has copied over most (but strangely not all) of my regular playlists and my folder structure.
    But all the Smart Playlists I created for my iPhone are not showing up so my music is not grouped the way I want it to be.
    For example, I have a playlist that selects out all the songs with three stars or more that have not been played in the last 2 weeks (so I only hear songs I like, but have not heard lately).
    So what's up??

    Isn't iTunes 10.5 r 9 a beta release for developers?  If that's the case then isn't there a special web site for developers to discuss issues (and they are not supposed to discuss them on the public forum)?  If you're not a developer and have this through unofficial channels then I'm not sure you can expect full functionality.

  • HT201077 After updating my iPhone4s to the lastest update my photostream stopped updated onto my comuter.  From my phone it looks like pictures have been moved into the photostream folder... but they are not showing up on my computer.  Help!

    After updating my iPhone4s to the lastest update my photostream stopped updated onto my comuter.  From my phone it looks like pictures have been moved into the photostream folder... but they are not showing up on my computer.  Help!
    I have signed out then back into the cloud.  I have comfirmed location of the photostream folder.  I have have even restored settings on my phone.  any ideas on what I can do to get it working again?  or do I have to accept defect, and manually save my photos?

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • HT203164 I have purchased several books on tape via my computer and now want to sync them to my ipod....I can't find the appropriate buttons to do that.  Also though I have receipts for books purchased they are not showing up on my Itune purchased list. 

    I have purcase several audio books via Itunes and they are on my computer however I have been unable to figure out how to transfer (sync??) them to my Ipod.  Also I have receipts for several Itune audio books but they are not showing up on my purchased list. Help!!!

    lizdance40, audio books are NOT available for redownload. Books with words areavailable for redownload.
    See:
    http://www.tuaw.com/2013/04/03/audiobooks-are-not-backed-up-by-icloud-can-only-b e-downloaded-o/
    In the future please do not post incorrect information
    lizdance40 wrote:
    If iTunes still carries the books, they ARE available to download from the cloud, either to the computer or your iPod Touch directly.
    Open iBooks on the device and tap on 'purchased'. 
    download.
    iTunes does not garentee to carry a book forever, a serious flaw.  If you can't find the book in iTunes anymore and didn't keep it on the computer, or backed up, it may be gone.
    To add audio books to the iPod;
    you have to check the box at the bottom section of the Books screen that says, "sync audio books"

  • I have installed Itunes 10.5 on my PC and I have turned photostream on on my Ipad2 and Iphone.  The photos sync fine but they are not showing up on my PC.   What's the problem?

    I have installed Itunes 10.5 on my PC and I have turned photostream on on my Ipad2 and Iphone.  The photos sync fine but they are not showing up on my PC.   What's the problem?  I can see my photos on my ipad and Iphone.   I want to be able to see them on my PC when I take pictures from my Iphone and Ipad.  How do I see Photostream on my PC?

    You have to install the iCloud control panel for windows, then sign in with you apple ID, and check what you want to sync.
    link: http://support.apple.com/kb/DL1455

Maybe you are looking for