Skip to Content
author's profile photo
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 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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    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.


    Add 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