<?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: Programmatically create a relationship between two positions in HR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494791#M1063719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no option for any test mode kind of thing in this FM.....all the validations kind of thing must be done before using this FM in the report....this FM internally performs an BDC....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the errors u usuall get,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.invalid date(date format),&lt;/P&gt;&lt;P&gt;2.wrong data(objid,relationship,relat,rsign),&lt;/P&gt;&lt;P&gt;3 Costcenter mismatch,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When assigning employee to position these validations must be done...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.employee too far into past(this happens due to difference in payroll control period and employee control period),&lt;/P&gt;&lt;P&gt;5.PA lock,&lt;/P&gt;&lt;P&gt;6.ESS lock.&lt;/P&gt;&lt;P&gt;7.Payroll lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here,&lt;/P&gt;&lt;P&gt;2 and 3 can be changed while we execute,&lt;/P&gt;&lt;P&gt;4 can be changed by changing the date,&lt;/P&gt;&lt;P&gt;5 &amp;amp;  6 should be validated in our report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2008 12:34:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-04T12:34:34Z</dc:date>
    <item>
      <title>Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494785#M1063713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement to create relationships in HRP1001 between two given positions with a start and end date.&lt;/P&gt;&lt;P&gt;I need to write an upload program to do this but want to avoid Batch Input if possible.&lt;/P&gt;&lt;P&gt;Are there any relevant function modules that can do what transaction PP01 does?&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 09:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494785#M1063713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494786#M1063714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try Fm RH_RELATION_MAINTAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5298905"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 09:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494786#M1063714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T09:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494787#M1063715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope the below link will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="293277"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khushboo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 09:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494787#M1063715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T09:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494788#M1063716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_MAINTAIN INTO WA_MAINTAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WA_MAINTAIN-FCODE = 'INSE'.&lt;/P&gt;&lt;P&gt;    WA_MAINTAIN-PLVAR = '01'.&lt;/P&gt;&lt;P&gt;    WA_MAINTAIN-ISTAT = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Relate account to project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF WA_MAINTAIN-OTYPE = 'O' AND WA_MAINTAIN-SCLAS = 'O'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RSIGN = 'B'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RELAT = '002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Relate position to project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSEIF WA_MAINTAIN-OTYPE = 'O' AND WA_MAINTAIN-SCLAS = 'S'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RSIGN = 'B'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RELAT = '003'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Relate job to position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'C'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RSIGN = 'B'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RELAT = '007'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Relate employee to position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'P'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RSIGN = 'A'.&lt;/P&gt;&lt;P&gt;      WA_MAINTAIN-RELAT = '008'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Relate position to position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'S'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;WA_MAINTAIN-RSIGN = 'A'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;WA_MAINTAIN-RELAT = '002'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    WA_MAINTAIN-ENDDA = '99991231'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FM to create relationship&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RH_RELATION_MAINTAIN'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        ACT_FCODE           = WA_MAINTAIN-FCODE&lt;/P&gt;&lt;P&gt;        ACT_PLVAR           = WA_MAINTAIN-PLVAR&lt;/P&gt;&lt;P&gt;        ACT_OTYPE           = WA_MAINTAIN-OTYPE&lt;/P&gt;&lt;P&gt;        ACT_OBJID           = WA_MAINTAIN-OBJID&lt;/P&gt;&lt;P&gt;        ACT_ISTAT           = WA_MAINTAIN-ISTAT&lt;/P&gt;&lt;P&gt;        ACT_RSIGN           = WA_MAINTAIN-RSIGN&lt;/P&gt;&lt;P&gt;        ACT_RELAT           = WA_MAINTAIN-RELAT&lt;/P&gt;&lt;P&gt;        ACT_SCLAS           = WA_MAINTAIN-SCLAS&lt;/P&gt;&lt;P&gt;        ACT_SOBID           = WA_MAINTAIN-SOBID&lt;/P&gt;&lt;P&gt;        ACT_BEGDA           = WA_MAINTAIN-BEGDA&lt;/P&gt;&lt;P&gt;        ACT_ENDDA           = WA_MAINTAIN-ENDDA&lt;/P&gt;&lt;P&gt;        ACT_PROZT           = WA_MAINTAIN-PROZT&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        MAINTAINANCE_FAILED = 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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WRITE : WA_INPUT-OBJID.&lt;/P&gt;&lt;/LI&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;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 09:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494788#M1063716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T09:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494789#M1063717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;STRONG&gt;RH_OM_PP01_INFTY_CHECK&lt;/STRONG&gt; function module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 09:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494789#M1063717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494790#M1063718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thyagu,&lt;/P&gt;&lt;P&gt;This is really useful.&lt;/P&gt;&lt;P&gt;Does this FM allow you to run it in test mode so errors can be detected before calling it for real.&lt;/P&gt;&lt;P&gt;I cannot see any parameters that allow me to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found FM RH_INSERT_INFTY which seems to allow me to do this but I get an error when calling it.&lt;/P&gt;&lt;P&gt;"Error during insert"&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 11:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494790#M1063718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T11:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494791#M1063719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no option for any test mode kind of thing in this FM.....all the validations kind of thing must be done before using this FM in the report....this FM internally performs an BDC....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the errors u usuall get,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.invalid date(date format),&lt;/P&gt;&lt;P&gt;2.wrong data(objid,relationship,relat,rsign),&lt;/P&gt;&lt;P&gt;3 Costcenter mismatch,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When assigning employee to position these validations must be done...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.employee too far into past(this happens due to difference in payroll control period and employee control period),&lt;/P&gt;&lt;P&gt;5.PA lock,&lt;/P&gt;&lt;P&gt;6.ESS lock.&lt;/P&gt;&lt;P&gt;7.Payroll lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here,&lt;/P&gt;&lt;P&gt;2 and 3 can be changed while we execute,&lt;/P&gt;&lt;P&gt;4 can be changed by changing the date,&lt;/P&gt;&lt;P&gt;5 &amp;amp;  6 should be validated in our report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2008 12:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494791#M1063719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-04T12:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494792#M1063720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thyagu,&lt;/P&gt;&lt;P&gt;Are there any function modules that can be used for performing validations on the proposed relationships before calling RH_RELATION_MAINTAIN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried FM RH_INSERT_INFTY. This FM allows the setting of a test mode but this doesn't seem to work and actually creates the relationships regardless of any master data existing whereas RH_RELATION_MAINTAIN does at least throw an error is a position does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 13:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494792#M1063720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494793#M1063721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is no FM for performing validations....u can just test whether an position exist or not...in FM RH_SELECT_OBJECTS_FOR_OTYPE...through which u can test existence of an object.....there is no FM for testing relationship....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i said before...all the validations can be done before getting into that FM....RH_RELATION_MAINTAIN....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RH_RELATION_MAINTAIN internally performs an BDC of t-code 'PP01'...in proceesing mode &lt;STRONG&gt;'A'&lt;/STRONG&gt;(display of screens)...hence u can change while executing it.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thyagu.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 15:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494793#M1063721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically create a relationship between two positions in HR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494794#M1063722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thyagu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 15:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-create-a-relationship-between-two-positions-in-hr/m-p/4494794#M1063722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T15:51:46Z</dc:date>
    </item>
  </channel>
</rss>

