Delete a line if string not there

Hi friends,
this is not working. I dont know why ?
All what I need to do is deleting lines from itab
if  string1 is not appearing in string2.
e.g. delete wa_zehs_prokat_tab because
string2 doesn't have R99 .
string1 = 'R99'
string2 = 'R39/26 R39/27 R39/28 R60 R62'.
LOOP AT it_ZEHS_PROKAT_RES INTO wa_zehs_prokat_tab.
loop at s_rstze.
if  s_rstze-low CA  wa_zehs_prokat_tab-RSATZ.
* do nothing
else.
DELETE TABLE it_ZEHS_PROKAT_RES FROM wa_zehs_prokat_tab.
endif.
endloop.
endloop.
Thanks
sas

Try SEARCH.
SEARCH STRING2 FOR STRING1.
IF SY-SUBRC = 4.
** not found, delete
ENDIF. 
Regards,
Naimesh Patel

Similar Messages

  • I just bought new iPhone 5 - when I try to reply to e-mail my tool bar at bottom with "reply, forward, delete..." is not there!  Why? How can I reactivate it?

    I just bought new iPhone 5 - when I try to reply to e-mail my tool bar at bottom with "reply, forward, delete..." is not there!  Why? How can I reactivate it?

    Submit suggestions to Apple at http://www.apple.com/feedback/iphone.html

  • My sister installed page rage on my laptop, tried rmeoving it frodm add and delete programs and it is not there, tried looking for extensions and its not there, but the page rage web search is ther and i cant remove it. need help asap

    find it under add on and extensions, it doesnt appear on add or remove programs. need help asap

    Hi there -
    Thank you for your feedback. If you wish to uninstall our app, you can do so via our official uninstall page: http://www.pagerage.com/uninstall-pagerage.aspx
    If you still need assistance, please feel free to reach out to us by email: [email protected], thanks!

  • Share Buttons on Issuu not there but ok in Safari

    This and a previous post on Gadgets missing on Google Sites in edit mode are related to recent FF updates. Just noticed this with Issuu.com. There should be a Follow button and a range of other buttons for social sharing and adding to Issuu.com stacks. Works on Safari! Cookies deleted, Flash updated and still not there. Regregettably, I am going to move back to Safari because too many things have gone wrong with FF since update 22!

    Hi jscher2000,
    Sign-in to your google account at the bottom of the web page (note: it might take several attempts in FF which is another new issue I forgot to mention as it should be a single step as before). Once signed in, you will see the edit pencil at the top of page, click in an area of the page, then choose Insert and More which give you a selection of Gadgets menu, Try Public and search for iFrame (as an example). You will get a white gadget box on the page. Click it and choose settings and add a website. When you close the editing you will still have the edit tools available and you should see the contents of the iFrame just as it is if you signed-out and viewed it as a member of the public. Hope it generates the same issue I have.
    Regards

  • ReferenceError: Error #1069: Property DSPriority not found on String and there is no default value.

    Hi All
                      This is the Error where i got from my sample chatting application...
    ReferenceError: Error #1069: Property DSPriority not found on String and there is no default value.
    at mx.messaging::Producer/handlePriority()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messagi ng\Producer.as:190]
    at mx.messaging::Producer/internalSend()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messaging \Producer.as:169]
    at mx.messaging::AbstractProducer/send()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messaging \AbstractProducer.as:561]
    at SampleMessagin/sendMessage()[D:\FlexJavaPrograms\SampleMessagin\src\SampleMessagin.mxml:2 9]
    at SampleMessagin/___SampleMessagin_Button2_click()[D:\FlexJavaPrograms\SampleMessagin\src\S ampleMessagin.mxml:74]
                        this is the code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
          currentState="{st}"
          creationComplete="consumer.subscribe()">
    <fx:Script>
      <![CDATA[
       import mx.messaging.events.MessageEvent;
       import mx.messaging.messages.AsyncMessage;
       import mx.messaging.messages.IMessage;
       import mx.modules.IModule;
       import mx.states.State;
       [Bindable]
       public var st:String="";
       public function changeStateHandler(event:Event):void
        st = "Login"
       //send message throug this method
       protected function sendMessage():void
        var msg:IMessage = new AsyncMessage();
        msg.headers = uname.text;
        msg.body = sendText.text;
        producer.send(msg);
        sendText.text = " ";
      //message  Handler  
       protected function consumer_messageHandler(event:MessageEvent):void
        // TODO Auto-generated method stub
        var resp:IMessage = event as IMessage;
        dispText.text = resp.headers.toString()+" :: "+resp.body.toString()+"\n";
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:Producer id="producer"
         destination="chat"/>
      <s:Consumer id="consumer"
         destination="chat"
         message="consumer_messageHandler(event)"/>
      </fx:Declarations>
    <s:states>
      <s:State name="State1"/>
      <s:State name="Login"/>
    </s:states>
    <s:Panel x="246" y="137" width="366" height="200" title="Login Here" includeIn="State1">
      <mx:HBox horizontalCenter="2" verticalCenter="-30">
       <s:Label text="Enter UR Name"/>
       <s:TextInput id="uname"/>
       <s:Button id="login" label="Login" click="changeStateHandler(event)"/>
      </mx:HBox>
    </s:Panel>
    <s:Panel includeIn="Login" x="327" y="78" width="353" height="369"  title="Welcome:{uname.text}">
      <s:TextArea x="6" y="11" height="222" width="335" id="dispText"/>
      <s:TextArea x="10" y="241" height="85" width="258" id="sendText"/>
      <s:Button x="276" y="241" label="Send" height="76" click="sendMessage()"/>
    </s:Panel>
    </s:Application>
    and my messaging-config.xml is as follows
                 <?xml version="1.0" encoding="UTF-8"?>
    <service id="message-service"
        class="flex.messaging.services.MessageService">
        <adapters>
            <adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />
            <!-- <adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/> -->
        </adapters>
        <default-channels>
            <channel ref="my-polling-amf"/>
        </default-channels>
        <destination id="chat"/>
    </service>
                      can any one help me what is the error present here.............
                         why it is showing error .. am i wrote anything wrong in this code .. please help me....

    I'm not the expert on this topic, but I think this line:
    msg.headers = uname.text;
    ...is throwing the error. Look into how to properly construct the headers for the message. They should be in name/value pairs.

  • HT4623 My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. 

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • 2LIS_02_ITM deleted line items are not reflected in BW

    Hi,
    Our current Data flow 2LIS_02_ITM-->DSO-->CUBE.
    I am analyzing a Invoice, When it is created 01.04.2014 it has got 10 Line Items and all the data is load to BW,Invoice with 10 Line items.
    In ECC I can now see the same Invoice only got 5 line items and from change log I can see 5 line items are deleted on 15.04.2014.These changes are not reflected in BW.In BW invoice data still shows 10 line items.
    If I perform setup table job and ECC RSA3 for that invoice I am getting only 5.
    I believe it’s something to do with 0RECORDMODE,Can you please let me know how to fix this in BW.
    Thanks

    Yes this is a known behavior in case of deltas.
    For Deleted line items Rocancel field will have an entry with R.
    To handle this you need to map ROCANCEL field in Technical group of transformation (Between Datasource to DSO) with 0Recordmode.
    Once you will do that then after activating the data in DSO it will nullify the records and deleted order or item will not appear.
    Regards,
    AL

  • Deleted PO line item not coming to Sourcing

    Hi,
    We created PO from sourcing, later we realized that vendor need to be chaged. so we deleted PO line item, but this deleted line item is not displaying in sourcing cockpit. when could be the reason
    Thanks
    Ravi

    Ravi,
    Please check the following notes
    Note 1059979 - BBP_GET_STATUS_2: deleted PO did not send the shp to SOCO
    Note 1012124 - SHP not reappear in SOCO after backend PO delete
    Note 1055238 - Item is not sent to SOCO after backend PO deletion
    From the bid Invitation
    Note 1134786 - Requirement sent back to SOCO when a PO is deleted
    Thanks,
    Surya

  • System should not allow to delete PO line Item after GR/IR

    Hi,
    I am working on a SAP Retail Implementation project.
    Currently the system is allowing us to delete the PO line items after doing GR or IR against that PO line item. But the clients requirement is that the system should not allow to delete PO line item after doing GR/IR.
    We are using Account Assignment Category-N, Item Category-S.
    Please let me know if you have the solution for this requirement.
    Thanks in advance
    Thanks & Regards,
    Suresh

    Hi,
    Standard SAP will not allowed the PO to be deleted once it was GR done. The controlled is on the attributes of message to set as "E"
    Message no. 06115
    But if invoiced takes place, the is the point that PO can be deleted.
    You have to do have a Enhancement using MM06E005, insert you logic here to check PO history tables like EKBE, then check if invoice " Q" (BEWTP) exist, the PO cannot be deleted once the user delete the PO line and SAVE it. Ask you developer to help you on the following coding.
    Use MM06E005 and EXIT_SAPMM06E_012
    IF SY-TCODE = 'ME22N'.
    IF sy-ucomm = 'MESAVE' OR SY-UCOMM = 'YES'..
    LOOP AT TEKPO.
    IF TEKPO-LOEKZ = 'L'.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR1 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'E'.
    IF SY-SUBRC = 0.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR2 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'Q'.
    IF SY-SUBRC = 0.
    Regards,

  • In ME22N deleted line item should not be Re-activate

    Dear Sap Guru's
                         For Purchase order in T.code ME22N deleted line item should not be reactivate.
    If i create some line items in this t.code and i delete these items then ince again someone wants to views these they he should not be able to view the deleted line items.
                        plz give me reply as soon as possible.Urgent

    hi
    version management
    SPRO –> Material Management –> Purchasing -> Version Management .
    After activating version management you can see the Version tab in ME53N near to source of supply tab in PR.
    http://help.sap.com/saphelp_srm30/helpdata/en/46/882fdd8bfc1743bd5ef8b532f94402/content.htm
    SAP Enterprise Buyer provides you with version management for purchasing documents. As a first step, you can display versions of purchase orders and contracts.
    The system creates a version in the background if you, as a purchaser, carry out one of the following actions:
    · You change a posted purchase order
    · You order a posted purchase order again
    · You change a contract that has already been released
    · You release an already released contract again
    In contrast to the change documents that retain a change history, a version displays the status of a document at a specific point in time.
    Version management provides a check for you as a purchaser, for example, if you wish to display a purchase order in the form in which you transferred it to the vendor on day X. A version provides clarity, for example, in negotiations on a contract.
    Features
    You can use versions as follows:
    · Display
    · Compare and list differences in tabular form. The comparison result has separate areas that can be displayed:
    Header data (including organizational data, tax and payment data; partner data and documents)
    Item data (including taxes and limits if they exist; partner data, documents; account assignment and conditions)
    · Archive, if it relates to transaction data (you can archive versions of purchase orders, but not contract versions)
    You cannot change or output versions. This is only possible for the active document.
    Also, visit the following thread:
    regards
    kunal

  • Custom table Not deleting the line items on the order.

    Hi All
    I have an issue, In SAP  we have created a custom table which is related to ship to party, as and when we delete any line items in the order(VBAP)  it should update /delete the custom table but it is not deleting, while when we create any line items in the order (VBAP) it is updating  the entries in the custom table which is suppose to happen.
    Please let me know your inputs.
    Thanks,
    Ram

    UPDKZ is not a field name. it is the processing status of a line or order.
    If UPDKZ is I , its initial, like adding a new line
    If UPDKZ is U, its update. Like changing or modifying an existing line
    ....so on...
    Regards
    Sai

  • Please help I just accidentally deleted a very very important note from my "Notes" on my iPhone 4s.  How can I get it back? Is there a "Trash" file somewhere for deleted notes?  Thank you, Susan

    Please help I just accidentally deleted a very very important note from my "Notes" on my iPhone 4s.  How can I get it back?
    Is there a "Trash" file somewhere for deleted notes?
    Thank you,
    Susan

    Had you never backed up the phone before? When you saw the iTunes logo and cable, the device was in recovery mode. The data was already lost. The only way to recover from that is to restore the device, which will delete all of your data. You will only be able to restore to your last backup, whenever that was. Sorry this happened, but this highlights the importance of doing regular backups. The backup is the only protection you have against a problem like this.

  • PO change output not triggered after deletion of line item

    Hello SAP experts,
    I have one issue with PO output
    I have created PO with output type & we are outputing through ME9F( 3- Send with application own transaction)
    Below is the sequence,
    1.PO created & outputed thru ME9F
    2.Now ,i added the line item in the PO,Output triggred but not processed.
    3.I deleted the line item immedietely,Output not triggered.
    (My question is Why the output is not tiggered?)
    4.I outputed it through ME9F,vendor will receive only 1st output & never get the 2nd o/p for the deletion of item.
    I am clear that after processsing the 1st output,then only i can process the 2nd.
    But in business point of view,this scene created the problem.
    Please provide your valuable input.

    Hi,
    In IMG - Materials Management- Purchasing-Messages - Fields relevant to Print out of changes
    Enter Table EKPO , Reference Field LOEKZ, tick on change print relevant for purchase order,in routine enter 03.
    Now your Output will be triggered with a change indicator and you can process it using ME9F.
    Regards
    Chandra Shekhar

  • HT4623 I'm trying to update my iPhone and I go to ``settings'' then ``general'' and at that point I should see ``software update.'' But it's simply not there, that line does not exist in my phone. What can I do?to look for the

    I'm trying to update my iPhone and I go to ``settings'' then ``general'' and at that point I should see ``software update.'' But it's simply not there, that line does not exist in my phone. What can I do?

    This featue is only available on iphone running ios 5 or later.
    Update as you always have, via itunes.
    Read the article you linked.  the entire article, not just the first part.
    iOS: How to update your iPhone, iPad, or iPod touch

Maybe you are looking for

  • Bug in Column view?

    I've found that in services that I create anew not ones that are available from Apple, I can't use keyboard shortcuts that I've created for those services in column view but can in list or icon view. For example, I just created a service called 'crea

  • 3g is not working but 2g is fine - could this be a hardware problem?

    Just recently updated to IOS6 and now can't get 3g, but I also dropped my phone at the same time. I've tried all the resets and changed SIM and the issue is definitely with the handset either hardware or software installed on it. Is it possible that

  • Can I get my money back for an app that I didn't like?

    Apparently I purchased the wrong app and I would like to get my money back, is that possible?

  • Can't install the June (2014) Power Query Update

    Hi, I can't seem to install the June update.  The MSI file does not run.  I'm using the Microsoft Office 365 ProPlus product and update 15.0.4631.1002 32-bit.  All office programs are closed.  Any ideas? Thanks Graham

  • 2 Printers (Lexmark and Samsung) and CUPS

    I am attempting to get at least one of these printers working through CUPS (before I start in on trying to get Samba setup, but I digress). The two printers are: Samsung ML-1710 Laser Printer Lexmark z611 Ink Printer At some point, I had the ML-1710