<?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 help with program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-program/m-p/2411531#M537897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow &lt;/P&gt;&lt;P&gt;i have to do a log for pa (interface)and in table fields i have the fields that have change&lt;/P&gt;&lt;P&gt;lets say i have lot of employee and i wont to take employee one at time and check if hire (massn = a1 ) or fire...&lt;/P&gt;&lt;P&gt;what is the best way to take employee and bring all the field that change for him?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HREIC_GET_LOGGED_INFTY_CHANGES'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_log_key = is_log_key&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_infty_modif = et_infty_modif. "here i get table with all employee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT et_infty_modif BY pernr bdate btime infty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT et_infty_modif INTO wa_et_infty_modif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;logged_infotype = wa_et_infty_modif&lt;/P&gt;&lt;P&gt;auth_check = 'X'&lt;/P&gt;&lt;P&gt;use_archive = ' '&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;infty_tab_before = infty_tab_before&lt;/P&gt;&lt;P&gt;infty_tab_after = infty_tab_after&lt;/P&gt;&lt;P&gt;fields = fields.&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 10:04:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T10:04:23Z</dc:date>
    <item>
      <title>help with program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-program/m-p/2411531#M537897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow &lt;/P&gt;&lt;P&gt;i have to do a log for pa (interface)and in table fields i have the fields that have change&lt;/P&gt;&lt;P&gt;lets say i have lot of employee and i wont to take employee one at time and check if hire (massn = a1 ) or fire...&lt;/P&gt;&lt;P&gt;what is the best way to take employee and bring all the field that change for him?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HREIC_GET_LOGGED_INFTY_CHANGES'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;is_log_key = is_log_key&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;et_infty_modif = et_infty_modif. "here i get table with all employee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT et_infty_modif BY pernr bdate btime infty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT et_infty_modif INTO wa_et_infty_modif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;logged_infotype = wa_et_infty_modif&lt;/P&gt;&lt;P&gt;auth_check = 'X'&lt;/P&gt;&lt;P&gt;use_archive = ' '&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;infty_tab_before = infty_tab_before&lt;/P&gt;&lt;P&gt;infty_tab_after = infty_tab_after&lt;/P&gt;&lt;P&gt;fields = fields.&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 10:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-program/m-p/2411531#M537897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T10:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: help with program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-program/m-p/2411532#M537898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can understand is you want to take the employee one by one and want to do a check on the field PA0000-massn = 'A1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have the internal table created in the tables parameter and inputing the data you can create a local work area of the same type as table and then loop  that internal table. In this way you can have one row of information and can check the Action Type field and perform the rest of the necessary business logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wa_pa0000 type pa0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_pa0000 into wa_pa0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/ Necessary Business logic&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;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Samantak Chatterjee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please rewards points if find useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 09:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-program/m-p/2411532#M537898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T09:48:59Z</dc:date>
    </item>
  </channel>
</rss>

