<?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: FM Definitions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324124#M796240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HR_PCIF_RETRO_DATE_POSSIBLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives you the payroll details for the mentioned date &amp;amp; emp number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward the points for usefull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 11:51:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T11:51:20Z</dc:date>
    <item>
      <title>FM Definitions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324122#M796238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just wanna ask, &lt;/P&gt;&lt;P&gt;what do these FMs do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA03_PCR_READ&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;HR_PCIF_RETRO_DATE_POSSIBLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 11:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324122#M796238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T11:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: FM Definitions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324123#M796239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the function module PA03_PCR_READ to get the current period and dates for a particular payroll area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 11:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324123#M796239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: FM Definitions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324124#M796240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HR_PCIF_RETRO_DATE_POSSIBLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives you the payroll details for the mentioned date &amp;amp; emp number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward the points for usefull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 11:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324124#M796240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T11:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM Definitions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324125#M796241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;um ok, so what is the F_TWM_DATE in it's export parameters?&lt;/P&gt;&lt;P&gt;the program i am modifying first took that parameter then later used it for some checking, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF g_retro IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'PA03_PCR_READ'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        f_abkrs               = 'N0'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        f_twm_date            = g_retro&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        abkrs_no_accounting   = 1&lt;/P&gt;&lt;P&gt;        pcr_does_not_exist    = 2&lt;/P&gt;&lt;P&gt;        abkrs_does_not_exist  = 3&lt;/P&gt;&lt;P&gt;        period_does_not_exist = 4&lt;/P&gt;&lt;P&gt;        OTHERS                = 5.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check start date with earliest retro date for payroll area:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF wa_input-begda &amp;lt; g_retro.&lt;/P&gt;&lt;P&gt;      g_reject = g_reject + 1.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_APPEND_ERROR_LIST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          pernr = wa_input-pernr&lt;/P&gt;&lt;P&gt;          arbgb = 'ZNLI'&lt;/P&gt;&lt;P&gt;          msgty = 'E'&lt;/P&gt;&lt;P&gt;          msgno = '011'&lt;/P&gt;&lt;P&gt;          msgv1 = wa_input-begda.&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'HR_PCIF_RETRO_DATE_POSSIBLE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        employeenumber    = wa_input-pernr&lt;/P&gt;&lt;P&gt;        date              = wa_input-begda&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        no_retro_possible = 1&lt;/P&gt;&lt;P&gt;        OTHERS            = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      g_reject = g_reject + 1.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_APPEND_ERROR_LIST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          pernr = wa_input-pernr&lt;/P&gt;&lt;P&gt;          arbgb = 'ZNLI'&lt;/P&gt;&lt;P&gt;          msgty = 'E'&lt;/P&gt;&lt;P&gt;          msgno = '011'&lt;/P&gt;&lt;P&gt;          msgv1 = wa_input-begda.&lt;/P&gt;&lt;P&gt;      CONTINUE.&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;why was he checking the wa_input-begda with the g_retro?&lt;/P&gt;&lt;P&gt;what was he trying to find out?&lt;/P&gt;&lt;P&gt;he said in the comment:&lt;/P&gt;&lt;P&gt;"Check start date with earliest retro date for payroll area"&lt;/P&gt;&lt;P&gt;why would he try to check that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;laure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 11:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324125#M796241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: FM Definitions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324126#M796242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The area payroll IT_ORG-PAYAREA opening the IT 0001. &lt;/P&gt;&lt;P&gt;La respuesta es el estado y el período de nómina actual. The answer is the state and the current payroll period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can validate whether the payroll period coincides with the current date (in this example, in dividia month and year P_MONTH and P_YEAR respectively). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'PA03_PCR_READ' FUNCTION CALL 'PA03_PCR_READ' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;F_ABKRS = IT_ORG-PAYAREA F_ABKRS = IT_ORG-PAYAREA &lt;/P&gt;&lt;P&gt;ERROR_NO_ACCOUNTING = 'X' ERROR_NO_ACCOUNTING = 'X' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;F_STATE = L_STATE F_STATE = L_STATE &lt;/P&gt;&lt;P&gt;F_CURRENT_PERIOD = L_CURRENT_PERIOD F_CURRENT_PERIOD = L_CURRENT_PERIOD &lt;/P&gt;&lt;P&gt;F_CURRENT_YEAR = L_CURRENT_YEAR F_CURRENT_YEAR = L_CURRENT_YEAR &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;ABKRS_NO_ACCOUNTING = 1 ABKRS_NO_ACCOUNTING = 1 &lt;/P&gt;&lt;P&gt;PCR_DOES_NOT_EXIST = 2 PCR_DOES_NOT_EXIST = 2 &lt;/P&gt;&lt;P&gt;ABKRS_DOES_NOT_EXIST = 3 ABKRS_DOES_NOT_EXIST = 3 &lt;/P&gt;&lt;P&gt;PERIOD_DOES_NOT_EXIST = 4 PERIOD_DOES_NOT_EXIST = 4 &lt;/P&gt;&lt;P&gt;OTHERS = 5. OTHERS = 5. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;"Procesar errores!" "Process mistakes!" &lt;/P&gt;&lt;P&gt;ENDIF. &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;HR originaltext="-------------------------------------------" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;VALIDACION DE QUE EL PERIODO NO ESTE EN FIN DE CALCULO. * VALIDATION THAT THIS TIME NO END IN COMPUTATION. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF ( L_STATE &amp;lt;&amp;gt; '3' ) AND ( L_STATE &amp;lt;&amp;gt; '1' ). IF (L_STATE &amp;lt;&amp;gt;'3 ') AND (L_STATE &amp;lt;&amp;gt;'1'). &lt;/P&gt;&lt;P&gt;IF ( L_CURRENT_PERIOD = P_MONTH ) AND IF (L_CURRENT_PERIOD = P_MONTH) AND &lt;/P&gt;&lt;P&gt;( L_CURRENT_YEAR = P_YEAR ). (L_CURRENT_YEAR = P_YEAR). &lt;/P&gt;&lt;P&gt;P_CERRADO =''. P_CERRADO =''. &lt;/P&gt;&lt;P&gt;ELSE. " EL PERIODO NO ES CORRECTO "THE TIME IS NOT PASSED &lt;/P&gt;&lt;P&gt;P_CERRADO ='X'. P_CERRADO = 'X'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ELSE. " EL PERIODO ESTA PROCESADO. "THE TIME THIS PROCESS. &lt;/P&gt;&lt;P&gt;P_CERRADO ='X'. P_CERRADO = 'X'. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDFORM. "PERIORDO_CERRADO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The dates of perídoos payroll in the table T549Q. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 12:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-definitions/m-p/3324126#M796242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T12:03:10Z</dc:date>
    </item>
  </channel>
</rss>

