<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Logic required. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872053#M930701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this way ..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
delete it_vbap where netwr = '0.00'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 15:26:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T15:26:41Z</dc:date>
    <item>
      <title>Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872050#M930698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two internal table it_vbak, it_vbap.  I want to delete the VBEln from it_vbap where all line items of the NETWR is 0.&lt;/P&gt;&lt;P&gt;if any one of the line item of the netwr has value , it has to be come out. it should be there. I need to delete the VBEN from VBAp when all the line items of value nerwr is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 15:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872050#M930698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T15:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872051#M930699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbap where vbeln = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;delete it_vbap where NETWR eq  0.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 15:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872051#M930699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T15:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872052#M930700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;I sugest u to filter these records in select itself instead of selecting and deleting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK NOT i_vbak[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT f1 f2 f3..&lt;/P&gt;&lt;P&gt;FROM vbap&lt;/P&gt;&lt;P&gt;INTO TABLE i_vbap&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_vbak&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ i_vbak-vbeln + all ur conditions&lt;/P&gt;&lt;P&gt;AND netwr GT '0.00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u really want to delete then delete as a bunch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE i_vbap WHERE netwr EQ '0.00'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on May 12, 2008 8:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 15:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872052#M930700</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-12T15:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872053#M930701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this way ..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
delete it_vbap where netwr = '0.00'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 15:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872053#M930701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T15:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872054#M930702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check the all the line items whose are in one order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 15:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872054#M930702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T15:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872055#M930703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_vbak into wa_vbak.
loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.

if wa_vbap-netwr = '0'.
delete wa_vbap index sy-index.
endif.

clear wa_vbap.
endloop.
clear wa_vbak.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 15:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872055#M930703</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-12T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872056#M930704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to check the all line items nrewr. if all the line items of the netwr is 0 , then only I should delete. if any line item conatins otherthan 0 , we should not delete that vbeln from vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 16:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872056#M930704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T16:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872057#M930705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;Then check the logic below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_check TYPE c.&lt;/P&gt;&lt;P&gt;SORT: i_vbak BY vbeln,&lt;/P&gt;&lt;P&gt;           i_vbap BY vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_vbak INTO wa_vbak.&lt;/P&gt;&lt;P&gt;CLEAR w_check.&lt;/P&gt;&lt;P&gt;LOOP AT i_vbap INTO wa_vbap&lt;/P&gt;&lt;P&gt;                WHERE vbeln EQ wa_vbak-vbeln.&lt;/P&gt;&lt;P&gt;CHECK wa_vbap-netwr NE '0.00'.&lt;/P&gt;&lt;P&gt;w_check = 'X'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK w_check IS INITIAL.&lt;/P&gt;&lt;P&gt;DELETE i_vbap WHERE vbeln EQ wa_vbak-vbeln.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar Vemuru on May 13, 2008 9:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 04:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872057#M930705</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-13T04:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872058#M930706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two internal table it_vbak, it_vbap. I want to delete the VBEln from it_vbap where all line items of the NETWR is 0.&lt;/P&gt;&lt;P&gt;if any one of the line item of the netwr has value , it has to be come out. it should be there. I need to delete the VBEN from VBAp when all the line items of value nerwr is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans: use dlete it_vbap where netwr ne 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872058#M930706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872059#M930707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : wa_vbrp,&lt;/P&gt;&lt;P&gt;          wa_vbak.&lt;/P&gt;&lt;P&gt;  LOOP AT tb_vbak INTO wa_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wf_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;    READ TABLE tb_vbap INTO wa_vbap&lt;/P&gt;&lt;P&gt;                  WITH KEY  netwr eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;      DELETE tb_vbap FROM  wa_vbap.&lt;/P&gt;&lt;P&gt;     CONTINUE.     &lt;/P&gt;&lt;P&gt; CLEAR wa_vbrp.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    enloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Mohinder Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872059#M930707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872060#M930708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain .. what do you mean by "all the line items of netwr"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872060#M930708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872061#M930709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_vbap where netwr is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points if it helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872061#M930709</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2008-05-13T06:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Logic required.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872062#M930710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR : wa_vbak,wa_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tb_vbak INTO wa_vbak.&lt;/P&gt;&lt;P&gt;    READ TABLE tb_vbap INTO wa_vbap&lt;/P&gt;&lt;P&gt;    WITH KEY vbeln = wa_vbak-vbeln&lt;/P&gt;&lt;P&gt;                    netwr = 0.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      DELETE tb_vbap WHERE vblen EQ wa_vbap-vblen.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;   clear: wa_vbak, wa_vbap.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N M Poojari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-required/m-p/3872062#M930710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:17:25Z</dc:date>
    </item>
  </channel>
</rss>

