I have ALE configured to send vendor master data to an external system. Serialization is setup so that I always get an ADRMAS Idoc with each CREMAS Idoc. This is all working fine.
Now, though, I want to add a filter in BD64 so that I only send vendors in a particular account group. I have done that and indeed I only get Idocs generated for vendors in the account group specified in the filter in BD64. But, I now don't get any ADRMAS Idocs at all, for any vendors. Adding the filter in BD64 appears to have broken the serialization somehow.
Is there something I need to do to the config of the ADRMAS type in BD64 to make this work? Obviously what I want to get is ADRMAS Idocs generated only when a CREMAS Idoc is generated.
I must be missing a step somewhere. What is it?
ADRMAS IDoc is meant only for Inbound process, that to with CREMDM, where in PI splits CREMDM into CREMAS & ADRMAS.
There is no provision to send ADRMAS as an Outbound process, you will have to design a custom idoc for address,
using ADRC and ADR6 tables in conjunction with vendor master tables.
I'm sorry but I'm really not sure that's true. [This section|http://help.sap.com/saphelp_470/helpdata/EN/f1/035c8fae3d11d3b540006094192fe3/frameset.htm] of the online help certainly suggests that ADRMAS and related Idoc formats (ADR2MAS & ADR3MAS) are indeed for outbound distribution as well as inbound. More particularly, look at [this section|http://help.sap.com/saphelp_470/helpdata/EN/f1/035c8fae3d11d3b540006094192fe3/frameset.htm]. In fact, the IMG has options for automatically generating a distribution model for outbound distribution of vendors or customers with their addresses, properly serialised. That suggests to me that ADRMAS is fine for outbound distribution.
And without filtering in the distribution model everything works fine for CREMAS/ADRMAS as outbound Idocs. It is only when applying filtering that things go wrong.
Any more suggestions anyone?
ADRMAS can certainly be used both ways.
How do you filter, please describe in detail.
I am certain it is achievable as we are doing it.
we do Distribution Using Classes
I've added the vendor account group "LFA1-KTOKK" in BD95 and then in BD59 for message type CREMAS.
Then, in BD64 I add a filter group on CREMAS and put a specific value ("MAIN" in this case) in the filter. This works, in the sense that is then only generates communication Idocs for vendors in account group MAIN. However, it also has the effect of suppressing the generation of the corresponding ADRMAS Idocs for the vendors.
So I'm trying to filter whole Idocs rather than reduce Idoc segments, as the link you posted is talking about. That might be the difference?
If you have any suggestions I would be most grateful!
There is no need to write code to achieve this task. As suggested in this post Creating filter for outbound IDOC CREMAS
add a filter object to BD95 then assign the object to the message type within BD59
Review the link and post here if you have any questions.