<?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 Reg :Payroll calculation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-payroll-calculation/m-p/1976228#M399871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;I have used the function module cd_read_last and I have passed the seqno of the rgdir table into out_seqno.&lt;/P&gt;&lt;P&gt;But after that fm is executed , sy-subrc is 1, that is it is saying that there is no record  and the value of the imported variable is 0.&lt;/P&gt;&lt;P&gt;But I am having 16 records in rgdir with seqno read properly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 12:47:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T12:47:02Z</dc:date>
    <item>
      <title>Reg :Payroll calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-payroll-calculation/m-p/1976228#M399871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;I have used the function module cd_read_last and I have passed the seqno of the rgdir table into out_seqno.&lt;/P&gt;&lt;P&gt;But after that fm is executed , sy-subrc is 1, that is it is saying that there is no record  and the value of the imported variable is 0.&lt;/P&gt;&lt;P&gt;But I am having 16 records in rgdir with seqno read properly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 12:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-payroll-calculation/m-p/1976228#M399871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T12:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg :Payroll calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-payroll-calculation/m-p/1976229#M399872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sowmya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that FM  OUT_SEQNR is imporing parameter.&lt;/P&gt;&lt;P&gt;The FM will export latest seqnr to that variable.&lt;/P&gt;&lt;P&gt;After u can pass this variable to other FM to get payroll result corresponding to &lt;/P&gt;&lt;P&gt;that seqnr.So declare a new variable and pass that one to OUT_SEQNR parameter.&lt;/P&gt;&lt;P&gt;Just go see the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA V_SEQNR TYPE PC261-SEQNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CD_READ_LAST'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    BEGIN_DATE            =  PN_BEGDA&lt;/P&gt;&lt;P&gt;    END_DATE               =  PNENDA&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUT_SEQNR             = V_SEQNR&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    RGDIR                 = IT_RGDIR&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    NO_RECORD_FOUND       = 1&lt;/P&gt;&lt;P&gt;    OTHERS                = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 13:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-payroll-calculation/m-p/1976229#M399872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T13:09:42Z</dc:date>
    </item>
  </channel>
</rss>

