Application Development and Automation 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: 
Read only

Error when idoc is received

Former Member
0 Likes
512

Hi All,

We are getting the error "Relationship A032 (from Q to employee 00112233 ) will be ignored " when data is being transferred through Idoc.

I have debugged and found the following flow from where the error is coming.

Method PROCESS_IDOC_PERS of Class CL_HR_ALEOX_BADI_NEWMOD is calling FM RH_ALEOX_INTG_CP_IDOC_1_NEWMOD .

This FM has perform idoc_scan_newmod. This perform is generating the error.

The following is the code which is producing error.

CLASS cl_hr_aleox_customizing DEFINITION LOAD.

IF cl_hr_aleox_customizing=>p_q_is_active <> 'X' AND

<ls_e1pityp>-subty = 'A032'.

add_prot_msg iv_protocol '2' '3' e532 <ls_e1pityp>-subty 'Q' <ls_e1pityp>-objid ''.

add_idoc_msg ct_idoc_errors <ls_idoc_data>-docnum <ls_idoc_data>-segnum gc_idoc_warning

'RH_ALEOX_INTG_CP_IDOC_1' 'IDOC_SCAN_NEWMOD'.

ENDIF.

I debugged and found that the variable cl_hr_aleox_customizing=>p_q_is_active is always not equal to 'X'.

I am not sure but i think when the statement CLASS cl_hr_aleox_customizing DEFINITION LOAD is executed, the variable p_q_is_active is loaded from the class cl_hr_aleox_customizing and since this variable is not equal to 'X' in class, this variable will be not equal to 'X' always.

Since this is a standard FM, how do i proceed so that we can avoid this error?

Any help will be deeply appreciated.

Thanks,

Ibrahim

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
429

Hello Ibrahim

Before digging into the dungeons of IDoc process prove that you can execute the expected IDoc function in dialog. If it cannot be done in the dialog transaction the inbound IDoc must work the same way (i.e. prevent processing).

Regards

Uwe