<?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: HR_MAINTAIN_MASTERDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958483#M945823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Sandeep,
Check the following program and do fill ur proposed values table accordingly for the infotype 0105.

just execute and check the result.

&lt;PRE&gt;&lt;CODE&gt;REPORT  zvenkat_notepad3.
TABLES:pernr.
DATA:
      proposed_values   LIKE pprop OCCURS 0 WITH HEADER LINE,
      wa_fval           LIKE pprop-fval,
      rc                LIKE bapireturn,
      rc1               LIKE bapireturn1.


START-OF-SELECTION.

GET pernr.
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-BEGDA'    "Begin date field
                                            '20080528'       "date
                                            '01'.            "First record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-ENDDA'    "End date field
                                            '99991231'       "date
                                            '01'.           "First record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-USRTY'    "Subtype field
                                            '0001'           "Subtype
                                            '01'.            "First record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-USRID'    "User ID field
                                            'VENKAT'         " User Id
                                            '01'.           "First record for the infotype

  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-BEGDA'
                                            '20080528'
                                            '02'.           "2nd record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-ENDDA'
                                            '99991231'
                                            '02'.           "2nd record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-USRTY'
                                            '0010'
                                            '02'.           "2nd record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-USRID'
                                            'venkat.xyz at xyz.com'
                                            '02'.           "2nd record for the infotype
  CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
    EXPORTING
      pernr           = pernr-pernr
      actio           = 'INS'
      tclas           = 'A'
      begda           = sy-datum
    IMPORTING
      return          = rc
      return1         = rc1
    TABLES
      proposed_values = proposed_values.
  IF rc-type &amp;lt;&amp;gt; 'E'.
    WRITE / 'success'.
  ENDIF.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;LOC_PROPOSED_VALUES  text
*      --&amp;gt;INFTY                text
*      --&amp;gt;FNAME                text
*      --&amp;gt;FVAL                 text
*      --&amp;gt;SEQNR                text
*----------------------------------------------------------------------*
FORM fill TABLES loc_proposed_values STRUCTURE pprop
        USING  infty LIKE pprop-infty
               fname LIKE pprop-fname
               fval  LIKE pprop-fval
               seqnr LIKE pprop-seqnr.

  DATA: wa_values LIKE pprop.

  wa_values-infty = infty.
  wa_values-fname = fname.
  wa_values-fval  = fval.
  wa_values-seqnr = seqnr.
  APPEND wa_values TO loc_proposed_values.

ENDFORM.                    "fill&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it solves ur problem.

&lt;STRONG&gt;Regards,&lt;/STRONG&gt;
&lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2008 02:39:09 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2008-05-28T02:39:09Z</dc:date>
    <item>
      <title>HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958481#M945821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using the above FM to create a new pernr in SAP. It is supposed to replicate the PA40 tcode meaning that the hiring process is being automated. The only problem I ran into so far is while creating the USER ID and EMAIL entries on infotype 0105. In PA40, the 1015 screen pops up first with subty '0010' for email and then the next screen is subty '9000' for used id. &lt;/P&gt;&lt;P&gt;The parameters I am passing to the FM is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         PERNR                    = '00000000'&lt;/P&gt;&lt;P&gt;         MASSN                    = IT_CREATE-ACTION&lt;/P&gt;&lt;P&gt;         ACTIO                    = 'INS'&lt;/P&gt;&lt;P&gt;         TCLAS                    = 'A'&lt;/P&gt;&lt;P&gt;         BEGDA                    = EFF_DATE " MM/DD/YYYY&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;/UL&gt;&lt;P&gt;         WERKS                    = IT_CREATE-WERKS&lt;/P&gt;&lt;P&gt;         PERSG                    = IT_CREATE-PERSG&lt;/P&gt;&lt;P&gt;         PERSK                    = IT_CREATE-PERSK&lt;/P&gt;&lt;P&gt;         PLANS                    = OPEN_POS&lt;/P&gt;&lt;P&gt;         DIALOG_MODE              = '1'&lt;/P&gt;&lt;P&gt;         LUW_MODE                 = '1'&lt;/P&gt;&lt;P&gt;         NO_EXISTENCE_CHECK       = 'X'&lt;/P&gt;&lt;P&gt;         NO_ENQUEUE               = ' '&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         RETURN                   = RETURN&lt;/P&gt;&lt;P&gt;         RETURN1                  = RETURN1&lt;/P&gt;&lt;P&gt;         HR_RETURN                = HR_RETURN&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          PROPOSED_VALUES          = PROPOSED_VALUES&lt;/P&gt;&lt;P&gt;          MODIFIED_KEYS            = MODIFIED_KEYS  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table PROPOSED_VALUES has the entries below (the infotypes that need to be created)&lt;/P&gt;&lt;P&gt;                                                                                INFTY      FIELD                       VALUE  &lt;/P&gt;&lt;P&gt;0008        P0008-BET01             2500.00                 &lt;/P&gt;&lt;P&gt;0008        P0008-LGA01             0100                    &lt;/P&gt;&lt;P&gt;0008        P0008-TRFGR             M07                     &lt;/P&gt;&lt;P&gt;0077        P0077-RACKY            VN                      &lt;/P&gt;&lt;P&gt;0077        P0077-ETHEN             E2&lt;/P&gt;&lt;P&gt;0022        P0022-AUSBI              9                       &lt;/P&gt;&lt;P&gt;0007        P0007-SCHKZ             SN 20+                  &lt;/P&gt;&lt;P&gt;0014        P0014-LGART             0051                    &lt;/P&gt;&lt;P&gt;0014        P0014-BETRG            100                     &lt;/P&gt;&lt;P&gt;0019        P0019-TMART             S1                      &lt;/P&gt;&lt;P&gt;0019        P0019-TERMN             20080601                &lt;/P&gt;&lt;P&gt;0094        P0094-RESIS              10                      &lt;/P&gt;&lt;P&gt;0105        P0105-USRID_LONG         &lt;/P&gt;&lt;P&gt;0105        P0105-USRID               JACK                    &lt;/P&gt;&lt;P&gt;0171        P0171-BAREA              01                      &lt;/P&gt;&lt;P&gt;0171        P0171-BENGR              SNHS                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on...                     &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Now, even when I have the required entries listed in the table for Infotype 0105, the infotype is not created with the specified values.&lt;/P&gt;&lt;P&gt;The FM always returns a message saying 'required fields missing'. I later used dialog mode '1' and found that the fields do not get populated only for infotype 0105. They appear blank when control goes to IT 0105. I am unable to figure out why this is happening. The rest of the infotypes are fine. &lt;/P&gt;&lt;P&gt;My only guess is that since IT 0105 has two screen pop up one after the other for different subtypes, the function module is unable to interpret it correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please suggest a solution/work around for this problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All your inputs/suggestiona are greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 23:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958481#M945821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T23:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958482#M945822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User ID is stored in subtype 0001 not in 9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with 0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 23:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958482#M945822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T23:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958483#M945823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Sandeep,
