<?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 Main PERNR BUG? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-pernr-bug/m-p/6525768#M1425822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have concurrent employment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a new hired employee who stared on 01/04/2010 and has been assigned a main personnel assignmentPERNR( on joining date and the same employee has a different future additional assignment (NEW PERNR)of 01/22/2010. This has been maintained correctly in IT0000.&lt;/P&gt;&lt;P&gt;Now, in one of the reports, we have the below logic:&lt;/P&gt;&lt;P&gt;GET peras.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;Get data for POSITION File&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;Get the current 0712 record&lt;/P&gt;&lt;P&gt;  rp_provide_from_frst p0712 space pn-begda pn-endda.  &lt;/P&gt;&lt;P&gt;  IF pnp-sw-found EQ 1.&lt;/P&gt;&lt;P&gt;    MOVE p0712-main_pernr  TO t_seamsposition-personind.&lt;/P&gt;&lt;P&gt;    IF p0712-pernr EQ p0712-main_pernr.&lt;/P&gt;&lt;P&gt;      t_seamsposition-flag = '1'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      t_seamsposition-flag = '0'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program writes a record for each assignment an employee has.  It uses u201CFuture as of todayu201D.  pn-bega is today and pn-endda is 99991231.  It tries to set an indicator on the record to tell if that record is the main assignment.  In last nightu2019s run, both records had the flag set to 1.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 15:05:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-21T15:05:34Z</dc:date>
    <item>
      <title>Main PERNR BUG?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-pernr-bug/m-p/6525768#M1425822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have concurrent employment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a new hired employee who stared on 01/04/2010 and has been assigned a main personnel assignmentPERNR( on joining date and the same employee has a different future additional assignment (NEW PERNR)of 01/22/2010. This has been maintained correctly in IT0000.&lt;/P&gt;&lt;P&gt;Now, in one of the reports, we have the below logic:&lt;/P&gt;&lt;P&gt;GET peras.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;Get data for POSITION File&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;Get the current 0712 record&lt;/P&gt;&lt;P&gt;  rp_provide_from_frst p0712 space pn-begda pn-endda.  &lt;/P&gt;&lt;P&gt;  IF pnp-sw-found EQ 1.&lt;/P&gt;&lt;P&gt;    MOVE p0712-main_pernr  TO t_seamsposition-personind.&lt;/P&gt;&lt;P&gt;    IF p0712-pernr EQ p0712-main_pernr.&lt;/P&gt;&lt;P&gt;      t_seamsposition-flag = '1'.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      t_seamsposition-flag = '0'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program writes a record for each assignment an employee has.  It uses u201CFuture as of todayu201D.  pn-bega is today and pn-endda is 99991231.  It tries to set an indicator on the record to tell if that record is the main assignment.  In last nightu2019s run, both records had the flag set to 1.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 15:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-pernr-bug/m-p/6525768#M1425822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Main PERNR BUG?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-pernr-bug/m-p/6525769#M1425823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem is not very clear, i am not sure but you can check after the following change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace this line&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;rp_provide_from_frst p0712 space pn-begda pn-endda.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this one&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;rp_provide_from_last p0712 space pn-begda pn-endda.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 16:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-pernr-bug/m-p/6525769#M1425823</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2010-01-21T16:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Main PERNR BUG?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-pernr-bug/m-p/6525770#M1425824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if infotype PA0712 has any subtypes defined.&lt;/P&gt;&lt;P&gt;if so you need to give subtype as well while using the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also in order to get the latest value use &lt;STRONG&gt;&amp;lt;last&amp;gt;&lt;/STRONG&gt; instead of frst in the macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rp_provide_from_&lt;STRONG&gt;last&lt;/STRONG&gt; p0712 &amp;lt;subtype&amp;gt; pn-begda pn-endda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 18:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-pernr-bug/m-p/6525770#M1425824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T18:55:18Z</dc:date>
    </item>
  </channel>
</rss>

