HR Data IDOCs filtering can be acheived in various ways, it can be done through ABAP Programe or there through few simple configuration steps.
Let’s assume a scenario where a message type is created and we need to distributed the HR master data through PFAL transaction code, now requirement is to filter the data based on certain static conditions say for example filtering based on company code level or employee group level etc.
Screenshot below display few steps involved in creating a Filter in the distribution model.
Step 1 – Goto Transaction BD59
Select your message type
Maintain New entries
Note : New entries needs to be created for the fields on which we need to filter out the data, like in this example if someone want to send data only for particular infotype like 0008 etc and a selected object type like P or S.
Step 2 – Goto Transaction BD64
Open Distribution Model, navigate till message type, double click on Filters Group icon (It is just beloww the message type) shown below
and add all the static condition like infotype values and object values needs to be allowed.
Whatever is maintained in the filter will only be allowed and rest all will not be transmitted in the IDOCS.