Question:
Hi Folks,
ALE scenario.
Can anyone tell me how to create an IDOC (MATMAS) automatically when you create or change material. Currently after you create a material, you need to run bd10 (Send matrial) transaction code inorder to create an IDOC.
Appreciate if anyone can help.
Thanks.
Fysal
Answer:
Customize SAP transaction for material creation to connect to IDOC creation
cheers
martin
Answer:
You can also use workflow for the same.
You need to develop a single step task which should be triggered when a Matrial is created. This single step task can then triger the outbound for Material master
Answer:
If you want to create an idoc every time a material is created or changed, use modification pointers (BD50 and BD61).
And schedule the program RBDMIDOC for msg MATMAS regulary (depends on your needs).
I use your mail to add a question :
I need to create Idoc MATMAS only when few fields (in MARA or MVKE) have been modified for specific plant and sales organisation. Hence modification don't seem to work since every creation or modification is sent.
Any help will be appreciated !!!!
_________________
Have a nice day!
Benoît
Answer:
This one is for bdelporte's question:
You missed transaction BD52, in which you specify the field for which change pointers are written. You need to just turn on the MVKE and MARA fields you want, and not tunr on change pointers for the rest.
I really wouldn't recommend Martin's approach to sending MATMAS idocs. Change pointers are very easy to set up and are all standard SAP
Answer:
hi
but Wher I have to turned on the MVKE and MARA and turned off all other fields
Thank and Regards
abhi
Answer:
Thank you matt123.
I had a look at BD52. It's interesting indeed but it doesn't fullfill my needs :
If i change field MARA-MEINS for plant 1000, then modification should be sent.
BUT, if i change field MARA-MEINS for plant 2000, then modification should NOT be sent...
The only way I saw is using user exit of MM01/02 when saving and storing interesting material in a specific table.
If you have any other idea ...
Thanks !!!
_________________
Have a nice day!
Benoît
Answer:
you can add a filter to the distribution model to just send Idocs with the plant code you want. but then it would first create the change pointers and every thing and also a Master Idoc. Then it would check for filters and as the change would not be relevant it wouldn't create an Idoc to sent.
But up to the creation of the master idoc all steps would be carried out.
best regards
Answer:
Thanks again
But even with the filter it doesn't work. The system creates an Idoc only with header segment (MARA, MAKT).
So if I change plant 2000, an Idoc with segments MARA and MAKT will be sent.
If I change plant 1000, an Idoc with segments MARA, MAKT, MARC, ... will be sent.
Any other idea
_________________
Have a nice day!
Benoît