Skip to Content
author's profile photo Former Member
Former Member

Create Idoc in a User Exit

Hello everyone,

we have a requirement where we want to create and send an idoc out through a user exit.has anyone done anything like this before?i think it is possible.if anybody has any headup on how to do it please let me know.ok yea i know the function module which is to be used.its idoc_output_inotif.there is a tcode INOT which sends the idoc out but OSS says we cant use it 4.6c onwards and thats the reason this need of creating an idoc in user exit arises.

i have tried executing the FM independantly and punching in a few values and i saw that it created an idoc in the system.so my guess is, if i can call this FM in one of the user exits for the transaction IW51/52, and pass all the needed values i should get an idoc.

if anyone has manually created an idoc in a user exit please suggest me some options.

thanks a lot.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 01:04 AM

    Hi Sanket ,

    Yes you can create an IDOC in a user exit . The prerequiiste is the partner profile / Distribution model should be there in place to process the message .

    We have done it using functions L_IDOC_HEADER_CREATE / L_IDOC_SEGMENT_CREATE / l_IDOC_SEND.

    Cheers.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Guys

      thanks for the amazing answers.coincidently the FM idoc_output_inotif has a MASTER_IDOC_DISTRIBUTE in it so i dont think i need to call it in the user exit additionally. so all i have to do i guess is call the FM and pass the right values and the idoc should be on the way.i guess i should be fine from here.if not i will ping u guys back.for now i have awarded points and am closing this one.

      thanks once again for your replies

      appreciate it always

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.