Application Development 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: 

IDOC Filtering for DEBMAS

Former Member
0 Kudos

I am currently using change pointers to trigger the DEBMAS IDOC. I need to be able to filter a range of customers that are not required to be sent. These customers have a defined class type, so it would be ideal to prevent these from going through with a <> filter.

I'm looking into the Distribution Model filter, but the options appear limited to Function, Company Code, Credit COntrol Area, Division, Sales Org, Dist Chnl.

Any ideas to exclude this type of customer from the IDOCs being processed would be very much appreciated.

Thank you!

Jaime

2 REPLIES 2

Former Member
0 Kudos

Hi,

Using BAPI, you can filterout the customers that not required to process thru ALE.

Filters are conditions that BAPIs have to satisfy so that they can be distributed by ALE outbound processing.

The BAPIs and message types in a model view that are filtered contain a relevant sub-entry.

In the change mode you can define filter groups and values by selecting

Edit -> Display/edit details.

The following types of filtering are possible:

Data Filtering with BAPIs

Prerequisite:

You have defined the filter objects for a specific BAPI and assigned them to the BAPI. For more information see the ALE Programming Guide under Filtering Data.

There are two types of filtering to choose from:

Interface Reduction:

Here optional BAPI parameters and/or BAPI fields are switched off.

You can choose the options:

- Reduce by fields

- Fully reduced

For example, the BAPI RetailMaterial.Clone is called with parameters containing basic data, production data, sales and distribution data, plant data, etc.

If the BAPI is called by a material reference system in a sales and distribution system, only the parameters containing basic data and sales and distribution data have to be transferred.

Content-Dependent Filtering

The rows of the BAPI table parameters which do not satisfy the distribution conditions are filtered out.

Developers can also use field references to define hierarchy relationships between table parameters. Such hierarchies are maintained in the ALE Development menu under BAPI -> Maintain hierarchy for BAPI table parameters.

For furhter details please click on below link:

http://help.sap.com/saphelp_46c/helpdata/en/4f/1c4b6e5733d1118b3f0060b03ca329/frameset.htm

You may try with this info.

Thanks,

Naga

Former Member
0 Kudos

Still having an issue filtering my Customer Master IDOCs. I have added a BAPI to my Distribution Model: Object name = Customer, Method Name = CreateFromData, Object Type = KNA1, Method = CREATEFROMDATA. I added a filter group on account type to restrict a specific account type, however this is not working as expected.

Do I need to activate it somehow? Does it matter that I am using change documents to generate the IDOCs? I am wondering if I am missing a step in using the BAPI filtering. When I view the BAPI details, there is no Message Type /Data Filtering displayed in the pop-up box. Is this ok? I do have the DEBMAS Message Type defined with the Distribution Model.

My goal is to restrict a customer type from being sent through the IDOC process. Currently ALL customers are impacted by the change pointers that I am using, so I thought it was best to filter during IDOC creation. Is there an option to filter at the change pointer or change document level?

I appreciate any insight that is available. Thank you and Happy New Year!

Jaime