<?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: ABAP CODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326369#M167108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post the code of the Z function otherwise we would all be guessing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Syd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2006 02:10:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-18T02:10:04Z</dc:date>
    <item>
      <title>ABAP CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326368#M167107</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 anyone please explain what the code below does. It is one that is used in infopackages for dynamic update of selection fields. i want to know the logic behind this code.Thanks in advance&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_idx like sy-tabix.&lt;/P&gt;&lt;P&gt;read table l_t_range with key&lt;/P&gt;&lt;P&gt;fieldname = 'OPTIONSETNAME'.&lt;/P&gt;&lt;P&gt;l_idx = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES:&lt;/P&gt;&lt;P&gt;gr_reso_optionset FOR l_t_range-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_GET_TVARV_VARIABLE_VALUE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;VARIABLE_NAME = 'Z_SCC_SPA_CDM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NUMBER_OF_VALUES =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VARIABLE_RANGE = gr_reso_optionset&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;VARIABLE_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;INVALID_RANGE_TABLE = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&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;loop at gr_reso_optionset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shift gr_reso_optionset by 3 places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_t_range-low = gr_reso_optionset.&lt;/P&gt;&lt;P&gt;l_t_range-high = gr_reso_optionset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append l_t_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_subrc = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 01:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326368#M167107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T01:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326369#M167108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post the code of the Z function otherwise we would all be guessing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Syd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 02:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326369#M167108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T02:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326370#M167109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i GUESS THAT IT IS SETTING UP THE RANGE variable from VALUES from the TVARV table based on the name 'Z_SCC_SPA_CDM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. it gets all values from TVARV for this name and puts them in the range variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 02:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326370#M167109</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-05-18T02:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326371#M167110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;I think something like the following is goning on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The FM 'Z_GET_TVARV_VARIABLE_VALUE' is reading the&lt;/P&gt;&lt;P&gt;  SAP parameter Table TVARV for the parametername&lt;/P&gt;&lt;P&gt;  'Z_SCC_SPA_CDM'&lt;/P&gt;&lt;P&gt;- It gives the values (as used in a selection screen) back in the table variable gr_reso_optionset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The loop shifts the parameters value by 3 places&lt;/P&gt;&lt;P&gt;  (why ??) and puts the shiftet values to the &lt;/P&gt;&lt;P&gt;   variables l_t_range-low and l_t_range-high of the&lt;/P&gt;&lt;P&gt;   internal table l_t_range.&lt;/P&gt;&lt;P&gt;- The loop is obviously only used to do the shifting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some points would be nice if that helped a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 04:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326371#M167110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T04:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326372#M167111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the shift left is being used to 'ignore' the sign and option components of the range. Why it just doesn't refer to the 'low' I don't understand but that's what it's doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 04:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1326372#M167111</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-05-18T04:46:25Z</dc:date>
    </item>
  </channel>
</rss>

