Application Development and Automation 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: 
Read only

stop IDoc processing if condition fails .

Former Member
0 Likes
1,235

Hi,

How to stop IDOC processing if condition fails in matmas IDoc ?

Thanks - Vinay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
949

Hi,

use enhancement point in the Function module MASTERIDOC_CREATE_MATMAS and exit the function module when the condition not statisfies this will solve you problem

6 REPLIES 6
Read only

JL23
Active Contributor
0 Likes
949

can you explain in more detail, evetually with an example

Read only

Former Member
0 Likes
949

Hi Jürgen L,

Thanks for response.

I am using change pointers to replicate the material master data to 3rd party when ever create or change .

I want to create an MATMAS idoc only for plant UK02 and some other conditions.Even I have done IDoc filtering for plant in BD64 , but it only stops creating E1EMARC segment ( Because its optional segment ) other segment does still exist,and be sent to 3rd party. I tried different options like

1) Tried to make E1MARCM segment as Mandatory.

2) Tried to pass the plant value to SAISO field and created filter for plant using SAISO ( E1MARAM ) but failed to get correct plant value based on E1MARAM-MATNR because one material is having different plants.

I have few options : 1) Get plant value when processing E1EMARAM if i can get. 2) Stop creating IDoc after checking E1MARCM-WERKS if it fails . I have used Include ZXMGVU03 .

Please help.

Thanks - Vinay.

Edited by: Vinay parakala on Feb 11, 2010 6:35 PM

Read only

Former Member
0 Likes
949

Hi Vinay....

What do you mean by other segment does still exist,....

you dont want some of the sement data to go to 3 rd party...

???

Ramesh

Read only

Former Member
0 Likes
950

Hi,

use enhancement point in the Function module MASTERIDOC_CREATE_MATMAS and exit the function module when the condition not statisfies this will solve you problem

Read only

0 Likes
949

Hi,

you can use BADI "IDOC_CREATION_CHECK" to Filter those Values and decide to create this segment or not.

Read only

0 Likes
949

Hi Shanmugavel,

Similar Requirement of mine.

i have one material with multiple plants, apart from coding any other procedure at the filter group level we can find the respective plant.

i have one scenario as below:

Material: XYZ lies in plant 1 and plant 2.

but i want to send segments only for plant 1 for XYZ to destination system. i should not send segment related to Plant 2.

Pl help.

Apart from coding, any other filter group config in BD64 require.

Regards,

shekhar.