<?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: Explain the following ABAP Code please in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552639#M581436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This include is related to BW extractor or assimilated product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each record extracted by the standard extractor, access to a custom table to fill fields appended to the DataSource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use of select single is bad-performance, better select for all entries in the current InfoPackage and then LOOP and READ FROM TABLE to update records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2007 14:30:43 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2007-07-23T14:30:43Z</dc:date>
    <item>
      <title>Explain the following ABAP Code please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552637#M581434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can any one please explain me what this code is performing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Convert this machine language into human language in detail please)&lt;/P&gt;&lt;P&gt;Data: i_t_data like ZOXWRD0054.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case i_datasource.&lt;/P&gt;&lt;P&gt; when ' Z_TRM_LMS'.&lt;/P&gt;&lt;P&gt;  Loop at c_t_data into i_t_data.&lt;/P&gt;&lt;P&gt;   Select single bonus_cat perfinc active from ztrm_labdlycat into&lt;/P&gt;&lt;P&gt;          (i_t_data-zzbonus, i_t_data-zzperf, i_t_data-zzactive)&lt;/P&gt;&lt;P&gt;           Where locat = i_t_data-locat and&lt;/P&gt;&lt;P&gt;                 exrsn = i_t_data-exrsn and&lt;/P&gt;&lt;P&gt;                 apobj = i_t_data-apobj.&lt;/P&gt;&lt;P&gt;    Modify c_t_data from i_t_data.&lt;/P&gt;&lt;P&gt;  Endloop.&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 13:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552637#M581434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Explain the following ABAP Code please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552638#M581435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the i_datasource = ' Z_TRM_LMS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code is getting values BONUS_CAT PERFINC and ACTIVE from table ZTRM_LABDLYCAT and updating all records of the the internal table C_T_DATA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 13:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552638#M581435</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2007-07-23T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Explain the following ABAP Code please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552639#M581436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This include is related to BW extractor or assimilated product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each record extracted by the standard extractor, access to a custom table to fill fields appended to the DataSource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use of select single is bad-performance, better select for all entries in the current InfoPackage and then LOOP and READ FROM TABLE to update records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 14:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552639#M581436</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-07-23T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Explain the following ABAP Code please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552640#M581437</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 is a code written in a user exit in BW.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- Declare a work area (Temporary storage) same as the structure ZOXWRD0054&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Data: i_t_data like ZOXWRD0054.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;the program has already a variable called i_datasource&amp;lt;/b&amp;gt; and we use Case &amp;lt;b&amp;gt;statement to perform various actions for different values &lt;/P&gt;&lt;P&gt;say if a = 0&lt;/P&gt;&lt;P&gt;   do something&lt;/P&gt;&lt;P&gt;  if b= 0&lt;/P&gt;&lt;P&gt;  do someting..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this.. Case is used to branch to differnt part of the code based on the value of i_datasouce variable&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;case i_datasource.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- When the value of i_datasouce is 'Z_TRM_LMS' then execute the code between loop and endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;when ' Z_TRM_LMS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- Loop will process record by record&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Loop at c_t_data into i_t_data.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- Select a single occurence of bonus_cat perfinc active fields from the table ztrm_labdlycat where the values of the fields locat is equal to value in i_t_data-locat and&lt;/P&gt;&lt;P&gt;exrsn is equal to value in i_t_data-exrsn and&lt;/P&gt;&lt;P&gt;apobj is equal to value in  i_t_data-apobj.&lt;/P&gt;&lt;P&gt;and copy the values bonus_cat perfinc active from which are in table ztrm_labdlycat into the variables (i_t_data-zzbonus, i_t_data-zzperf, i_t_data-zzactive)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Select single bonus_cat perfinc active from ztrm_labdlycat into&lt;/P&gt;&lt;P&gt;(i_t_data-zzbonus, i_t_data-zzperf, i_t_data-zzactive)&lt;/P&gt;&lt;P&gt;Where locat = i_t_data-locat and&lt;/P&gt;&lt;P&gt;exrsn = i_t_data-exrsn and&lt;/P&gt;&lt;P&gt;apobj = i_t_data-apobj.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- Here you are trying to modify the content of the table c_t_data with the new values that the select stament above has returned..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Modify c_t_data from i_t_data.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help do let me know if any thing else is required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 14:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explain-the-following-abap-code-please/m-p/2552640#M581437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T14:50:20Z</dc:date>
    </item>
  </channel>
</rss>

