Deleting the Records that are in odd position

Hi,
   How to delete the records that are in the odd position.
This is my program. Plz correct me. Iam not able to delete the records.
REPORT  ZMTSHPRG19                              .
TYPES:
BEGIN OF TY_EMP,
EMPID(4) TYPE N,
ENAME(30) TYPE C,
DEPT(4) TYPE C,
SALARY TYPE I,
END OF TY_EMP.
DATA:
FS_EMP TYPE TY_EMP,
IT_EMP TYPE TABLE OF TY_EMP.
FS_EMP-EMPID = '1009'.
FS_EMP-ENAME = 'XX'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = 10000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = '1007'.
FS_EMP-ENAME = 'YY'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = '11000'.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1008.
FS_EMP-ENAME = 'ZZ'.
FS_EMP-DEPT = 'D200'.
FS_EMP-SALARY = 12000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1001.
FS_EMP-ENAME = 'XY'.
FS_EMP-DEPT = 'D200'.
FS_EMP-SALARY = 10000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1003.
FS_EMP-ENAME = 'XZ'.
FS_EMP-DEPT = 'D300'.
FS_EMP-SALARY = 8000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1002.
FS_EMP-ENAME = 'YX'.
FS_EMP-DEPT = 'D300'.
FS_EMP-SALARY = 9500.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1004.
FS_EMP-ENAME = 'YZ'.
FS_EMP-DEPT = 'D300'.
FS_EMP-SALARY = 9500.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1005.
FS_EMP-ENAME = 'AA'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = 10500.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1006.
FS_EMP-ENAME = 'BB'.
FS_EMP-DEPT = 'D200'.
FS_EMP-SALARY = 12000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1010.
FS_EMP-ENAME = 'CC'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = 15000.
APPEND FS_EMP TO IT_EMP.
LOOP AT IT_EMP INTO FS_EMP.
WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY.
ENDLOOP.
ULINE.
DATA:
LINE_COUNT TYPE I,
W_REM TYPE I.
W_REM = LINE_COUNT MOD 2.
DESCRIBE TABLE IT_EMP LINES LINE_COUNT.
SORT IT_EMP BY EMPID.
IF W_REM = 0.
LOOP AT IT_EMP INTO FS_EMP.
WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY..
ENDLOOP.
ENDIF.
Thanks.

TYPES:
BEGIN OF TY_EMP,
EMPID(4) TYPE N,
ENAME(30) TYPE C,
DEPT(4) TYPE C,
SALARY TYPE I,
END OF TY_EMP.
DATA:
FS_EMP TYPE TY_EMP,
IT_EMP TYPE TABLE OF TY_EMP.
FS_EMP-EMPID = '1009'.
FS_EMP-ENAME = 'XX'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = 10000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = '1007'.
FS_EMP-ENAME = 'YY'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = '11000'.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1008.
FS_EMP-ENAME = 'ZZ'.
FS_EMP-DEPT = 'D200'.
FS_EMP-SALARY = 12000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1001.
FS_EMP-ENAME = 'XY'.
FS_EMP-DEPT = 'D200'.
FS_EMP-SALARY = 10000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1003.
FS_EMP-ENAME = 'XZ'.
FS_EMP-DEPT = 'D300'.
FS_EMP-SALARY = 8000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1002.
FS_EMP-ENAME = 'YX'.
FS_EMP-DEPT = 'D300'.
FS_EMP-SALARY = 9500.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1004.
FS_EMP-ENAME = 'YZ'.
FS_EMP-DEPT = 'D300'.
FS_EMP-SALARY = 9500.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1005.
FS_EMP-ENAME = 'AA'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = 10500.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1006.
FS_EMP-ENAME = 'BB'.
FS_EMP-DEPT = 'D200'.
FS_EMP-SALARY = 12000.
APPEND FS_EMP TO IT_EMP.
FS_EMP-EMPID = 1010.
FS_EMP-ENAME = 'CC'.
FS_EMP-DEPT = 'D100'.
FS_EMP-SALARY = 15000.
APPEND FS_EMP TO IT_EMP.
LOOP AT IT_EMP INTO FS_EMP.
WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY.
ENDLOOP.
ULINE.
DATA:
LINE_COUNT TYPE I,
W_REM TYPE I,
n type i value 1.
DESCRIBE TABLE IT_EMP LINES LINE_COUNT.
SORT IT_EMP BY EMPID.
LOOP AT IT_EMP INTO FS_EMP.
w_rem = n mod 2 .
if w_rem = 0 .
WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY.
endif.
n = n + 1.
ENDLOOP.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 11, 2008 4:34 PM

