<?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 parameterizing data objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230061#M139095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working ion a process where I have to total the credit and debit fields of the structure skc1a depending on the posting period that the user supplies. I think I can accomplish this with the DO/ENDDO process but i have a question concerning data object names. I would like to something like this and I am not sure if this will work or this is the right approach to handle this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_poper id the object that the user has entered. this is the posting period that the data is be accumalated for. amount will be totaled beginning with period 1 and ending with period p_poper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_ctr = 00.&lt;/P&gt;&lt;P&gt;do p_poper times&lt;/P&gt;&lt;P&gt;   w_ctr = w_ctr + 1.&lt;/P&gt;&lt;P&gt;  &amp;lt;i&amp;gt;hopefully w_ctr will be 01&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;  w_totcred = w_totcred + iskc1a-um&amp;lt;b&amp;gt;w_ctr&amp;lt;/b&amp;gt;s.&lt;/P&gt;&lt;P&gt; enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2006 18:23:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-30T18:23:35Z</dc:date>
    <item>
      <title>parameterizing data objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230061#M139095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working ion a process where I have to total the credit and debit fields of the structure skc1a depending on the posting period that the user supplies. I think I can accomplish this with the DO/ENDDO process but i have a question concerning data object names. I would like to something like this and I am not sure if this will work or this is the right approach to handle this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_poper id the object that the user has entered. this is the posting period that the data is be accumalated for. amount will be totaled beginning with period 1 and ending with period p_poper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_ctr = 00.&lt;/P&gt;&lt;P&gt;do p_poper times&lt;/P&gt;&lt;P&gt;   w_ctr = w_ctr + 1.&lt;/P&gt;&lt;P&gt;  &amp;lt;i&amp;gt;hopefully w_ctr will be 01&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;  w_totcred = w_totcred + iskc1a-um&amp;lt;b&amp;gt;w_ctr&amp;lt;/b&amp;gt;s.&lt;/P&gt;&lt;P&gt; enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 18:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230061#M139095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T18:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: parameterizing data objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230062#M139096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timothy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data: w_ctr(2) type n.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:  &amp;lt;comp&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;data: comp_ctr type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comp_ctr = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do p_poper times&lt;/P&gt;&lt;P&gt;  assign component comp_ctr of structure iskc1a to &amp;lt;comp&amp;gt;.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  w_totcred = w_totcred + &amp;lt;comp&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  comp_ctr = comp_ctr + 5.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 18:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230062#M139096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T18:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: parameterizing data objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230063#M139097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the help on DO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF WORD, 
        ONE   VALUE 'E', 
        TWO   VALUE 'x', 
        THREE VALUE 'a', 
        FOUR  VALUE 'm', 
        FIVE  VALUE 'p', 
        SIX   VALUE 'l', 
        SEVEN VALUE 'e', 
        EIGHT VALUE '!', 
      END   OF WORD, 
      LETTER1, LETTER2. 
DO VARYING LETTER1 FROM WORD-ONE NEXT WORD-THREE 
   VARYING LETTER2 FROM WORD-TWO NEXT WORD-FOUR. 
  WRITE: LETTER1, LETTER2. 
  IF LETTER2 = '!'. 
    EXIT. 
  ENDIF. 
ENDDO. 



The resulting output is the character string 

"E x a m p l e !".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This may be what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 18:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230063#M139097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T18:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: parameterizing data objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230064#M139098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An easier example would be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      do 16 times
          varying amount from actuals_int-hsl01 next actuals_int-hsl02.
        total = total + amount.
      enddo.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 18:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230064#M139098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T18:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: parameterizing data objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230065#M139099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timothy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you resolved your issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, plz provide more details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 20:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230065#M139099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T20:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: parameterizing data objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230066#M139100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have resolved my issue. I am using the following code and it is successful.  thanks to all who helped me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_cramount = 0.&lt;/P&gt;&lt;P&gt;      w_dbamount = 0.&lt;/P&gt;&lt;P&gt;      w_totcred  = 0.&lt;/P&gt;&lt;P&gt;      w_totdeb   = 0.&lt;/P&gt;&lt;P&gt;      do p_poper times&lt;/P&gt;&lt;P&gt;        varying w_cramount from iskc1a-um01s next iskc1a-um02s.&lt;/P&gt;&lt;P&gt;        w_totcred = w_totcred + w_cramount.&lt;/P&gt;&lt;P&gt;      enddo.&lt;/P&gt;&lt;P&gt;      do p_poper times&lt;/P&gt;&lt;P&gt;        varying w_dbamount from iskc1a-um01h next iskc1a-um02h.&lt;/P&gt;&lt;P&gt;        w_totdeb  = w_totdeb  + w_dbamount.&lt;/P&gt;&lt;P&gt;     enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 20:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameterizing-data-objects/m-p/1230066#M139100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T20:21:17Z</dc:date>
    </item>
  </channel>
</rss>

