cancel
Showing results for 
Search instead for 
Did you mean: 

One action per Idoc

Former Member
0 Kudos

Hi,

As previously mentioned we are struggling to get the format of idocs to fit the requirements from connecting systems. We are distributing HR master data using HRMD_A06 idocs and change-pointers to track changes. We collect change-pointers every minute in order to keep the number of updates in each idoc to a minimum.

The problem now is that we require that the idocs contain only one action each, that is only one E1P0000 segment can be present in each idoc.

As it is now we get two action segments in the idoc when we perform an action (one action segment with the actual action performed, and one action segment containing the previous action which has been delimited).

Ie: We perform a 'leaving' action starting on 01.mar we get an idoc containing two action segments, one 'hire' action with ENDDA (enddate) as 28.feb, and one 'leaving' action with BEGDA (begin date) as 01.mar.

Do you have any idea how to restrict this so we only get one action per idoc?

We have currently set a parameter so that each idoc contains data for only one employee, and have also included a user-exit to populate additional data not in standard idocs.

Any help is highly appreciated!

Br,

Kenneth

Accepted Solutions (0)

Answers (1)

Answers (1)

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Kenneth,

I doubt, that some customizing will bring SAP to split IDOCs per action segment. (If someone else finds a solution, forget my posting.)

Some programming:

Copy whole IDOC (n times), delete all extra action segments, leaving one after another (difficult to describe, but should be clear, what should be left). Don't forget to adjust segment numbers.

There are two potential places:

- Separate report, which deletes multi-segment idocs and creates new single-segment-Idocs (new step in processing)

- User-exit (or modification, have a look) at and of Idoc creation (just before saving). Idoc-numbering should not be done at this place (otherwise it's quite late to add Idocs).

Sometimes user-exits for filtering whole Idocs in last second are provided: that's a good place. You just have to convince SAP, to accept your addings (key word: dynamical assign).

OK, third option: this is a classical task for a IDOC-converter.

Regards,

Christian