Application Development 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: 

Idocs thru Transaction INOT(urgent)

Former Member
0 Kudos

Hi Guys,

Has anybody used transaction INOT in for sending out service notifications thru idocs?i am missing out on something and i can say that the transaction is not hitting the FM Idoc_output_inotif the reason its not creating an idoc.i would like to know the steps to be taken to see this idoc going out.also i am having some questions int partner profile config for this process.we want to send service notifications out thru idoc.is there any other way anyone has done it?please let me know as soon as possible.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi there,

Run INOT and go to menu HELP-> application help, it will tell you what is required. Hope this helps a little.

Weidong

6 REPLIES 6

Former Member
0 Kudos

Hi Sanket,

What do you mean by <i>'i can say that the transaction is not hitting the FM Idoc_output_inotif the reason its not creating an idoc.'</i>?

Go through debugging and see why it is not reaching this call. Something in your selection criteria should be the reason.

Srinivas

0 Kudos

Hi Srinivas

thanks for the quick reply as always.INOT is a transaction a little different from the standard ones where we do extra->output->header and then furnish the idoc details.INOT doesnt have a place to provide the output type or anything like that.it just has a partner and partner number and an ALE option if u see that transaction.when i say its not hitting the FM i mean there is something wrong in the config.since INOT doesnt ask us to specify output type, how does it know the output type we are using?in the partner profile under message control what configuration is suitable for this transaction.i have never done this so needed a headup from someone who has done a similiar thing.

thanks

0 Kudos

Yes, I looked at it. That is why I was asking you to debug the program IREAD_NOTIFICATIONS. In there, it calls the function module I_SMPM_START_IDOC_PROCESS. Do you get an error here? or is it further down. I want to find out where it comes out of the program. That way we can figure out what is missing. For instance, in the above function module, it is checking if there is an ALE model that exists. Based on this, it is determining whether to continue processing or stop there itself.

So please debug and see where it is stopping. Based on that we can decide what is missing.

Srinivas

0 Kudos

Hi Srinivas

i did debug the program mentioned. there is a FM idoc_output_inotif in there which needs to be hit if i need the idoc generated.but when i debug it i cant see the FM being hit.there is a check right above that function module which is this particular code:

*........ Check if at least one task is selected .......................

*........ (there is no use of sending a notification without tasks) ....

DESCRIBE TABLE t_tasks LINES nb_tasks.

IF ( nb_tasks = 0 ).

DESCRIBE TABLE t_item_tasks LINES nb_tasks.

ENDIF.

IF ( nb_tasks = 0 ).

PERFORM dequeue_notif USING diqmel-qmnum.

ADD 1 TO nb_rej_task.

ROLLBACK WORK. "Cancel user status update

REJECT.

ENDIF.

now i can see the code coming upto this point but then it never hits the FM idoc_output_inotif.and when i go to the end of the transaction the summary shows 10 notifications selected of which 7 rejected(user status selection) and 3 rejected (task selection). now since of the 10 all 10 are getting rejected, my guess is that it never processes this FM. if u see the comment(first line of the code above) it says that check if atleast one task.there is no use of sending idoc without tasks in it.we checked the notifications and they had a task but for some reason the code is failing to hit the FM.can you try sending out an idoc from INOT when u run it?i am unable to decide if there is a error in the notifications or something in the selection criteria.

thanks for the help.

take care

0 Kudos

Hi Guys

Thanks for your help.

we just found a OSS note saying INOT cant be used to send idoc out from 4.6c onwards.so we have to think of some other way to send the service notification idoc out now.one thing that comes to my mind and have never done is emulating the whole idoc process in a user exit.i will start a new thread with that.

thanks once again for your help.

as always appreciate it.

Former Member
0 Kudos

Hi there,

Run INOT and go to menu HELP-> application help, it will tell you what is required. Hope this helps a little.

Weidong