<?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: ECM BADI Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667067#M615542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you did not show the coding of the class implementing the BAdI interface I cannot tell you the exact error cause.&lt;/P&gt;&lt;P&gt;However, the exception class CX_HRPA_VIOLATED_PRECONDITION is used (on our ECC 5.0 IDES system) in two classes only:&lt;/P&gt;&lt;P&gt;- CL_HRPA_INFTY_NNNN (method ASSERT_CORRECT_INFTY)&lt;/P&gt;&lt;P&gt;- CL_HRPA_RETROCALC (=&amp;gt; most likely not relevant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the coding of method ASSERT_CORRECT_INFTY ...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD assert_correct_infty.

  IF container-&amp;gt;a_tclas       &amp;lt;&amp;gt; a_tclas OR
     container-&amp;gt;a_pskey-infty &amp;lt;&amp;gt; a_infty.

    RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.
  ENDIF.
ENDMETHOD.                    "assert_correct_infty&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... I assume that the exception is raised here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is called in method IF_HRPA_INFTY_BL~INSERT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD if_hrpa_infty_bl~insert.

  FIELD-SYMBOLS &amp;lt;pnnnn&amp;gt;  TYPE ANY.
  FIELD-SYMBOLS &amp;lt;pshdr&amp;gt;  TYPE pshdr.
  FIELD-SYMBOLS &amp;lt;pnnnn2&amp;gt; TYPE ANY.
  FIELD-SYMBOLS &amp;lt;pshdr2&amp;gt; TYPE pshdr.

  DATA infotype_container TYPE REF TO if_hrpa_infotype_container.

  DATA pnnnn_ref    TYPE REF TO data.
  DATA pnnnn2_ref   TYPE REF TO data.
  DATA pref         TYPE pref.
  DATA aux_data_ref TYPE REF TO data.

  DATA has_secondary_infty TYPE boole_d.
  DATA secondary_infty     TYPE infty.
  DATA has_error           TYPE boole_d.


* Ensure that the framework did not mess up infty
  CALL METHOD assert_correct_infty
    EXPORTING
      container = container.
...

ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... where the exception class is defined in the method interface. Thus, the exception is propagated to the caller of this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Searching the &amp;lt;i&amp;gt;Where-Used-list&amp;lt;/i&amp;gt; for method IF_HRPA_INFTY_BL~INSERT I can find only class CL_HRPA_INFOTYPE_0008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the coding of method IF_HRPA_INFTY_BL~INSERT (in class CL_HRPA_INFOTYPE_0008) you will see the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;***-----------------***
* standard processing *
***-----------------***
 CALL METHOD SUPER-&amp;gt;IF_HRPA_INFTY_BL~INSERT
   EXPORTING
     UPDATE_MODE                = UPDATE_MODE
     MASSN                      = MASSN
     MASSG                      = MASSG
     NO_AUTH_CHECK              = NO_AUTH_CHECK
     MESSAGE_HANDLER            = MESSAGE_HANDLER
   IMPORTING
     IS_OK                      = IS_OK
   CHANGING
     CONTAINER                  = CONTAINER
     .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I assume that in your BAdI implementing class you call method IF_HRPA_INFTY_BL~INSERT of class CL_HRPA_INFOTYPE_NNNN (= superclass of CL_HRPA_INFOTYPE_0008).&lt;/P&gt;&lt;P&gt;If you surround this method call by a TRY-ENDTRY block then you should not get the dump but catch the exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
  CALL METHOD go_infty_nnnn-&amp;gt;IF_HRPA_INFTY_BL~INSERT( ...).

