Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

HR_ECM_INSERT_INFOTYPE produces runtime error

Hi All,

Good Afternoon. I have been trying to us the FM HR_ECM_INSERT_INFOTYPE or the FM HR_INFOTYPE_OPERATION

and I am receiving runtime errors such as

CX_HRPA_VIOLATED_ASSERTION or

CX_SY_REF_IS_INITIAL

it seems that the message handler is not functioning as I have expected it to function. I have tried to enqueue the pernr prior to this code, but that doesn't help either.

CALL FUNCTION 'HR_ECM_READ_INFOTYPE'

EXPORTING

pernr = p_pernr

infty = '0002'

message_handler = message_handler

IMPORTING

infotype_tab = p0002_tab

is_ok = is_ok.

CHECK is_ok EQ true.

SORT p0002_tab DESCENDING.

READ TABLE p0002_tab INTO w_p0002 INDEX 1.

MOVE sy-datum TO w_p0002-aedtm.

CALL FUNCTION 'HR_ECM_INSERT_INFOTYPE'

EXPORTING

pnnnn = w_p0002

message_handler = message_handler

IMPORTING

is_ok = is_ok.

CHECK is_ok EQ true.

Please advise.

Kind Regards,

Daniel A. La Mendola

Not what you were looking for? View more on this topic or Ask a question