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

Custom Idoc

Former Member
0 Likes
611

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

3 REPLIES 3
Read only

Former Member
0 Likes
580

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.

Read only

0 Likes
580

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

Read only

Former Member
0 Likes
580

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