<?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: want coding for this in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362375#M522707</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;check if the following helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at xkomv where xkomv-kposn =VBAP-posnr.&lt;/P&gt;&lt;P&gt;if komv-kschl='zvpr'.&lt;/P&gt;&lt;P&gt; continue.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;lt;ur logic&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can check help of all the keywords using F1 help, you may develop your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinesh Dhiman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;please reward if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 10:06:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T10:06:58Z</dc:date>
    <item>
      <title>want coding for this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362373#M522705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , iam new to abap could u plz give code for this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the internal table xkomv and get all the records for the condition where the condition item number of xkomv(kposn) is equal to the sales document item of VBAP(posnr).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then check for the condition types other than 'zvpr' type. if it is of this type then this code should not get triggered.&lt;/P&gt;&lt;P&gt;ie if komv-kschl='zvpr'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 05:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362373#M522705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T05:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: want coding for this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362374#M522706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code would be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Clear:tbl_xkomv.
loop at xkomv into wa_xkomv where kposn = g_posnr.
if wa_xkomv-kschl EQ 'ZVPR'.
continue.
else.
append wa_xkomv  to tbl_xkomv.
endif.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: 1. In the code above , i assume that g_posnr has the item number from &lt;/P&gt;&lt;P&gt;             VBAP &lt;/P&gt;&lt;P&gt;         2. wa_xkomv  is an explicit work area for your internal table xkomv.&lt;/P&gt;&lt;P&gt;         3. tbl_xkomv is another internal table into which i am getting the records for &lt;/P&gt;&lt;P&gt;             the sales document item number you have and for the condition type NE &lt;/P&gt;&lt;P&gt;             zvpr.This table is of the same type as xkomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to process a series of sales document numbers from VBAP then you will have to loop at all of them and then do the code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2007 12:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362374#M522706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-02T12:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: want coding for this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362375#M522707</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;check if the following helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at xkomv where xkomv-kposn =VBAP-posnr.&lt;/P&gt;&lt;P&gt;if komv-kschl='zvpr'.&lt;/P&gt;&lt;P&gt; continue.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;lt;ur logic&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can check help of all the keywords using F1 help, you may develop your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinesh Dhiman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;please reward if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362375#M522707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: want coding for this</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362376#M522708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 09:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/want-coding-for-this/m-p/2362376#M522708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T09:15:33Z</dc:date>
    </item>
  </channel>
</rss>