Check the following program and do fill ur proposed values table accordingly for the infotype 0105.

just execute and check the result.

&lt;PRE&gt;&lt;CODE&gt;REPORT  zvenkat_notepad3.
TABLES:pernr.
DATA:
      proposed_values   LIKE pprop OCCURS 0 WITH HEADER LINE,
      wa_fval           LIKE pprop-fval,
      rc                LIKE bapireturn,
      rc1               LIKE bapireturn1.


START-OF-SELECTION.

GET pernr.
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-BEGDA'    "Begin date field
                                            '20080528'       "date
                                            '01'.            "First record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-ENDDA'    "End date field
                                            '99991231'       "date
                                            '01'.           "First record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-USRTY'    "Subtype field
                                            '0001'           "Subtype
                                            '01'.            "First record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'           "Infotype
                                            'P0105-USRID'    "User ID field
                                            'VENKAT'         " User Id
                                            '01'.           "First record for the infotype

  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-BEGDA'
                                            '20080528'
                                            '02'.           "2nd record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-ENDDA'
                                            '99991231'
                                            '02'.           "2nd record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-USRTY'
                                            '0010'
                                            '02'.           "2nd record for the infotype
  PERFORM fill TABLES proposed_values USING '0105'
                                            'P0105-USRID'
                                            'venkat.xyz at xyz.com'
                                            '02'.           "2nd record for the infotype
  CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
    EXPORTING
      pernr           = pernr-pernr
      actio           = 'INS'
      tclas           = 'A'
      begda           = sy-datum
    IMPORTING
      return          = rc
      return1         = rc1
    TABLES
      proposed_values = proposed_values.
  IF rc-type &amp;lt;&amp;gt; 'E'.
    WRITE / 'success'.
  ENDIF.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;LOC_PROPOSED_VALUES  text
*      --&amp;gt;INFTY                text
*      --&amp;gt;FNAME                text
*      --&amp;gt;FVAL                 text
*      --&amp;gt;SEQNR                text
*----------------------------------------------------------------------*
FORM fill TABLES loc_proposed_values STRUCTURE pprop
        USING  infty LIKE pprop-infty
               fname LIKE pprop-fname
               fval  LIKE pprop-fval
               seqnr LIKE pprop-seqnr.

  DATA: wa_values LIKE pprop.

  wa_values-infty = infty.
  wa_values-fname = fname.
  wa_values-fval  = fval.
  wa_values-seqnr = seqnr.
  APPEND wa_values TO loc_proposed_values.

ENDFORM.                    "fill&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it solves ur problem.

&lt;STRONG&gt;Regards,&lt;/STRONG&gt;
&lt;STRONG&gt;Venkat.O&lt;/STRONG&gt;
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 02:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958483#M945823</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-05-28T02:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958484#M945824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I will make those changes and let you know if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 03:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958484#M945824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T03:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958485#M945825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;I executed your code and it works fine if an IT 0105 record needs to be created for an EXISTING pernr.&lt;/P&gt;&lt;P&gt;But, in my case where a NEW pernr has to be created, it is not working. &lt;/P&gt;&lt;P&gt;Since IT0105 has been included in the infogroup, the USRID and EMAIL ID screens pop-up when creating a pernr through PA40.&lt;/P&gt;&lt;P&gt;When i run it in dialog mode 1, the control still stops at IT0105 screen and asks for the user to input the values manually, eventhough I have the proposed_values table populated with IT 0105 values.&lt;/P&gt;&lt;P&gt;I am unable to figure out what else can be done to overcome this situation.&lt;/P&gt;&lt;P&gt;Any suggestions are greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 19:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958485#M945825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T19:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958486#M945826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all the inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 21:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958486#M945826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T21:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958487#M945827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll add records to PA40. Coming field empty. Could you help please!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 09:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958487#M945827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-13T09:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: HR_MAINTAIN_MASTERDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958488#M945828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-maintain-masterdata/m-p/3958488#M945828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-19T14:24:42Z</dc:date>
    </item>
  </channel>
</rss>

