DELETE tx_vbrk WHERE fkart NOT IN r_fkart.

Could you pls let me know what is the exact meaning for the below code.
    DELETE tx_vbrk WHERE fkart NOT IN r_fkart.
Akshtha.

Hi ,
Here r_fkart might be Ranges. So here he has specified a Range of Fkart values. Here the statement says to Delete the records whose Fkart values are not equal to the Values entered. Means there are 1,2,3,4,5 Fkart values in the r_fkart field If u give 2,3 then it will delete 1,4,5 and records.
Rewards if useful.
Thanks,
Murthy

Similar Messages

  • Where do I go to delete old messages and not SAVE any?

    Where do I go to delete old messages and not save any?

    Hello there Ibent50,
    If I understand correctly it sounds like you are wanting to delete some messages or whole conversations on your iPhone. This page from the iPhone User Guide should help you do that:
    Manage conversations - iPhone
    Delete a message. Touch and hold a message or attachment, tap More, select additional items if desired, then tap .
    Delete a conversation. In the Messages list, swipe the conversation to the left, then tap Delete.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • I cannot find my photo's on iphoto's and I did not delete them where could they be?

    I was transferring photo's from a camera to my Mac and now I cannot find any of my photo's that were in my Iphoto's libary, I did not delete them, where else could they be?  Or can they be recovered if they have been trashed?

    First, don't try to find and reimport or move photos via the My Photos search in the left hand pane of a Finder window.  That's a sure way to further damage a library. 
    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I can not delete unwanted message because I am not getting the delete button popup to activate deletion. Where did it go!?

    I can not delete unwanted emails because my delete prompt button is not appearing after I prompt edit and choose my email to edit. How do I make the prompt button to appear on edit page as before?    Thanks MRH

    Close out of the mail app, double tap the home button and completely close out of the app.
    then do a reset, no data loss.  Hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    then check and see if you can delete emails.

  • I want to delete a few contacts, apps, pics etc from my iphone, but when I delete and connect to my laptop they sync and come back again. How can I delete those items and not get them back when I connect my iphone to my laptop?

    I want to delete a few contacts, apps, pics etc from my iphone, but when I delete and connect to my laptop they sync and come back again. How can I delete those items and not get them back when I connect my iphone to my laptop?
    Also where exactly on the laptop is teh data stored.
    Thank you!!

    go to 'Edit' in the menu bar. Then choose 'Preferences'.
    you'll see a pop-up and there's a tab called 'Devices' there. If you click that, you will be able to check a box that says 'prevent automatic syncing for iPods, iPads and iPhones' or something like that.
    Hope this helps
    NB: if you don't even see the menu bar that has options like 'File, Edit, View, etc', first click the black/white square button on the top left of your screen, and then click 'show menu bar'. It should pop right up.
    Good luck

  • Looping delete statement where table name is coming from another table

    Hi All,
    We have to write code to delete records from active tables of WDSO.We have 5 DSO  so inspite of writing delete statement for each table we want to put all table names into one table and then loop through it .but we are getting error when we are refering that table field which has active table name.error is :
    "dictionary structure or table is either not active or does not exist "
    As per my understanding in a delete /select /insert /update statement we need to put table name (whose field we are refering ) it can't be replaced by a variable .
    ex: v_table = 'EMPLOYEE' .
    DELETE FROMv_table WHERE EMP_NAME = 'ABDC' .
    is wrong and it must be like
    ex : DELETE FROM EMPLOYEE WHERE EMP_NAME = 'ABDC' .
    but we want to make our code dynamic .
    Can you please suggest a way so that we can read the table names from another table and delete data based on some selection fom those tables .
    I tried variants ,perform etc and even searched FM for the same but not found a solution .Your help will be greatly appreciated .
    Thanks in advance .
    Regards,
    Jaya

    Hi,
    You can change your statement as follows:
    DELETE FROM (v_table) WHERE EMP_NAME = 'ABDC' .
    However, I would not recommend this. There is a standard function module RSAN_ODS_DATA_DELETE which allows selective deletion - that should be a safer way to do this. You can

  • Start Routine logic to delete records which do not satisfy a condition

    Hello,
    Iam trying to code a start routine to delete the records from the source_package if a certain set of conditions are not met.
    It is failing at the last statement.
    Pls help.
    Thanks
    Jagadish
    code is as follows..
    LOOP AT SOURCE_PACKAGE assigning <SOURCE_FIELDS>.
    IF not (
    ( <SOURCE_FIELDS>-/BIC/ZCLSD_DT BETWEEN <SOURCE_FIELDS>-/BIC/ZWEEKOF
    AND <SOURCE_FIELDS>-/BIC/ZNONWKOF )
      AND
      ( <SOURCE_FIELDS>-/BIC/ZCLSD_DT IS  INITIAL )
    DELETE SOURCE_PACKAGE FROM <SOURCE_FIELDS>.
    (is failing at the delete statement.)
    ENDIF.
    ENDLOOP.

    Thanks Pratap,
    I used an internal table to load the records and used a delete statement out side the LOOP.
    By using a Work Area assignment instead of the Source_fields, The delete statement is giving me an error saying "Conversion of Numeric Value to type Object is not valid".
    Here is the code I have modified...
       TYPES: BEGIN OF LINE,
                WO(6) type c,
              END OF LINE.
       DATA: WA TYPE LINE,
             ITAB TYPE TABLE OF LINE.
    LOOP AT SOURCE_PACKAGE assigning <SOURCE_FIELDS>.
    IF NOT (
    ( <SOURCE_FIELDS>-/BIC/ZCLSD_DT BETWEEN <SOURCE_FIELDS>-/BIC/ZWEEKOF
        AND <SOURCE_FIELDS>-/BIC/ZNONWKOF
      AND
      <SOURCE_FIELDS>-/BIC/ZAPRD_DT IS NOT initial )
    Append <SOURCE_FIELDS>-/BIC/ZWO_NBR to itab.
    ENDIF.
    ENDLOOP.
    loop at itab into WA.
    DELETE SOURCE_PACKAGE where /bic/ZWO_NBR = WA-wo.
    endloop.

  • Is this possible?   DELETE LT_WIP1 WHERE ABS( Z_O_K0007 ) = ABS( Z_O_K0003

    Hi, Is this statement possible because I can't get it to work?  Am I just formatting it incorrectly?
    I'm trying to delete entries from internal table LT_WIP1.
      DELETE LT_WIP1 WHERE ABS( Z_O_K0007 ) <= ABS( Z_O_K0003 ).
    Thanks!

    You can also follow the above suggestion..
    If you are fetching the data directly to LT_WIP1 .
    Then you can try this
    select * into table LT_WIP1 from abc
    where ( abcZ_O_K0007 >= 0 or abcZ_O_K0003 >= 0 ) and ( abcZ_O_K0007 > abcZ_O_K0003 ).
    Im not sure about this, you can try.

  • Dynamic where clause in "delete itab where..." variant

    Hi,  I need to be able to delete the contents of an internal table based on a dynamic where clause. I don't want to loop through the entire table to test each record.  Since the delete statement doesn't seem to allow a dynamic "where" clause I am trying to use a macro.  I can't get the macro to work either. 
    I get the following error in my syntax check:
    Statement concluding with "...FINAL_STATEMENT" ended unexpectedly.          
    Is there any way to get this macro to pass the syntax text or accomplish the dynamic delete?
    MACRO TO FILTER OUT UNWANTED RECORDS (RETAIL OUTLETS)
      DEFINE DELOUT.
        DELETE MY_ITAB WHERE &1.
      END-OF-DEFINITION.
    Example FINAL_STATEMENT = (  ZRRDIVIS = '4' )
    USING MACRO DOES NOT PASS SYNTAX CHECK
      DELOUT FINAL_STATEMENT.

    Well, if you really need this kind of functionality,  here is a code sample that I just threw together that would work.  A lot of code for one little delete statement though.
    report zrich_0001 .
    data: begin of itab occurs 0,
          fielda type c,
          fieldb type c,
          fieldc type c,
          end of itab.
    data: where_clause type string.
    class lcl_source definition.
      public section.
        types: t_source(72).
        class-data: routine(32) value 'TEMP_ROUTINE',
                    program(8),
                    message(128),
                    line type i.
        class-data: isource type table of t_source,
                    xsource type t_source.
        class-methods: execute_source importing im_clause type string.
    endclass.
    start-of-selection.
    * Build the itab.
      itab-fielda = '1'.
      itab-fieldb = '2'.
      itab-fieldc = '3'.
      append itab.
      itab-fielda = '3'.
      itab-fieldb = '2'.
      itab-fieldc = '1'.
      append itab.
    * Set the where clause
      where_clause = 'FIELDA = ''1''.'.
    * call the delete statement.
      call method lcl_source=>execute_source
                exporting
                    im_clause = where_clause.
    *       CLASS lcl_source IMPLEMENTATION
    class lcl_source implementation.
      method execute_source.
        xsource = 'REPORT ZTEMP_REPORT.'.
        insert xsource  into isource index 1.
        xsource = 'FORM & tables itab.'.
        replace '&' with routine into xsource.
        insert xsource  into isource index 2.
        xsource = 'Data: begin of xitab occurs 0,'.
        append xsource to isource.
        xsource = 'fielda type c,'.
        append xsource to isource.
        xsource = 'fieldb type c,'.
        append xsource to isource.
        xsource = 'fieldc type c,'.
        append xsource to isource.
        xsource = 'end of xitab.'.
        append xsource to isource.
        xsource = 'xitab[] = itab[].'.
        append xsource to isource.
        concatenate 'DELETE xITAB WHERE' im_clause into xsource
                      separated by space.
        append xsource to isource.
        xsource = 'ENDFORM.'.
        append xsource to isource.
        generate subroutine pool isource name program
                                 message message
                                 line line.
        if sy-subrc = 0.
          perform (routine) in program (program) tables itab.
        else.
          write:/ message.
        endif.
      endmethod.
    endclass.
    Regards,
    Rich Heilman

  • Where x Not In Collection?

    Hey everybody,
    is there a way to get this query working?
    >
    declare
    list_p APEX_APPLICATION_GLOBAL.VC_ARR2:=APEX_UTIL.STRING_TO_TABLE('23:24');
    begin
    DELETE FROM y WHERE x NOT IN (SELECT * FROM list_p);
    end;
    >
    The only solution i found is to loop the list_p everytime, but doesnt work fine for me.
    Thanks in advance.

    Write pipeline function that takes takes the string to split , pipes the split segments(table of string type ) .
    Use the pipeline function in the query.

  • Delete entries that are not in select option

    hi
      My select query is getting a values that were not in one of my select option. what is the statement to delete those entries from the internal table that were not in select option

    Hi,
    Please check the where conditon correctly.
    You may not be considering the all select option fileds in where condition.
    Check.
    or Use ..
    Delete from Itab where <field> not in <S_field>.
    Regards,
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Where are Notes really supposed to be kept?

    Well, Apple, you have really confused me this time. I upgraded to the new MobileMe and all heck has broken loose with iCal and Notes.
    I sorted the iCal issue by realising that I just have to delete everything in the 'On My Mac' folder in iCal, and go with the MobileMe hierarchy, and remember that even though it says it is on MobileMe, that actually means it is on MobileMe AND my Mac (because it syncs).
    Notes in Mail, however, are such a shambles, I just cannot work out what to so. I now have notes in the Reminders box under 'On My Mac', and in 'MobileMe', the upgrade also moved notes into an IMAP account that has nothing whatsoever to do with MoblileMe, and then, to my horror, I noticed that all the notes are ALSO in my MobileMe email inbox folder. Deleting them from there causes them to be removed from the MobileMe Reminders box.
    So, where are Notes SUPPOSED to be stored if I want to sync them across two Macs and an iPhone? If Apple is seriously suggesting that they have to live in the Inbox folder alongside all the emails, then they need their bumps feeling. Does anything at all now like in 'On My Mac'?
    Nige.

    Widgets that you install should go into your Home Folder's widget library (~/Library/Widgets). If you double-click a widget file in the Finder (or download a widget via Safari) that's where it'll be installed.
    The Dashboard widget Icon is by default always visible (and always on). If you remove it from the Dock, then no, it won't appear when Dashboard is up (the Dashboard icon behaves differently from other OS X applications since it's actually part of the Dock).

  • DO deleted but TO is not deleted

    Hi,
    I have a case where DO has deleted but TO is not deleted, in this case, the stock has moved from storage location 200 to 916. How can i move the stock back to stoarge loc 200 again?
    Thanks.
    Edited by: Hui Leng Yeoh on Feb 28, 2008 2:41 AM

    If you used iTunes to get the photos on the phone, then use the same iTunes and uncheck the music you don't want and do another sync.

  • I have the iPhone 4, and yesterday I synced my photos onto iTunes, but now I have albums on my phone that cannot be deleted, and there is not an option to delete the items in the albums individually... How do I get rid of these unwanted albums? Windows 7

    I have the iPhone 4, and yesterday I synced my photos onto iTunes, but now I have albums on my phone that cannot be deleted, and there is not an option to delete the items in the albums individually... How do I get rid of these unwanted albums? Using Windows 7.

    If you used iTunes to get the photos on the phone, then use the same iTunes and uncheck the music you don't want and do another sync.

  • How do I delete a photo in an album on my 4s? When I hit the trash can, it ask if I want to delete everywhere, I do not.

    How do I delete a photo in an album on my 4s? When I hit the trash can, it asks if I want to delete everywhere, I do not.

    Are you in your albums or your photo Stream?
    Sounds like you are in Photo Stream (iCloud.)
    Try albums.
    MacBook Pro, Mac OS X (10.8.2) 2.4GHz IntelCore i5 320 HD 8GB RAM ParallelsDesktop8.0 iPhone5_iOS6.0.1

Maybe you are looking for