How to remove records in itab where its HKONT does not end in '0'...

Hello Experts,
I am getting records from BSIS and BSAS and I want to remove those records with
their HKONT(GL account) does not end in '0'(zero). I do now want to do it via a loop.
I tried using DELETE FROM ITAB statement but it seems it does not work.
Here is what I did:
IF NOT gt_bsis_bsas[] IS INITIAL.
   DELETE gt_bsis_bsas WHERE hkont+10(0) <> '0'.
ENDIF.
Hope you can help me guys. Thank you and take care!

Hi Viray,
'+' is a wildcard char which is used to represent one char
where as '*' represents any number of char's.
In this case  +++++++++0
<b>means that the length of the field is 10 chars and first 9 can be anything</b>
he didn't use '*0' since it could mean that the length of the data entered can be anything .
Hope this clarifies
Regards
Nishant

Similar Messages

  • Delete records in itab1 where key fields does not exit in itab2 w/o Loop

    Hi,
    I am trying to find the most efficient way to compare two internal tables and filter out (delete) the entries in Internal Table 1 (ITAB1) where the key fields does not exist in internal table 2 (ITAB2).
    Here is the codes using the Loop.
    Loop at itab1.
      read table itab2 where field1 = itab1-field1 and field2 = itab1-field2.
      if sy-subrc ne 0.
       delete itab1 where field1 = itab1-field1 and field2 = itab-field2.
      endif.
    endloop.
    Instead of looping thru each record of ITAB1, is there a way to use the "DELETE" or other efficient way? This is in ECC 6.0.
    Thanks for any advice in advance.

    Not sure if its possible without using even a single loop. Though you can avoid the read statement this way
    loop at itab2.
    delete itab1 where field1 NE itab2-field1 and field2 NE  itab2-field2.
    endloop.

  • How do you change the lock button so it does not end a call?

    My new phone cover doesn't allow my phone screen to go black when on a phone call. When the cover is off it works fine. Is there any way to change the lock button to not end a phone call?

    No.... you need a different cover

  • When I see the usage on my iPod touch 4 they have categories for how much space is being used where. What does the "other" category contain? Like what could I delete on my iPod to get rid of the "other" category?

    when I see the usage on my iPod touch 4 they have categories for how much space is being used where. What does the "other" category contain? Like what could I delete on my iPod to get rid of the "other" category?

    What is the Other on my iPhone and How to Remove It
    An "other" larger than about 1 1/2 GB usually indicates that the "other" includes corrupted files.
    First try:
    "First you go settings/general/usage/music/then left swipe over music and press delete and you would think it deletes your music but it doesn't instead it deletes your other but make sure your ipod is connected to a computer while doing this"
    as recommended by:
    How do I get rid of "other" storage: Apple Support Communities
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

  • How to remove 1797 emails. stuck in inbox.  but not showing anymore - and i have the same problem wit the sent.  please help

    how to remove 1797 emails. stuck in inbox.  but not showing anymore - and i have the same problem wit the sent.  please help

    This is a user supported frum, so making threats really doesn't help, besides which it's not like any of us can really make a dent in Toshiba's bottom line despite how many people we think we can influence. Unless those people were standing in line to buy a Toshiba product cash in hand, and you pulled them out, it really doesn't add up for them.
    At this point it would probably be better for you to use the 800 number. Have all your e-mails ready to forward, if needed, to whoever you end up talking to. Don;t let them off the hook. An hour on the phone is much better than weeks passing e-mails through a support site. Also contest the charge with your bank or credit card.

  • How to determine the source to where my saved photo (not taken by my iPhone camera) on whether what application or website did i got that photo? need to go to the source again, please help

    how to determine the source to where my saved photo (not taken by my iPhone camera) on whether what application or website did i got that photo? need to go to the source again, please help

    There is no way to trace the source of a saved photo.
    You might have some luck if you search through the Safari web site history available via the Bookmark icon.

  • I have paid for the Mountain Lion. But for some reason, I cannot seem to download it, despite software being upgraded. Anyone facing this problem where the download does not begin? How can I solve this?

    I have paid for the Mountain Lion. But for some reason, I cannot seem to download it, despite software being upgraded. Anyone facing this problem where the download does not begin? How can I solve this?

    Make sure your Mac qualifies to run Mountain Lion >  Apple - Upgrade your Mac to OS X Mountain Lion.
    Try disabling anti virus software and turn off the Firewall in System Preferencs > Security & Privacy
    Apps such as Little Snitch and Net Nanny can prevent apps from downloading from the App store including Mountain Lion.
    Third party download managers are not compatible with the App Store.
    Keep in mind, for downloading Mountain Lion from the App Store, a high speed (broadband) internet connection is strongly recommended by Apple as noted here > iTUNES STORE - MAC APP STORE - TERMS AND CONDITIONS
    If you need to reinstall OS X or repair the the startup disk using Mountain Lion Recovery, that requires broadband access to the internet via Wi-Fi or an Ethernet connection. OS X is downloaded over the internet form Apple when OS X Recovery is used for reinstallation.

  • How can i disable the 'top sites' cleaning history does not remove this and it is confusing and a risk to privacy

    How can i disable the 'top sites' cleaning history does not remove this and it is confusing and a risk to privacy.
    It also serves no purpose as sites i want to keep are bookmarked
    Is there an alternatively an addon for this

    Hi there - nope, this doesnt work either. the options available when I tap and hol are only OPEN IN NEW TAB, SHARE, ADD TO HOME SCREEN
    wayne

  • Execution does not end even after all records updated..

    Hi,
    I have plsql code like :
    declare
    begin
    for x in ( select .......) loop -- about 4000 times
    for y in ( select ............) loop -- about 50 times
    end loop;
    -- some code goes here to manipulate clob data
    -- like creating free temp clobs - use - then free them
    -- Update statement that update some table using clob values.
    insert into tablex values(sysdate);
    commit;
    end loop;
    end;
    Here I can monitor from other window howmany records are inserted into tablex and howmany updated in update statement by...
    select count(1) from tablex;
    After 50 mins i can see that all records are updated but...
    plsql code does not end its execution it continues even after all records are updated..untill i have to kill the session or let be run for long time.. :(
    I can not understand why this it is not ending execution..
    What could be the problem ...

    Hi,
    Here it is.....
    declare
    v_text_data TableA.text_data%type;
    v_clob clob;
    type dummyclob_t is table of clob index by binary_integer;
    dummyclob dummyclob_t;
    v_str varchar2(255) := 'ddfsajfdkeiueimnrmrrttrtr;trtkltwjkltjiu4i5u43iou43i5u4io54urnmlqwmreqwnrewmnrewmreqwnm,rewqnrewqrewqljlkj';
    begin
    select data bulk collect into dummyclob from sfdl_clob; -- five rows containing clob data upto 1MB
    for x in (select object_id
    from TableA
    where object_type = 'STDTEXT' ) loop
    dbms_lob.createtemporary(v_text_data,TRUE);
    for y in (select '<IMG "MFI_7579(@CONTROL=' || ref_id || ',REF_ID=' || ref_id || ').@UDV">' temp_data
    from TableB
    where object_id = x.object_id) loop
    v_text_data := v_text_data ||
    case
    when trunc(dbms_random.value(0,7)) = 0
    then chr(10)
    else v_str
    end ||
    y.temp_data;
    end loop;
    select text_data into v_clob from TableA where object_id = x.object_id for update;
    if v_text_data is not null then
    dbms_lob.append(v_clob,v_text_data);
    end if;
    dbms_lob.append(v_clob,dummyclob(trunc(dbms_random.value(1, 6))));
    dbms_lob.freetemporary(v_text_data);
    insert into xyz values (sysdate);
    commit;
    end loop;
    end;
    Thanks for your time..:)
    Rushang.

  • I've moved my Aperture library to another computer, and masters are referencing an old path name.  How can I update these references?  Reloctating masters does not work in this case :(

    I've moved my Aperture library from one computer to another using Finder.
    I merged the library with one which was already on the computer.
    Now, the photos I imported have reference to the old path name on my old computer.
    How can I update these references as "Relocate Masters" does not work in this case?

    Just one suggestion to be able to reconnect all at once:
    Create a smart album containing the images with missing masters:
    File -> New ->  Smart Album,     and add a rule: File Status is "Missing"     (or File Status is "offline")
    Then select the images in this album and go to the File menu:
    and select:   File -> Locate referenced File
    If you are lucky, Aperture will reconnect all at once, if you point the first image version to its counterpart.

  • HT201401 i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    hello, the addons manager is exactly the right place to look for it. please try disabling the addons that are listed there one-by-one (a restart of the browser might be necessary after each step). maybe one of them is bundling this kind of adware.
    [[Disable or remove Add-ons]]

  • How can I add location to a photo that does not have a gps location? On iPhoto it was easy.

    how can I add location to a photo that does not have a gps location? On iPhoto it was easy.

    You can use the Settings in the slideshow to Show Captions,  either the Description filed be display, the Title field or both.
    If you create the slideshow in iDVD from still photos from iPhoto you can add the Description and/or Title via the settings in iDVD.
    Since iDVD adds both automatically the user must go thru the slideshow and remove those items not wanted.

  • When I change a password, sometimes I get a pop-up asking if I want to save the new password - sometimes it doesn't appear. How can I save the new password if popup does not appear?

    When I change a password, sometimes I get a pop-up asking if I want to save the new password - sometimes it doesn't appear.
    How can I save the new password if popup does not appear?

    The website may be using autocomplete=off to prevent Firefox from saving the name and password.
    You can remove autocomplete=off with a bookmarklet to make Firefox save the name and password.
    *http://kb.mozillazine.org/User_name_and_password_not_remembered
    *Saved Password Editor: https://addons.mozilla.org/firefox/addon/saved-password-editor/

  • I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    Does the app now use iCloud, do you use iCloud and do the two of you use the same account on iCloud?
    Just a guess.

  • How to access my hard drive when the system does not work

    how to access my hard drive when the system does not work

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

Maybe you are looking for

  • Steps to build summarization tables for CO-PA

    Hello Experts, I recently deleted and re-created the COPA datasources to include some additional fields from the Operating Concern. However, I need to delete and re-create the COPA summarization tables as well to test my extractors. Can some of you p

  • How do I create duplicates in place

    I'd like to make a grayscale image with an octagon at the center and an identical rectangle radiating out from each flat side of the octagon.  Is there a simple way to do this in Illustrator CS4?  I made my octagon.  Then added a rectangle position a

  • How to play music in car from Iphone 5s

    How do I play music from 5s in my car ?  Do I need something to connect to the cigarette lighter as there is no USB.

  • Oracle 9i Application server installation problem(MSG:Fully qualified domain name)

    I have installed Oracle 9i database.Now downloaded application server 9iAs,when i am installing I have got this error message(J2ee and web cache) Message begin Installation has detected that a fully qualified hostname has not been specified for this

  • Re: Heat? -- Lawsuit..?

    I'm assuming everyone's heard of the person that sued McDonalds for having burnt themselves on the coffee.. and now theres warning on all of the cups syaing this is hot!! well I think my mac is about the same temp! It's around 30C during the day anyw