Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2638

Re: HR_PAD_HIRE_EMPLOYEE - handle exception

$
0
0

I have handled the exception like this.

 

TRY .

       CALL FUNCTION 'HR_PAD_HIRE_EMPLOYEE'

         EXPORTING

           employeenumber  = gs_p0000-pernr

           referencepernr  = lv_pernr

           hiringdate      = gs_p0000-begda

           actiontype      = 'AA'

           reasonforaction = '01'

           pnnnn_tab       = pnnnn_tab "gt_prelp1

*         PREF_TAB        =

           nocommit        = ' '

         IMPORTING

           return_tab      = return_tab

*         BAPIPAKEY_TAB   =

           is_ok           = lv_ok.

     CATCH cx_hrpa_invalid_customization INTO lv_error.

       lv_msg = 'Error in data'.

     CATCH cx_root INTO lv_err.

       lv_msg = 'Error in data'.

   ENDTRY.


Viewing all articles
Browse latest Browse all 2638

Trending Articles