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: 

dump getting for the FM HR_ECM_CALCULATE_SALARY

Former Member
0 Kudos

Hi can anyone help in resolving this dump

when i used the below FM i am getting dump because of messeage handler. my code

DATA; l_adate TYPE datum,

l_ansal TYPE ecm_salry,

lref_message1 TYPE REF TO if_hrpa_message_handler.

l_adate = pn-endda.

CALL FUNCTION 'HR_ECM_CALCULATE_SALARY'

EXPORTING

pernr = pernr-pernr

key_date = l_adate

currency = 'USD' "l_waers

time_unit = '06'

  • it0008 =

message_handler = lref_message1

IMPORTING

salary = l_ansal

  • IS_OK =

.

w_detail-base_pay = l_ansal.

4 REPLIES 4

Former Member
0 Kudos

Hi,

pernr is it internal table?

check this..

DATA; l_adate TYPE sy-datum,

l_ansal TYPE ecm_salry,

lref_message1 TYPE REF TO if_hrpa_message_handler.

l_adate = pn-endda.

CALL FUNCTION 'HR_ECM_CALCULATE_SALARY'

EXPORTING

pernr = pernr-pernr

key_date = l_adate

currency = 'USD' "l_waers

time_unit = '06'

it0008 =

message_handler = lref_message1

IMPORTING

salary = l_ansal

0 Kudos

hi prabhu

Regarding pernr there is no problem it will insert the prenr i checked with it and pernr is not an internal table

former_member125931
Active Participant
0 Kudos

CALL FUNCTION 'HR_ECM_CALCULATE_SALARY'

EXPORTING

pernr = pernr-pernr

key_date = l_adate

currency = 'USD' "l_waers

time_unit = '06'

it0008 =

message_handler = lref_message1

IMPORTING

salary = l_ansal

IS_OK =

.

w_detail-base_pay = l_ansal.

IN above FM you are not passing the values correctly,

You are declared what is pernr-pernr and l_adate

you are not fetched data from any where for input,

just explain your requirement we will give you the solution.

0 Kudos

hi SnickyUcan

date and pernr are the right values which i am passing on that there is no problem even i verfied them but i getting error with message handler