Similar Messages

  • How do I copy photos from my Mac to my iPad without deleting the ones that are there?

    I understand how to sync photos from my iPhoto library to my iPad. I want to copy photos from my Mac to the iPad without syncing, because syncing deletes everything on the iPad that isn't included in my sync selections. In addition,I have several iPhoto libraries and want to copy photos from each of them to the iPad. A further issue is that apparently photos can be synced from only one computer to the iPad -- how would I copy photos from a different computer? (What happens when I buy a new Mac?) I am extremely experienced with Mac, iPhoto/Aperture, iPad, etc. A year or two ago I transferred 1000 photos to the iPad but I don't remember how, and it was probably done with my previous Mac. Now I just want to add some recent photos without deleting the ones that are there. Bottom line: is there a way to add photos to an iPad without syncing and losing what's there?

    You can still sync the photos and keep the photos that are already on the device. You have to include all of the albums or events in the pictures folder that you sync from. If you are using iPhoto, select that in the Sync Photos from drop down menu and then select all of the albums or events that you want to sync. Make sure to check Selected Albums, events, faces and automatically include (no events). Using that option will allow you to choose exactly which albums and events to sync.
    You have to remember that all photos must be included in every sync so you cannot sync photos from iPhoto today and then try to sync photos from another folder tomorrow, or you will erase all of the photos that were synced from iPhoto. You need to maintain one main Photos syncing folder for the photos that you want to transfer to the iPad. You can have subfolders within that one main folder and you can selectively sync those subfolders. You just have to place all of the photos that you want to sync into one main iPad syncing photos folder.
    There are WiFi transfer apps that allow you to transfer photos to the iPad without having to sync with iTunes. I use this one. This app (and others like it) will allow you to use multiple computers to transfer photos.
    Wireless Transfer App Easily send photos to iPhone/iPad ...

  • How do i delete apps on itunes ??? i went to the library and it only shows a few apps that i have.  But when i go into my account i can see all of the apps i have downloaded.  soooo how do i delete the apps that are only showing in my account?

    How do I delete an app on iTunes?  I can delete the apps that are shown in the library of iTunes by right clicking and hitting "delete".  But all of my apps aren't shown in the library (I don't understand that either).  I can see all downloaded apps in my account though. But I don't see how to delete them from there.

    If you plug in your iphone, click on it in iTunes, and go to the apps section, it should be checked to sync apps if you want them to show up in iTunes as well as your iPhone. Once synced they will show on both.
    Then if you click Apps under the Library header in the left panel of iTunes, you'll be able to permanently delete apps, removing them entirely from iTunes. Highlight an app's icon or a group of icons by holding down Shift and hit the delete key (or select Edit > Delete from the top menu or right-click on an icon and selecting delete).

  • How can I sync my iPod with my computer without deleting the songs that are on my ipod

    how can I sync my iPod with my computer without deleting the songs that are on my ipod

    See this post by forum regular Zevoneer on transferring files from the iPod to your computer.
    tt2

  • Need to process the records that are selected using checkbox in an ALV

    Hi ..
    I am displaying some data in an ALV using the Parent-child relation, the parent records has a check box which is input enabled.
    On click of a button on the toolbar, i need the checked records to be fetched and processed.
    Please help me on how to fetch the records that are checked..
    Thanks,
    Derek

    Hello Derek,
    Is ALV created using OOPS or using conventional FM?
    If you are making use of OOPS technique, then call this method:
    CALL METHOD <grid_name>->get_selected_rows.
    BR,
    Vishal.

  • IMessage is working? I have already tried deleting the conversations.That are causing it. Help me!

    Why isn't my IMessage working?Ive already tried deleting the conversations that are not working! It still doesn't work!

    Try:
    iOS: Troubleshooting Messages

  • How to create an XSD for file adaptor which will ignore the records that are not required.

    Hi All,
       I have a requirement, the Fixed Length file contains
    30013742387462382938742      82347023984623087   
    30037348237  983743  9837423098  98347 
    10108472398   98034702398409238 9838472398   09823409238
    300163527 387462398746 38746293874693746324763
    101037642873643 37438724683746837648 873648736
    200138743986493874398
    2002738469837246
    10003784629837469283746937463987469387
    I need to select only the records that startswith 3001 and 3003 which are of different types and ignore the remaining records like 1010,2001,2002,1000.
    Can any one help me on this.

    You can make use of "conditionValue" or "startsWith" attributes while designing you native XSD.
    Check this example - Native Format Builder Wizard - 11g Release 1 (11.1.1.6.3) for better understanding.

  • How to move movies onto my IPod/IPhone without deleting the movies that are currently on it.

    I had a bunch of movies at one point, and I was syncing them to my IPhone. My Mac crashed though and I lost all of my files. I backed up my computer, but the movies weren't included in the back-up. I have newer movies now and I can't seem to move them to my IPhone without deleting the ones currently on them. Please help, or if there is nothing I can do please tell me now so I can stop searching for an answer that's not there. Thanks.
    Also, I have an Apple IPhone 4, a Mac OS X 10.7.5, and ITunes

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • HT1725 i recently have downloaded a few new albums from iTunes.  However, now that i have listened to the albums, there are some "blank spots" on the recording that are interrupting the songs.... what can i do to "re-download" the album without paying aga

    I recently have downloaded a few new albums from iTunes.  However, after I have listened to them, I realize there are some "blank spots" in the recordings...  not sure why.  Can I "re-download" the album/music again with paying again?
    Thanks!

    The advice you provided me helped download songs from the album that failed to download the first time.  However, there are songs that I originally downloaded that have blank spots in the song...  How can I re-download songs that have already been downloaded so they are "clean" .. i.e. the play straight through without blank spots in them.  Can I do this without re-paying?
    Thank You

  • How can i delete all the emails that are downloaded on to my phone

    How can I delete the emails that are downloaded to my phone with out doing it one (or one page or so) at a time?

    You cant. Sorry

  • How to store records that are entered in the fields?

    Hi friends can any one help me how to store the records that are given as input.
    Say if Empid - 123456, this 123456 has to be stored in table it will be stored but can any one help me with procedure?
    Thanks

    Hi,
    If the records are from an input file, you will have to first create a structure for the Employee id ....
    then, read the input file data into the internal table you have defined in the earlier step...
    then, loop at the records one after the other and update the records directly into the table....( typically this is a direct update of data and will be done when you were dealing with the data relating to a "Z" table )
    please follow the procedure and let me know how it worked for you or if you are still having issues on this.
    Thanks,
    Vishnu.

  • Delete the records which have the Data values are NULL before load data to BPC model

    Hi Everyone,
    I am loading the data from flat file to BPC Model (10.0 Version).
    Source data (Flat file) looks like below:
    RP_Employee RPT_Currency Data
    Test                USD                   8
    Test1              USD
    Test2              USD                    6
    My user requirement is that to delete the records which have the Data values are NULL before load data to BPC model.
    So,Please let me know how can i meet to this requirement.
    I am thinking that,it is possible by using start routine BADi. If i am correct please let me know process like creation of class and BADi implementation.
    Thanks in advance!!

    Hi Nilanjan,
    Please see my source data below:
    Account      Client       Employee     Time                Data
    123              XYZ            Vishu            2014.01               300
    456                                                       2014.01
    789              ABC         Alexander      2014.02               200
    If you see the second record,
    If data value is ZULL,  then the Employee or another dimension is also NULL.
    So I want to delete second records.
    If it is Start routine please share the code and steps to do.
    Thanks in advance!!
    Regards,
    Viswanath

  • I understand that many versions of any pictures are still on my computer (Masters???).  If I have a final I like, how do I delete all the others that are taking up space?

    I understand that many versions of any pictures are still on my computer (Masters???).  If I have a final I like, how do I delete all the others that are taking up space?  I have already put the originals into albums, edited them, and renamed them.  Can I/should I delete all other versions located in Masters, I think?  If I want to keep events, but want them to include the newly edited albums, can I delete the specific event and somehow bring the photos used in the album into a new event.  Understand iPhoto just keeps space or manages photos, so how can I have events that include the edited pix and clean up disk space.  Thanks.
    iPhoto 11 v9.4.2
    using Lion, updated, on iMac Pro.

    It's very simple. If you want to use iPhoto, just let it manage things as it does. Other than that: Export from iPhoto and delete the image from iPhoto. That will remove the master and all versions.
    If space is an issue... use an external disk.
    Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Regards
    TD

  • How do i delete all the photos that are in that Photo app?   it is eating up all my memory

    how do i delete all the photos that are in that Photo app?   it is eating up all my memory

    Photos transferred from your computer are removed from the iPhone the same way they were transferred from your computer, via the iTunes sync process. To remove all such photos, deselect Sync Photos under the Photos tab for your iPhone sync preferences with iTunes followed by a sync.
    Photos in your iPhone's Camera Roll can be imported by your computer as with any other digital camera followed by deleting the photos from the Camera Roll after the import process is complete.

  • What are the boxes that are ticked in the delete recent history box on iMac

    what the boxes that are ticked in the delete recent history box

    Hello,
    Do you mean in Safari>Reset Safari... ?

