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: 

Processing Idocs from change pointers

kumaro412
Active Participant
0 Kudos
434

Dear all,

We have a lot of Idocs that are processed from change pointers on material master ...

My predecessor programmed the creation of Idocs, but he always told that it was impossible to stop the creation of Idocs depending on the value of the material master (for example material status) ... To me, it seems not realistic that we are not able to avoid creation of Idocs if the material has a specific status ...

Can anyone help me with a solution to only create Idocs from change pointers on material master if the material has a status that allows creation of Idocs ?

Thanks in advance !

Greetz,

Kurt.

1 ACCEPTED SOLUTION

former_member189779
Active Contributor
0 Kudos
189

1. Check BADI IDOC_CREATION_CHECK.

You can implement this BADI and check for your conditions and decide if you want to create an idoc.

Also check the customer exit's EXIT_SAPLF050_005( FIDCC2 IDoc outbound: Change data / do not send ) & EXIT_SAPLF050_007 (  IDoc outbound: change complete IDoc / do not send ).

2. You can also create filter objects, if you want to create Idoc for particular values of any field in IDOC segament. You create and assign it in BD64 for your message type.

Add this field as a filter object in BD59 with the segment name with position of field in segment and also in BD95 if its not already present.

Then in BD64 you can create corresponding filter object set the value of say Company code for which you want to send that segment.

This should work if your segment in not marked as mandatory segment in WE31.

2 REPLIES 2

former_member189779
Active Contributor
0 Kudos
190

1. Check BADI IDOC_CREATION_CHECK.

You can implement this BADI and check for your conditions and decide if you want to create an idoc.

Also check the customer exit's EXIT_SAPLF050_005( FIDCC2 IDoc outbound: Change data / do not send ) & EXIT_SAPLF050_007 (  IDoc outbound: change complete IDoc / do not send ).

2. You can also create filter objects, if you want to create Idoc for particular values of any field in IDOC segament. You create and assign it in BD64 for your message type.

Add this field as a filter object in BD59 with the segment name with position of field in segment and also in BD95 if its not already present.

Then in BD64 you can create corresponding filter object set the value of say Company code for which you want to send that segment.

This should work if your segment in not marked as mandatory segment in WE31.

former_member209818
Active Contributor
0 Kudos
189

Hi,

Did you tried the IDOC Filters in Ditribution Model?