‎2010 Apr 09 2:38 PM
Hi All,
For any creation/changes of material master using MM01/MM02 (after save ) one of the user exit will trigger.
From the user exit, I have to call the custom program to create MATMAS IDOCs.
if any failures in changes/creation of material master. It has to roll back eveything created by program.
Please let me know how to achieve this with out calling an event.
Thanks - Vinay
‎2010 Apr 09 5:37 PM
Hi Vinay,
Why don't you use the standard transaction BD10 for new material and BD21 for changed material.
‎2010 Apr 09 5:37 PM
Hi Vinay,
Why don't you use the standard transaction BD10 for new material and BD21 for changed material.
‎2010 Apr 09 7:27 PM
Hi Asik,
But I want to create idocs immediately with out any execution.
Thanks,
Vinay.
‎2010 Apr 09 7:40 PM
There are a number of standard methods to automatically create the IDOC. You can activate the change pointers and depending on need, use BD64 to create a distribution model, and create the necessary WE20 setups to create the outbound IDOC.
If you have to process the IDOC using custom logic, you can define that as well - although it's not clear why you need a custom generating program. You can insert code into one of the IDOC user-exits to manipulate the content if needed. Also, don't overlook the pre-delivered stuff from SAP that provides filtering out of segments and the like.
There are a few good SAP PRess books about doing ALE distribution -- if this is an unfamiliar area, it's worth the cost to buy one -- if you spend any time around IDOCS, you'll appreciate it.
‎2010 Apr 09 7:48 PM
Hi David,
How do we create Change pointers IDoc with out using program RBDMIDOC ?
Thanks,
Vinay.
‎2010 Apr 10 8:27 PM
Hi,
Create an update function module which in turn call the function module "MASTER_IDOC_DISTRIBUTE"(Function module to create IDOC). Call the first function module in Update task during the execution of Material Master User exit.
Regards
Vinod