<?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: Expain this code? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179689#M463309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at cs_postab. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;to run for every entry in the internal table cs_postab&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;select single * from likp where vbeln eq cs_postab-vbeln. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;single row with all the fields of the table likp will be selected, based on the condition likp- vbeln should be equal to cs_postab-vbeln&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;cs_postab-sdabw = likp-sdabw. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;from the selected row the field sdabw of internal table cs_postab will be assigned from lidp - sdabw field&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;Modify cs_postab.&amp;lt;i&amp;gt;&amp;lt;b&amp;gt; the current row of the internal table cs_postab that is read through the loop will be updated with the value of the field sdabw&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;endloop. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;once all the records of the table cs_postab is read it will end the loop.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2007 09:28:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-04T09:28:11Z</dc:date>
    <item>
      <title>Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179680#M463300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain this code.                                &lt;/P&gt;&lt;P&gt;                              Loop at cs_postab. &lt;/P&gt;&lt;P&gt;                                 select single * from likp where vbeln  eq  cs_postab-vbeln.&lt;/P&gt;&lt;P&gt;                                  cs_postab-sdabw = likp-sdabw.&lt;/P&gt;&lt;P&gt;                                       Modify cs_postab.&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;Thanks,&lt;/P&gt;&lt;P&gt;sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 06:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179680#M463300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T06:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179681#M463301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an internal table called cs_postab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has a certain structure with one field as vbeln (sales order number)&lt;/P&gt;&lt;P&gt;and another field sdabw which maybe curently empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By looping at the table, we are taking each record at a time, checking its vbeln and using it to read data from LIKP table. Once we have read the data, we fill up the sdabw field of the current row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at cs_postab. " the work area is a header line &lt;/P&gt;&lt;P&gt;select single * from likp where vbeln eq cs_postab-vbeln.  " getting data for the current sales order.&lt;/P&gt;&lt;P&gt;cs_postab-sdabw = likp-sdabw.&lt;/P&gt;&lt;P&gt;Modify cs_postab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 06:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179681#M463301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T06:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179682#M463302</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;This codes are used to modify sdabw field ot cs_postab from likp db table value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this uses loop and changes values of itab accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 06:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179682#M463302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T06:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179683#M463303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sairam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your Code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. you had selected the all fields from LIKP table where the fields LIKP-VBELN and CS_POSTB - VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then, assign the value of field likp-sdabw into  cs_postab-sdabw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now you are update the Internal table cs_postab using Modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 06:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179683#M463303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T06:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179684#M463304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You r getting the Special processing indicator(SDABW) value using Delivery(VBELN) Value from the Table LIKP &amp;amp; using this VBELN u r updating the values of SDABW in cs_postab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 06:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179684#M463304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T06:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179685#M463305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this code modifies the internal table cs_postab with the value sdabw by getting it from the table LIKP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at cs_postab.  &amp;lt;b&amp;gt;" for every value of cs_postab-vbeln&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select single * from likp where vbeln eq cs_postab-vbeln.  &amp;lt;b&amp;gt;" selects the respective record frm LIKP matching the VBELN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;cs_postab-sdabw = likp-sdabw. &amp;lt;b&amp;gt;"write the value sdabw from LIKP to the internal table cs_postab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Modify cs_postab. &amp;lt;b&amp;gt;"modififies the internal table&amp;lt;/b&amp;gt;&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;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 06:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179685#M463305</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-05-04T06:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179686#M463306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sairam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at cs_postab. &lt;/P&gt;&lt;P&gt;( Looping the cs_postab table )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from likp where vbeln eq cs_postab-vbeln.&lt;/P&gt;&lt;P&gt;( selecting a single row from likp table if it &lt;/P&gt;&lt;P&gt;vbeln in that row is equal to cs_postab-vbeln. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting a record which satisfy the above condition&lt;/P&gt;&lt;P&gt;Now u r modifying the cs_postab table sdabw record&lt;/P&gt;&lt;P&gt;with likp table sdabw record.&lt;/P&gt;&lt;P&gt;( i.e, assigning the selected likp-sdabw record to &lt;/P&gt;&lt;P&gt;postab-sdabw record )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cs_postab-sdabw = likp-sdabw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify cs_postab.&lt;/P&gt;&lt;P&gt;( this code wil save the modified record&lt;/P&gt;&lt;P&gt;in cs_postab.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope u got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward for useful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179686#M463306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179687#M463307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam giving bonus points to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179687#M463307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179688#M463308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sairam,&lt;/P&gt;&lt;P&gt;              U  r modifying field sdabw to ur internal table cs_postab on the basis of vbeln that exist in this internal table   from LIKP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179688#M463308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expain this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179689#M463309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at cs_postab. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;to run for every entry in the internal table cs_postab&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;select single * from likp where vbeln eq cs_postab-vbeln. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;single row with all the fields of the table likp will be selected, based on the condition likp- vbeln should be equal to cs_postab-vbeln&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;cs_postab-sdabw = likp-sdabw. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;from the selected row the field sdabw of internal table cs_postab will be assigned from lidp - sdabw field&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;Modify cs_postab.&amp;lt;i&amp;gt;&amp;lt;b&amp;gt; the current row of the internal table cs_postab that is read through the loop will be updated with the value of the field sdabw&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;endloop. &amp;lt;i&amp;gt;&amp;lt;b&amp;gt;once all the records of the table cs_postab is read it will end the loop.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 09:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/expain-this-code/m-p/2179689#M463309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T09:28:11Z</dc:date>
    </item>
  </channel>
</rss>

