<?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 to update HR objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795643#M652573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use the below code for inserting records to &lt;/P&gt;&lt;P&gt;infotype p0006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lock Pernr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            number = dt_0006-pernr&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return = dg_return_struc0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            INFTY          = '0006'&lt;/P&gt;&lt;P&gt;            NUMBER         = dt_0006-pernr&lt;/P&gt;&lt;P&gt;            SUBTYPE        = P0006-ANSSA&lt;/P&gt;&lt;P&gt;            VALIDITYEND    = P0006-ENDDA&lt;/P&gt;&lt;P&gt;            VALIDITYBEGIN  = P0006-BEGDA&lt;/P&gt;&lt;P&gt;            RECORD         = P0006&lt;/P&gt;&lt;P&gt;            OPERATION      = 'INS'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            RETURN         = dg_return_struc1&lt;/P&gt;&lt;P&gt;            KEY            = dg_record_key&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS         = 0.&lt;/P&gt;&lt;P&gt;  if not  dg_return_struc1 is initial.&lt;/P&gt;&lt;P&gt;    dt_final-mess = dg_return_struc1-message.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    dt_final-mess = 'Address Record added successfully'(014).&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; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlock Pernr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            number = dt_0006-pernr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to create new infotype then see the link below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/hr/infotypehome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/hr/infotypehome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2007 09:43:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-07T09:43:17Z</dc:date>
    <item>
      <title>fm to update HR objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795641#M652571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create and update HR PD data (transaction PP01). I want to use a fm instead of batch input. Can I use fm HR_INFOTYPE_OPERATION or is there another one for PD infotypes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795641#M652571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: fm to update HR objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795642#M652572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function call HR_INFOTYPE_OPERATION cannot be used to maintain PD Objects.. You can do a wildcard search in SE37 for RH_* &amp;amp; look for a function module that suits your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795642#M652572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: fm to update HR objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795643#M652573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use the below code for inserting records to &lt;/P&gt;&lt;P&gt;infotype p0006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Lock Pernr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            number = dt_0006-pernr&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return = dg_return_struc0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            INFTY          = '0006'&lt;/P&gt;&lt;P&gt;            NUMBER         = dt_0006-pernr&lt;/P&gt;&lt;P&gt;            SUBTYPE        = P0006-ANSSA&lt;/P&gt;&lt;P&gt;            VALIDITYEND    = P0006-ENDDA&lt;/P&gt;&lt;P&gt;            VALIDITYBEGIN  = P0006-BEGDA&lt;/P&gt;&lt;P&gt;            RECORD         = P0006&lt;/P&gt;&lt;P&gt;            OPERATION      = 'INS'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            RETURN         = dg_return_struc1&lt;/P&gt;&lt;P&gt;            KEY            = dg_record_key&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS         = 0.&lt;/P&gt;&lt;P&gt;  if not  dg_return_struc1 is initial.&lt;/P&gt;&lt;P&gt;    dt_final-mess = dg_return_struc1-message.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    dt_final-mess = 'Address Record added successfully'(014).&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; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlock Pernr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            number = dt_0006-pernr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to create new infotype then see the link below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/hr/infotypehome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/hr/infotypehome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795643#M652573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: fm to update HR objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795644#M652574</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;we can also use &amp;lt;b&amp;gt;HR_MAINTAIN_MASTERDATA&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report test.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_return  type bapireturn,&lt;/P&gt;&lt;P&gt;  t_return1 type bapireturn1,&lt;/P&gt;&lt;P&gt;  t_hr      type HRHRMM_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_pprop type table of PPROP with header line,&lt;/P&gt;&lt;P&gt;  PSKEY type table of PSKEY with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_pprop-infty = '0002'.&lt;/P&gt;&lt;P&gt;t_pprop-FNAME = 'P0002-VORNA'.&lt;/P&gt;&lt;P&gt;t_pprop-fval = 'X'.&lt;/P&gt;&lt;P&gt;t_pprop-seqnr = '0'.&lt;/P&gt;&lt;P&gt;append t_pprop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_pprop-infty = '0002'.&lt;/P&gt;&lt;P&gt;t_pprop-FNAME = 'P0002-NACHN'.&lt;/P&gt;&lt;P&gt;t_pprop-fval = 'P'.&lt;/P&gt;&lt;P&gt;t_pprop-seqnr = '0'.&lt;/P&gt;&lt;P&gt;append t_pprop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   PERNR                    = '00001259'&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  MASSN                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   ACTIO                    = 'MOD'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TCLAS                    = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   BEGDA                    = '19621212'&lt;/P&gt;&lt;P&gt;   ENDDA                    = '99991231'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJPS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEQNR                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPRPS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUBTY                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WERKS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERSG                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERSK                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLANS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIALOG_MODE              = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LUW_MODE                 = '1'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_EXISTENCE_CHECK       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_ENQUEUE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RETURN                   = t_return&lt;/P&gt;&lt;P&gt;   RETURN1                  = t_return1&lt;/P&gt;&lt;P&gt;   HR_RETURN                = t_hr&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    proposed_values         = t_pprop&lt;/P&gt;&lt;P&gt;   MODIFIED_KEYS            =  PSKEY&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795644#M652574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: fm to update HR objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795645#M652575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@skk &amp;amp; @Rammohan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PL do not post wrong answers.. Neither HR_INFOTYPE_OPERATION nor HR_MAINTAIN_MASTERDATA can be used for maintaining PD Infotypes. PL read the question carefully before posting replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-update-hr-objects/m-p/2795645#M652575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:07:37Z</dc:date>
    </item>
  </channel>
</rss>

