‎2010 Mar 06 10:00 PM
Hi All,
I have to create a Custom Idoc while creating/changing an Inspection Lot. I have a User-Exit which could be triggering before the Transaction is saved. My question is can I create a Custom Idoc using the FM MASTER_IDOC_DISTRIBUTE and have this piece of code placed in the User-Exit.
Thanks & Regards
JM
‎2010 Mar 06 11:51 PM
hello,
Yes you can do this if you have required data available in the user exit.
Please do not forget to maintain settings in WE20 for partner profile...
Thanks
K.
‎2010 Mar 07 3:21 PM
Hi Krish,
Thanks for your answer. I will have enough data in the user-exit, but the rest of the data which is required for the Interface will be fetched from the tables. I hope there would not be problems with COMMIT WORK..since am calling this FM in the User-Exit.
Thanks
JM
‎2010 Mar 07 5:30 AM
Hi Johann,
FM MASTER_IDOC_DISTRIBUTE will create Idocs only when you commit work is executed in the callig program. So you will not be able to use this in your user exit as this might create inconsistencies.
You can create a seperate program to create Idocs and schedule it in background.
Regards
Srikanth M