cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring of IDOC

former_member573193
Discoverer
0 Kudos

Hello all,

I try tu have a good monitoring of IDOC.

To be clear, I will explain the problem.

We use the IDOC HRMD_ABA for the replication sap HR towards an other system CRM.

Sometimes we have some IDOC not in error but not fully posted status 52 (via transaction BD87).

The problem is : the message is not fully clear I don't know on which segment I got the error. I would like to add more information to the message, I look on customer function but I found no appropriate function => I told me why not to copy the function module [IDOC_INPUT_HRMD] for the IDOC's post into a [ZIDOC_INPUT_HRMD] function module and to manage better the message error but it looks a heavy work.

Anybody has a better idea to realise that ?

I try also to read the table EDIDS and EDID4 but the information was not helpfull.

Thank you very much in advance, Gene.

Accepted Solutions (0)

Answers (2)

Answers (2)

nablan_umar
Active Contributor
0 Kudos

Gene,

EDIDS has the segment number in error. Then you can go to your Idoc using WE02 and go to the segment in error. We have been monitoring the HRMD idoc error this way.

0 Kudos

Hi,

It is always better to check in we02 transaction for the date in which idocs created.

If the idoc contains status 52 records,u can find the default message like 'HR:inbound processing for planning data/Hr master data'.

second message explains the exact problem.

We are using message type HRMD_A.

This is the way we monitor and correct the problems.

Regards,

Senthil

Former Member
0 Kudos

Hi Genevieve,

Yes there is a better (and much easier) way.

Go to the customer exit 002 for this specific function.

Function module = EXIT_SAPLRHA0_002.

Inside you will find: INCLUDE ZXHALU06 .

Double click on ZXHALU06 (and if it does not exist, create it by answering Yes on the create dialog).

Then simply use your coding to investigate the results and/or extend the message.

This customer exit is meant for monitoring workflow functions for this IDoc handler.

However, to copy IDOC_INPUT_HRMD to your own ZIDOC_INPUT_HRMD and extend this is not so very much work. You only need to find out with which partner the communication occurs (e.q. EDIDC-SNDPRN field).

Find this partner in transaction WE20. Indise the transaction find the message in the inbound parameters.

Double-click the partner and go to the Process code field.

Double-click the process code field and you will see that with the identification the function module IDOC_INPUT_HRMD is given.

Press the button behind the identification field and remember all fields from that screen.

Once you have copied to ZIDOC_INPUT_HRMD you can replace the identification with your function module and fill in the related fields (that you did remember).

Hope this gives you a good start.

Regards,

Rob.