<?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: hi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209734#M765198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ramya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Declare a structure like the table u want to update, and use modify statement to update ur Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify Z*#^% from Itab.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab will have the data u wanted to update.... U can use index to place data in a specific location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if u think usefull...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;jackandjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2007 16:24:26 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2007-12-07T16:24:26Z</dc:date>
    <item>
      <title>hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209733#M765197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have created a ztable with the fields same as my selection screen fields. i need to populate my ztable the data which i am giving in the selection screen when i execute the program.(only the values which are given in the selectionscreen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_data2,&lt;/P&gt;&lt;P&gt;ryear like zupi5t-ryear, "Fiscal year&lt;/P&gt;&lt;P&gt;rbukrs like zupi5t-rbukrs, "Company code&lt;/P&gt;&lt;P&gt;racct like zupi5t-racct, "Account number&lt;/P&gt;&lt;P&gt;rzzps_posid like zupi5t-rzzps_posid, "WBS element&lt;/P&gt;&lt;P&gt;end of ty_data2.&lt;/P&gt;&lt;P&gt;types: begin of ty_final1,&lt;/P&gt;&lt;P&gt;ryear like zupi5t-ryear, "Fiscal year&lt;/P&gt;&lt;P&gt;rbukrs like zupi5t-rbukrs, "Company code&lt;/P&gt;&lt;P&gt;racct like zupi5t-racct, "Account number&lt;/P&gt;&lt;P&gt;rzzps_posid like zupi5t-rzzps_posid, "WBS element&lt;/P&gt;&lt;P&gt;end of ty_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_data2 type standard table of ty_data2,&lt;/P&gt;&lt;P&gt;i_final1 type standard table of ty_final1,&lt;/P&gt;&lt;P&gt;wa_data2 type ty_data2,&lt;/P&gt;&lt;P&gt;wa_final1 type ty_final1.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_ryear like zupi5t-ryear obligatory. "Fiscal year&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;s_rpmax for zupi5t-rpmax obligatory no-extension. "Period&lt;/P&gt;&lt;P&gt;s_racct for zupi5t-racct obligatory, "Account number&lt;/P&gt;&lt;P&gt;s_rzzps for zupi5t-rzzps_posid obligatory no intervals, "WBS Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ryear rbukrs racct rzzps_posid&lt;/P&gt;&lt;P&gt;from zupi5a&lt;/P&gt;&lt;P&gt;into table i_data2&lt;/P&gt;&lt;P&gt;where ryear = p_ryear&lt;/P&gt;&lt;P&gt;and POPER in s_rpmax&lt;/P&gt;&lt;P&gt;and rbukrs = p_rbukrs&lt;/P&gt;&lt;P&gt;and racct in s_racct&lt;/P&gt;&lt;P&gt;and rzzps_posid in s_rzzps.&lt;/P&gt;&lt;P&gt;loop at i_data2 into wa_data2.&lt;/P&gt;&lt;P&gt;wa_final1-ryear = wa_data2-ryear.&lt;/P&gt;&lt;P&gt;wa_final1-rbukrs = wa_data2-rbukrs.&lt;/P&gt;&lt;P&gt;wa_final1-racct = wa_data2-racct.&lt;/P&gt;&lt;P&gt;wa_final1-rzzps_posid = wa_data2-rzzps_posid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final1 to i_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : wa_final1-ryear,&lt;/P&gt;&lt;P&gt;wa_final1-rbukrs, wa_final-racct,&lt;/P&gt;&lt;P&gt;wa_final1-rzzps_posid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_final1 into wa_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATICS v_cnt(5) type n.&lt;/P&gt;&lt;P&gt; clear zfirestate_log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_cnt = v_cnt + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move v_cnt                  to zfirestate_log-cnt.&lt;/P&gt;&lt;P&gt;move wa_final1-ryear to zfirestate_log-ryear.&lt;/P&gt;&lt;P&gt;move wa_final1-rbukrs to zfirestate_log-rbukrs.&lt;/P&gt;&lt;P&gt;move wa_final1-rzzps_posid to zfirestate_log-rzzps_posid.&lt;/P&gt;&lt;P&gt;move s_rpmax-low to zfirestate_log-from_period.&lt;/P&gt;&lt;P&gt;move s_rpmax-high to zfirestate_log-to_period.&lt;/P&gt;&lt;P&gt;move s_racct-low to zfirestate_log-from_acct.&lt;/P&gt;&lt;P&gt;move s_racct-high to zfirestate_log-to_acct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert zfirestate_log.&lt;/P&gt;&lt;P&gt;clear wa_final1.&lt;/P&gt;&lt;P&gt;endoop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i written the above code . i dont know whether to write this select query or not because i need to populate the table only with the data given in the selection scrren. problem is i am getting duplicate entries in the ztable which i dont want .please help me i need this very urgently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 15:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209733#M765197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209734#M765198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ramya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Declare a structure like the table u want to update, and use modify statement to update ur Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify Z*#^% from Itab.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab will have the data u wanted to update.... U can use index to place data in a specific location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if u think usefull...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;jackandjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 16:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209734#M765198</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2007-12-07T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209735#M765199</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;You have mentioned a different Ztable to select data in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reduce the duplicate entries you can try any of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use the primary keys.&lt;/P&gt;&lt;P&gt;2. You can sort the internal table using the primary keys. Then you can delete the duplicate entries using the following command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DELETE ADJACENT DUPLICATES FROM itab &lt;/P&gt;&lt;P&gt;             [COMPARING { comp1 comp2 ...}|{ALL FIELDS}]... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will delete the duplicated entries in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Rewards points for useful answer.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 16:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209735#M765199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T16:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209736#M765200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of insert try using modify stmt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 05:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3209736#M765200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T05:12:54Z</dc:date>
    </item>
  </channel>
</rss>

