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: 

To supress Idoc Creation based on a field value

former_member32001
Product and Topic Expert
Product and Topic Expert
0 Kudos
106

Hi,

How to supress Idoc creation based on a field value?

We can supress certain segments but I want to avoid Idoc creation based on a field value.

Regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos
65

Hi,

You need set filter for that particular field.

That field should be in Manditory segment. So that idoc creation fails.

Regards,

Shanmugavel Chandrasekaran

5 REPLIES 5

Former Member
0 Kudos
66

Hi,

You need set filter for that particular field.

That field should be in Manditory segment. So that idoc creation fails.

Regards,

Shanmugavel Chandrasekaran

0 Kudos
65

Hi Shanmugavel,

Thanks for the reply.

Its in standard segment E1BPE1MAW1RT in ARTMAS05 Field COMM_CODE. But this is not a Mandatory segment.

Do you have a suggestion how do I handle it?

Regards,

0 Kudos
65

Hi,

The following process works while creating IDOC from Change Pointers.

In Include LVKOEF01, subroutine IDOC_CREATE triggers the process of IDOC creation. At this point, you can put your condition to supress the IDOC creation.

Check if this applies in your case too.

Regards,

Ni3

Edited by: Ni3 on Mar 17, 2010 7:07 PM

0 Kudos
65

Hi,

Check whether the badi IDOC_CREATION_CHECK is getting trigrred when send the Idoc.

If yes then use this badi to stop the idoc.

Regards,

Shanmugavel Chandrasekarn

0 Kudos
65

Hi Shanmugavel,

Thank you so much. Its working fine and have have given full points.

@Others, Thanks for your answers.

regards,

Sanjay