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

User Exit to call program to create IDocs.

Former Member
0 Likes
1,640

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

1 ACCEPTED SOLUTION
Read only

asik_shameem
Active Contributor
0 Likes
1,375

Hi Vinay,

Why don't you use the standard transaction BD10 for new material and BD21 for changed material.

5 REPLIES 5
Read only

asik_shameem
Active Contributor
0 Likes
1,376

Hi Vinay,

Why don't you use the standard transaction BD10 for new material and BD21 for changed material.

Read only

0 Likes
1,375

Hi Asik,

But I want to create idocs immediately with out any execution.

Thanks,

Vinay.

Read only

david_flad3
Explorer
0 Likes
1,375

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.

Read only

0 Likes
1,375

Hi David,

How do we create Change pointers IDoc with out using program RBDMIDOC ?

Thanks,

Vinay.

Read only

0 Likes
1,375

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