CATCH cx_hrpa_violated_precondition INTO lo_error.
" ... send error message
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Conclusion&amp;lt;/b&amp;gt;: It looks like that using method go_infty_nnnn-&amp;gt;IF_HRPA_INFTY_BL~INSERT you can only create infotype 0008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2007 20:52:13 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-08-10T20:52:13Z</dc:date>
    <item>
      <title>ECM BADI Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667066#M615541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone supply some custom code that they use in the HRECM00_ACTIVATION-ACTIVATE_PROCESS method to update infotypes? I've been getting the following errors when trying to create an infotype 0000 record in the badi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exception 'CX_HRPA_VIOLATED_PRECONDITION' was raised but was not caught at any stage in the call hierarchy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 20:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667066#M615541</guid>
      <dc:creator>former_member985956</dc:creator>
      <dc:date>2007-08-10T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: ECM BADI Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667067#M615542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you did not show the coding of the class implementing the BAdI interface I cannot tell you the exact error cause.&lt;/P&gt;&lt;P&gt;However, the exception class CX_HRPA_VIOLATED_PRECONDITION is used (on our ECC 5.0 IDES system) in two classes only:&lt;/P&gt;&lt;P&gt;- CL_HRPA_INFTY_NNNN (method ASSERT_CORRECT_INFTY)&lt;/P&gt;&lt;P&gt;- CL_HRPA_RETROCALC (=&amp;gt; most likely not relevant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the coding of method ASSERT_CORRECT_INFTY ...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD assert_correct_infty.

  IF container-&amp;gt;a_tclas       &amp;lt;&amp;gt; a_tclas OR
     container-&amp;gt;a_pskey-infty &amp;lt;&amp;gt; a_infty.

    RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.
  ENDIF.
ENDMETHOD.                    "assert_correct_infty&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... I assume that the exception is raised here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is called in method IF_HRPA_INFTY_BL~INSERT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD if_hrpa_infty_bl~insert.

  FIELD-SYMBOLS &amp;lt;pnnnn&amp;gt;  TYPE ANY.
  FIELD-SYMBOLS &amp;lt;pshdr&amp;gt;  TYPE pshdr.
  FIELD-SYMBOLS &amp;lt;pnnnn2&amp;gt; TYPE ANY.
  FIELD-SYMBOLS &amp;lt;pshdr2&amp;gt; TYPE pshdr.

  DATA infotype_container TYPE REF TO if_hrpa_infotype_container.

  DATA pnnnn_ref    TYPE REF TO data.
  DATA pnnnn2_ref   TYPE REF TO data.
  DATA pref         TYPE pref.
  DATA aux_data_ref TYPE REF TO data.

  DATA has_secondary_infty TYPE boole_d.
  DATA secondary_infty     TYPE infty.
  DATA has_error           TYPE boole_d.


* Ensure that the framework did not mess up infty
  CALL METHOD assert_correct_infty
    EXPORTING
      container = container.
...

ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... where the exception class is defined in the method interface. Thus, the exception is propagated to the caller of this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Searching the &amp;lt;i&amp;gt;Where-Used-list&amp;lt;/i&amp;gt; for method IF_HRPA_INFTY_BL~INSERT I can find only class CL_HRPA_INFOTYPE_0008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the coding of method IF_HRPA_INFTY_BL~INSERT (in class CL_HRPA_INFOTYPE_0008) you will see the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;***-----------------***
* standard processing *
***-----------------***
 CALL METHOD SUPER-&amp;gt;IF_HRPA_INFTY_BL~INSERT
   EXPORTING
     UPDATE_MODE                = UPDATE_MODE
     MASSN                      = MASSN
     MASSG                      = MASSG
     NO_AUTH_CHECK              = NO_AUTH_CHECK
     MESSAGE_HANDLER            = MESSAGE_HANDLER
   IMPORTING
     IS_OK                      = IS_OK
   CHANGING
     CONTAINER                  = CONTAINER
     .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I assume that in your BAdI implementing class you call method IF_HRPA_INFTY_BL~INSERT of class CL_HRPA_INFOTYPE_NNNN (= superclass of CL_HRPA_INFOTYPE_0008).&lt;/P&gt;&lt;P&gt;If you surround this method call by a TRY-ENDTRY block then you should not get the dump but catch the exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
  CALL METHOD go_infty_nnnn-&amp;gt;IF_HRPA_INFTY_BL~INSERT( ...).

