Skip to Content
0

Enhancement for plant in Material IDoc

Apr 26, 2017 at 12:38 PM

89

avatar image

Hi Experts,

For one of my developments, I am using a custom Message type for setting up Material Master IDoc Interface, using the Function Module: MASTERIDOC_CREATE_SMD_MATMAS,

I need to write a custom logic using Plant value, Message type and Material number, to filter/Validate the IDoc before sending, for that I am looking for an enhancement spot or a customer/User Exit where I can get all of the above mentioned fields.

Could you please suggest any of the enhancements?

Thanks in advance,

Aayush Aggarwal

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jelena Perfiljeva
Apr 26, 2017 at 04:07 PM
0

Why can't you just use the standard message type? You can probably add a filter by Plant in the distribution model if that's the requirement. Why exactly do you need a new message type?

Based on the question, I'm not sure you understand the outbound process correctly. IDoc user exits are meant for the data conversion or filling in custom segments. For the outbound process, there is no "IDoc validation" per se because the decision whether IDoc needs to be created takes place first in the special programs. So an IDoc is simply not created if the changed data is not relevant for distribution.

In general, all the methods to find user exit / BADI, etc. have already been described on SCN. Use Google "how to find user exits site:sap.com" and so forth.

Share
10 |10000 characters needed characters left characters exceeded
Aayush Aggarwal Apr 27, 2017 at 04:29 PM
0

Thanks for the Update, However my requirement is a bit different, I do not want to restrict the generation of IDOC at Plant Level, rather I want to check a field called MARC-QMATV = 'X'. Only in this case the IDOC has to be generated, we have checked the exit 'EXIT_SAPLMV01_002 ' in which the DATA related to segment E1MARCM will come in table F_MARC only when plant level changes are made, not otherwise. We have made a change in Quality Management Level in MM02, for this change E1MARCM or the Table F_MARC doesnot have any value of material or palnt in the Exit 'EXIT_SAPLMV01_002'. for my requirement I need material plant and Message type in any particular exit or A BADI so that I can restrict IDOC creation based on MARC-QMATV = 'X'. Any suggestion will be Helpful.

Share
10 |10000 characters needed characters left characters exceeded