<?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: help required on  append statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072541#M95242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just hav a look on the code.&lt;/P&gt;&lt;P&gt;i posted entire code.&lt;/P&gt;&lt;P&gt;empm is like BAPI7013_4&lt;/P&gt;&lt;P&gt;t q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2005 12:28:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-21T12:28:37Z</dc:date>
    <item>
      <title>help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072535#M95236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my code look like this:- &lt;/P&gt;&lt;P&gt;data: empm like  BAPI7013_4 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      time like  BAPI7013_1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: reg_hours like time-REGULARHOURS,&lt;/P&gt;&lt;P&gt;      abs_hours like time-ABSENCEHOURS,&lt;/P&gt;&lt;P&gt;      overtime_hours like time-OVERTIMEHOURS,&lt;/P&gt;&lt;P&gt;      hours_work like time.&lt;/P&gt;&lt;P&gt; append all the employees&lt;/P&gt;&lt;P&gt;empm-EMPLOYEENUMBER = '00071630'.&lt;/P&gt;&lt;P&gt;append empm.&lt;/P&gt;&lt;P&gt;clear empm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for only employee number 71630.&lt;/P&gt;&lt;P&gt;Now, i want  LOOP OVER EVERY EMPLOYEE  AND APPEND TO THE TABLE EMPM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should i do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 11:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072535#M95236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T11:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072536#M95237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the employee data? Is it in a internal table, then loop at that table and append it as you want. If it is there in the database table, use a SELECT get into a internal table and loop at the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give more details?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 11:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072536#M95237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T11:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072537#M95238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select pernr into table empm from pa0001 ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 11:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072537#M95238</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-10-21T11:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072538#M95239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to get all the employee numbers in an internal table first....say itab..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u have various options...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;emp-empnr  = itab-empnr.&lt;/P&gt;&lt;P&gt;append emp.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if fieldname is same in both itab and emp then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab[] to emp[].&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;insert lines of itab [from idx1 to idx2] into table emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) if tables have same structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;emp[] = itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 11:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072538#M95239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T11:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072539#M95240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai..i am just posting the code . hav a look on this.&lt;/P&gt;&lt;P&gt;i want to calculate the no. of hours worked for all the employees that are in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code is for the selected employee&lt;/P&gt;&lt;P&gt;data: empm like  BAPI7013_4 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      time like  BAPI7013_1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: reg_hours like time-REGULARHOURS,&lt;/P&gt;&lt;P&gt;      abs_hours like time-ABSENCEHOURS,&lt;/P&gt;&lt;P&gt;      overtime_hours like time-OVERTIMEHOURS,&lt;/P&gt;&lt;P&gt;      hours_work like time.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;append all the employees&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;empm-EMPLOYEENUMBER = '00071630'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;append empm.&lt;/P&gt;&lt;P&gt;clear empm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PTIMEOVERVIEW_GET'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FROMDATE             =  '20051001'&lt;/P&gt;&lt;P&gt;    TODATE               =  '20051031'&lt;/P&gt;&lt;P&gt;    EXTAPPLICATION       =  ' '&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    EMPLOYEES            = empm&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TIMETYPES            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TIMEOVERVIEW         = time&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TIMETYPEVALUES       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;  loop at time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     reg_hours = time-REGULARHOURS + reg_hours.&lt;/P&gt;&lt;P&gt;     abs_hours = time-ABSENCEHOURS + abs_hours.&lt;/P&gt;&lt;P&gt;     overtime_hours = time-OVERTIMEHOURS + overtime_hours.&lt;/P&gt;&lt;P&gt;     hours_work = ( reg_hours - abs_hours ) + overtime_hours.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write: / reg_hours.&lt;/P&gt;&lt;P&gt;  write: / abs_hours.&lt;/P&gt;&lt;P&gt;  write: / overtime_hours.&lt;/P&gt;&lt;P&gt;  write: / hours_work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to LOOP OVER EVERY EMPLOYEE  AND APPEND TO THE TABLE EMPM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 11:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072539#M95240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T11:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072540#M95241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you are getting what everyone is asking. We understand that you want to calculate the no. of hours for all the employees. However, where is the employees data? If you have not selected the same the DB, you need to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t_pa001 type table of pa001.&lt;/P&gt;&lt;P&gt;DATA : workarea type pa001&lt;/P&gt;&lt;P&gt;SELECT (Fields) from PA001.&lt;/P&gt;&lt;P&gt;loop at pa001 into workarea.&lt;/P&gt;&lt;P&gt;empm-EMPLOYEENUMBER = workarea-pernr.&lt;/P&gt;&lt;P&gt;append empm.&lt;/P&gt;&lt;P&gt;clear empm.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try the above code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 11:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072540#M95241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T11:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072541#M95242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just hav a look on the code.&lt;/P&gt;&lt;P&gt;i posted entire code.&lt;/P&gt;&lt;P&gt;empm is like BAPI7013_4&lt;/P&gt;&lt;P&gt;t q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 12:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072541#M95242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T12:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: help required on  append statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072542#M95243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please tell how to get all emp records in to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please help on the code..which i posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2005 12:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-required-on-append-statement/m-p/1072542#M95243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-21T12:40:23Z</dc:date>
    </item>
  </channel>
</rss>