CATCH cx_hrpa_violated_precondition INTO lo_error.
" ... send error message
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Conclusion&amp;lt;/b&amp;gt;: It looks like that using method go_infty_nnnn-&amp;gt;IF_HRPA_INFTY_BL~INSERT you can only create infotype 0008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 20:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667067#M615542</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-10T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: ECM BADI Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667068#M615543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello UWE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code in my ACTIVATE_PROCESS method. There is no error checking yet as I was just beginning with an attempt to create a new infotype 0000 Action record and was getting those exceptions. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method if_ex_hrecm00_activation~activate_process .&lt;/P&gt;&lt;P&gt;  constants:&lt;/P&gt;&lt;P&gt;    c_abkrs_u1         type abkrs   value 'U1',&lt;/P&gt;&lt;P&gt;    c_abkrs_u2         type abkrs   value 'U2',&lt;/P&gt;&lt;P&gt;    c_abkrs_u3         type abkrs   value 'U3',&lt;/P&gt;&lt;P&gt;    c_abkrs_u4         type abkrs   value 'U4',&lt;/P&gt;&lt;P&gt;    c_massn_z4         type massn   value 'Z4',  "Change in Pay&lt;/P&gt;&lt;P&gt;    c_massg_10         type massg   value '10',  "Merit/Equity&lt;/P&gt;&lt;P&gt;    c_endda_1231       type datum   value '99991231',&lt;/P&gt;&lt;P&gt;    c_actio_ins        type actio   value 'INS',  "Create&lt;/P&gt;&lt;P&gt;    c_citem_us(2)      type c       value 'US',&lt;/P&gt;&lt;P&gt;    c_citem_uq(2)      type c       value 'UQ',&lt;/P&gt;&lt;P&gt;    c_infotype_0000(4) type c      value '0000',&lt;/P&gt;&lt;P&gt;    c_is_ok            type boole_d value 'X',&lt;/P&gt;&lt;P&gt;    c_is_not_ok        type boole_d value ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: p0000 type standard table of p0000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;    w_rec_it0000      type p0000,&lt;/P&gt;&lt;P&gt;    w_rec_it0001      type p0001,   "Infotype 0001 (Org. Assignment)&lt;/P&gt;&lt;P&gt;    w_rec_t549a       type t549a,   "Payroll areas&lt;/P&gt;&lt;P&gt;    w_rec_t549q       type t549q,   "Payroll Periods&lt;/P&gt;&lt;P&gt;    w_is_ok           type boole_d,&lt;/P&gt;&lt;P&gt;    w_return          type bapireturn1,&lt;/P&gt;&lt;P&gt;    w_infty_key       type bapipakey,&lt;/P&gt;&lt;P&gt;    w_message_handler type ref to cl_hrpa_message_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set is_ok export parameter to true to start with&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  is_ok = c_is_ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;For each IT0759 record with a value of USnn or UQnn (where 'nn' = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;last two digits of the current plan year) in field IT0759-CITEM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  if p0759-citem(2) eq c_citem_us or&lt;/P&gt;&lt;P&gt;     p0759-citem(2) eq c_citem_uq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt; Look up the employees current Payroll Area from IT0001-ABKRS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    call function 'HR_ECM_GET_IT0001'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        pernr           = p0759-pernr&lt;/P&gt;&lt;P&gt;        key_date        = sy-datum&lt;/P&gt;&lt;P&gt;        message_handler = message_handler&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        p0001           = w_rec_it0001&lt;/P&gt;&lt;P&gt;        is_ok           = w_is_ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt; If the payroll area is equal to U1, U2, U3 or U4 then:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    if ( w_rec_it0001-abkrs eq c_abkrs_u1 or&lt;/P&gt;&lt;P&gt;         w_rec_it0001-abkrs eq c_abkrs_u2 or&lt;/P&gt;&lt;P&gt;         w_rec_it0001-abkrs eq c_abkrs_u3 or&lt;/P&gt;&lt;P&gt;         w_rec_it0001-abkrs eq c_abkrs_u4 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt; Use the payroll area to look up the Period Parameter from V_T549A field PERMO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      clear w_rec_t549a.&lt;/P&gt;&lt;P&gt;      select single permo from t549a&lt;/P&gt;&lt;P&gt;        into w_rec_t549a-permo&lt;/P&gt;&lt;P&gt;        where abkrs eq w_rec_it0001-abkrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Select the Payroll Period whose start date (BEGDA) is immediately&lt;/P&gt;&lt;/LI&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;after the effective date on IT0759-EFFDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      clear w_rec_t549q.&lt;/P&gt;&lt;P&gt;      select single * from t549q&lt;/P&gt;&lt;P&gt;        into w_rec_t549q&lt;/P&gt;&lt;P&gt;        where permo eq w_rec_t549a-permo&lt;/P&gt;&lt;P&gt;          and pabrj eq p0759-begda(4)&lt;/P&gt;&lt;P&gt;          and begda ge p0759-begda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          pernr           = p0759-pernr&lt;/P&gt;&lt;P&gt;          infty           = c_infotype_0000&lt;/P&gt;&lt;P&gt;          endda           = c_endda_1231&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          infty_tab       = p0000&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          infty_not_found = 1&lt;/P&gt;&lt;P&gt;          OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    sort descending to put the latest record first&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      sort p0000 descending.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    read the first record into the IT0000 record structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      read table p0000 into w_rec_it0000 index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Initial Field - the system will populate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      clear: w_rec_it0000-aedtm,&lt;/P&gt;&lt;P&gt;             w_rec_it0000-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      w_rec_it0000-begda = w_rec_t549q-begda.&lt;/P&gt;&lt;P&gt;      w_rec_it0000-massn = c_massn_z4.&lt;/P&gt;&lt;P&gt;      w_rec_it0000-massg = c_massg_10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;This will lock employee for update&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&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 = p0759-pernr&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          return = w_return.&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         = c_infotype_0000&lt;/P&gt;&lt;P&gt;          number        = p0759-pernr&lt;/P&gt;&lt;P&gt;          validityend   = c_endda_1231&lt;/P&gt;&lt;P&gt;          validitybegin = w_rec_t549q-begda&lt;/P&gt;&lt;P&gt;          record        = w_rec_it0000&lt;/P&gt;&lt;P&gt;          operation     = c_actio_ins&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          return        = w_return&lt;/P&gt;&lt;P&gt;          key           = w_infty_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;This will unlock employee record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&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 = p0759-pernr&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          return = w_return.&lt;/P&gt;&lt;P&gt;&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;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2007 14:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667068#M615543</guid>
      <dc:creator>former_member985956</dc:creator>
      <dc:date>2007-08-11T14:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: ECM BADI Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667069#M615544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have a straightforward solution at hand. Yet I assume that the error occurs within function module &amp;lt;b&amp;gt;HR_INFOTYPE_OPERATION&amp;lt;/b&amp;gt;. In order to get closer to the problem I would recommend to call this function module with &amp;lt;b&amp;gt;DIALOG_MODE = '1'.&amp;lt;/b&amp;gt; This enables display of the screens while creating the infotype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2007 21:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667069#M615544</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-11T21:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: ECM BADI Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667070#M615545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Again UWE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your help. I tried your advice by setting the Dialog_Mode parameter and it did show me the infotype 0000 screen and the screen looked good. However it abended shortly after clicking save. In research I have found that the problem potentially lies with the maintenance of a tabled called T77S0. I have emailed our ECM consultant asking him if he knows anything about this table and will wait to hear back from him. Thanks again for all your help. I'll let you know how things go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2007 15:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667070#M615545</guid>
      <dc:creator>former_member985956</dc:creator>
      <dc:date>2007-08-12T15:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: ECM BADI Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667071#M615546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi UWE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I place my code in a separate program and call that program from the BADI then I am able to successfully create infotype records. I was unable to create infotype records from within the BADI using HR_INFOTYPE_OPERATION. Thanks for your time on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 22:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ecm-badi-problem/m-p/2667071#M615546</guid>
      <dc:creator>former_member985956</dc:creator>
      <dc:date>2007-08-14T22:02:09Z</dc:date>
    </item>
  </channel>
</rss>

