Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR_PAD_HIRE_EMPLOYEE failing with An exception with the type CX_HRPA_INVALID_FEATURE occurred

former_member300568
Participant
0 Kudos

Hi All,

I am trying to hire a new employee and i am updating 0000,0001,0002,0006,0008 and 0041 infotypes .

I am passing all the necessary data into the function Module.

However i get an error saying. Not sure what am i missing. My data that i am passing

prelp_tab tab

An exception with the type CX_HRPA_INVALID_FEATURE occurred, but was neither handled locally, nor declared in a RAISING clause

<?xml version='1.0' encoding='UTF-8'?><FILE xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <ZBAPI_NEW_HIRE>
      <EMPLOYEENUMBER>00805794</EMPLOYEENUMBER>
      <HIRINGDATE>20170706</HIRINGDATE>
      <ACTIONTYPE>01</ACTIONTYPE>
      <REASONFORACTION>03</REASONFORACTION>
      <T_P0001>
         <P0001>
            <PERNR>00805794</PERNR>
            <INFTY>0001</INFTY>
            <ENDDA>99991231</ENDDA>
            <BEGDA>20170706</BEGDA>
            <PLANS>40050578</PLANS>
         </P0001>
      </T_P0001>
      <T_P0002>
         <P0002>
            <PERNR>00805794</PERNR>
            <INFTY>0002</INFTY>
            <ENDDA>99991231</ENDDA>
            <BEGDA>20170706</BEGDA>
            <NACHN>Weasley</NACHN>
            <VORNA>Ron</VORNA>
            <RUFNM></RUFNM>
            <MIDNM></MIDNM>
            <GESCH>1</GESCH>
            <GBDAT>19790909</GBDAT>
            <NATIO>US</NATIO>
            <SPRSL>E</SPRSL>
            <FAMST>0</FAMST>
            <PERID>852185775</PERID>
         </P0002>
      </T_P0002>
      <T_P0006>
         <P0006>
            <PERNR>00805794</PERNR>
            <INFTY>0006</INFTY>
            <SUBTY>1</SUBTY>
            <ENDDA>99991231</ENDDA>
            <BEGDA>20170706</BEGDA>
            <STRAS>100 Main Street</STRAS>
            <LOCAT></LOCAT>
            <ORT01>Miami</ORT01>
            <ORT02></ORT02>
            <PSTLZ>33018</PSTLZ>
            <TELNR>9999999999</TELNR>
            <STATE>FL</STATE>
         </P0006>
      </T_P0006>
      <T_P0008>
         <P0008>
            <PERNR>00805794</PERNR>
            <INFTY>0008</INFTY>
            <ENDDA>99991231</ENDDA>
            <BEGDA>20170706</BEGDA>
            <PREAS>01</PREAS>
            <TRFGR>NU DRAW</TRFGR>
            <BSGRD>100.00</BSGRD>
            <DIVGV>1.00</DIVGV>
            <ANSAL>31200.00</ANSAL>
            <LGA01>0102</LGA01>
            <BET01>1.00</BET01>
         </P0008>
      </T_P0008>
      <T_P0041>
         <P0041>
            <PERNR>00805794</PERNR>
            <INFTY>0041</INFTY>
            <ENDDA>99991231</ENDDA>
            <BEGDA>20170706</BEGDA>
            <DAR01>Z1</DAR01>
            <DAT01>20170706</DAT01>
            <DAR02>Z2</DAR02>
            <DAT02>20170706</DAT02>
            <DAR03>Z3</DAR03>
            <DAT03>99991231</DAT03>
            <DAR04>Z4</DAR04>
            <DAT04>20170706</DAT04>
            <DAR05>Z5</DAR05>
            <DAT05>20170706</DAT05>
            <DAR06>Z6</DAR06>
            <DAT06>99991231</DAT06>
            <DAR07>Z7</DAR07>
            <DAT07>99991231</DAT07>
            <DAR08>Z8</DAR08>
            <DAT08>99991231</DAT08>
         </P0041>
      </T_P0041>
      <T_P0105>
         <P0105>
            <PERNR>00805794</PERNR>
            <INFTY>0105</INFTY>
            <ENDDA>99991231</ENDDA>
            <BEGDA>20170706</BEGDA>
            <SUBTY>UQID</SUBTY>
            <USRID>00805794</USRID>
         </P0105>
      </T_P0105>
   </ZBAPI_NEW_HIRE>
</FILE>

2 REPLIES 2

former_member300568
Participant
0 Kudos

I am passing all required data and the position already exist in HRP1000 table. Not sure why do i get this error.

0 Kudos

Hi Divya,

Am facing the same issue, may i know how did you solved this error?

Thanks

Vijay