<?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 Kindly write some sample code for this scenario in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/kindly-write-some-sample-code-for-this-scenario/m-p/2113119#M441957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly write some sample code for the below Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a set of Deliveries entered on the selection screen get the relevant data from LIKP &amp;amp; LIPS.&lt;/P&gt;&lt;P&gt;for all the deliveries selected get the sales order data from VBAK &amp;amp; VBAP based on the VGBEL &amp;amp; VGPOS in LIPS.&lt;/P&gt;&lt;P&gt;The Output internal table should contain only deliveries which are created with reference to a sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance.&lt;/P&gt;&lt;P&gt;Akshitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2007 10:26:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-19T10:26:49Z</dc:date>
    <item>
      <title>Kindly write some sample code for this scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/kindly-write-some-sample-code-for-this-scenario/m-p/2113119#M441957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly write some sample code for the below Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a set of Deliveries entered on the selection screen get the relevant data from LIKP &amp;amp; LIPS.&lt;/P&gt;&lt;P&gt;for all the deliveries selected get the sales order data from VBAK &amp;amp; VBAP based on the VGBEL &amp;amp; VGPOS in LIPS.&lt;/P&gt;&lt;P&gt;The Output internal table should contain only deliveries which are created with reference to a sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance.&lt;/P&gt;&lt;P&gt;Akshitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 10:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/kindly-write-some-sample-code-for-this-scenario/m-p/2113119#M441957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T10:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Kindly write some sample code for this scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/kindly-write-some-sample-code-for-this-scenario/m-p/2113120#M441958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Select a&lt;SUB&gt;vbeln b&lt;/SUB&gt;posnr b&lt;SUB&gt;matnr b&lt;/SUB&gt;lfimg b&lt;SUB&gt;vgbel b&lt;/SUB&gt;vgpos into table ITAB&lt;/P&gt;&lt;P&gt;   from likp as a join lips as b on A&lt;SUB&gt;vbeln =  b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;   where a~vbeln in s_vbeln..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not itab[] is initial.&lt;/P&gt;&lt;P&gt;   select a&lt;SUB&gt;vbeln b&lt;/SUB&gt;posnr b~matnr ... into table itab1 from vbak as a join vbap as b&lt;/P&gt;&lt;P&gt;   on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln &lt;/P&gt;&lt;P&gt;   for all entries in itab where a&lt;SUB&gt;vbeln = itab-vgbel and b&lt;/SUB&gt;posnr = itab-vgpos.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;read table itab1 with key vbeln = itab-vgbel posnr = itab-vgpos.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Now ITAB will have only deliveries created against Sales orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 10:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/kindly-write-some-sample-code-for-this-scenario/m-p/2113120#M441958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T10:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Kindly write some sample code for this scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/kindly-write-some-sample-code-for-this-scenario/m-p/2113121#M441959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  t_likp type table of likp with header line,&lt;/P&gt;&lt;P&gt;  t_lips type table of lips with header line,&lt;/P&gt;&lt;P&gt;  t_vbak type table of vbak with header line,&lt;/P&gt;&lt;P&gt;  t_vbap type table of vbap with header line.&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;    from likp&lt;/P&gt;&lt;P&gt;    into table t_likp&lt;/P&gt;&lt;P&gt;    up to 10 rows.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  SELECT *&lt;/P&gt;&lt;P&gt;    from lips&lt;/P&gt;&lt;P&gt;    into table t_lips&lt;/P&gt;&lt;P&gt;     for all entries in t_likp&lt;/P&gt;&lt;P&gt;   where vbeln eq t_likp-vbeln.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;     select *&lt;/P&gt;&lt;P&gt;       from vbap&lt;/P&gt;&lt;P&gt;       into table t_vbap&lt;/P&gt;&lt;P&gt;     for all entries in t_lips&lt;/P&gt;&lt;P&gt;      where vbeln eq t_lips-vbeln&lt;/P&gt;&lt;P&gt;        and posnr eq t_lips-posnr.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 10:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/kindly-write-some-sample-code-for-this-scenario/m-p/2113121#M441959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T10:37:16Z</dc:date>
    </item>
  </channel>
</rss>

