<?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: Code Doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950894#M391713</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;PRE&gt;&lt;CODE&gt;LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT
WHERE FIELDNM = 'ERSDA'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_ERSDA.
APPEND L_R_ERSDA.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. fetch the records satsfying the condition 'ERSDA' and will place it in the work area L_S_SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Move-Corresponding will move the ciorresponding field name from L_S_SELECT TO L_R_ERSDA(this is header line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. that header line is appended into the itab  L_R_ERSDA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 05:13:23 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2007-02-13T05:13:23Z</dc:date>
    <item>
      <title>Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950892#M391711</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;Tell me for each statement how does the Following Code Work .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That too Loop at ***** Into ***** i need explanation ( What it will pass into other ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT
WHERE FIELDNM = 'ERSDA'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_ERSDA.
APPEND L_R_ERSDA.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950892#M391711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T05:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950893#M391712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kumar , &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;The loop at into where , this will loop at all those records where the feildnm =ERSDA , for all other records the loop does iterate.&lt;/P&gt;&lt;P&gt;Move corresponding , moves the value from feilds of  L_S_SELECT to the corresponding feilds of L_R_ERSDA , so in this the structures must hev feils with same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append appends the value of the header into the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950893#M391712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T05:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950894#M391713</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;PRE&gt;&lt;CODE&gt;LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT
WHERE FIELDNM = 'ERSDA'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_ERSDA.
APPEND L_R_ERSDA.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. fetch the records satsfying the condition 'ERSDA' and will place it in the work area L_S_SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Move-Corresponding will move the ciorresponding field name from L_S_SELECT TO L_R_ERSDA(this is header line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. that header line is appended into the itab  L_R_ERSDA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950894#M391713</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-02-13T05:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950895#M391714</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;So it Loops based on Field name 'ERSDA' and select the Fields and Appends those Records to Body  ...Right ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950895#M391714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T05:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950896#M391715</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;LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT&lt;/P&gt;&lt;P&gt;WHERE FIELDNM = 'ERSDA'  ......&lt;/P&gt;&lt;P&gt;This will copy the content of ur internal table S_S_IF-T_SELECT to work area L_S_SELECT line by line,where WHERE FIELDNM = 'ERSDA' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING L_S_SELECT TO L_R_ERSDA&lt;/P&gt;&lt;P&gt;Once the record is found in internal table satisfying above 'Where' condition..it will copy the content from work area L_S_SELECT to internal table L_R_ERSDA's header.. (corresponding fields) &lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;APPEND L_R_ERSDA.&lt;/P&gt;&lt;P&gt;This will append the record ( with corresponding field copied ) to internal table L_R_ERSDA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950896#M391715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T05:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950897#M391716</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;PRE&gt;&lt;CODE&gt;LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;This loop will select t_select from the s_s_if table into the workarea l_s_select where the condition statisfies.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHERE FIELDNM = 'ERSDA'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;MOVE-CORRESPONDING L_S_SELECT TO L_R_ERSDA.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Move the entries in the l_s_select into a table with the same field.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;APPEND L_R_ERSDA.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;Appending the entries into the table.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u give the declaration for l_s_select and s_s_if.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950897#M391716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T05:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950898#M391717</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;ya it will move the record based on Field name 'ERSDA'  into the work area .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950898#M391717</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-02-13T05:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950899#M391718</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;S_S_IF is an internal table which in turn should contain an internal table called t_select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically,the code is looping the internal table t_select if the field fieldnam = 'ERSDA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each record satisfying the condition,it is placing the record in work area l_s_select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then inside the loop,it's moving the similar field of work area l_s_select to l_r_ersda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After moving the correspodning values,it is appending the values to the internal table l_r_ersda from the work area l_r_ersda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 05:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-doubt/m-p/1950899#M391718</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-02-13T05:18:27Z</dc:date>
    </item>
  </channel>
</rss>