Maybe you are looking for

  • Complex IDOC mapping problem

    Hello, I'm stuck with a complex mapping issue that I can't figure out.  I'm trying to pull 0..N Variant Configuration segments from the ORDERS IDOC and map it into a 0..N XML segment. The inbound ORDERS IDOC is structured like this: IDOC ...E1EDP01 

  • Cookies appearing even when set to "Never"

    Hi, Ever since the new Safari update, I constantly get cookies from Google, even though I have NEVER set in preferences under "accept cookies". This happens many times during the day, and I am constantly deleting it, but soon after it's there again.

  • Is it necessary to Stuffit or Zip files before sending to print service?

    Is it a good idea to compress a PDF before sending it by email or FTP?  I work on a Mac in CS3 and have not had any problems with file corruption, but have read that this is the safest way to send files. Can high resolution for print jobs still be pr

  • Find properties/methods of a class?

    The exercise im trying to do is find the SID of each group on a local machine. I want to do this without simply copying down a script.  I know i need the System.Security Class, but i cant figure out how to see the methods/classes/properties in this c

  • Routing rule clarification in receiver determination

    Hi guys, I have a routing condition which says I_ZBAPI_DL01/ZZCOMDEST = DN_XC and I_ZBAPI_DL01/ZZCOMDEST_II = DN_08 and I_ZBAPI_DL01/ZTIB_LFART ="ZRWO" and contains(I_ZBAPI_DL01/ZADI_SUBSCRIBER,"JRW") and T_ZBAPI_DL12/ZTIB_BSARK = "RBCO" In the above