2007 Mar 16 12:51 PM
Dear Friends.
I have never worked with IDOC. My current task involves the following.
Ask user to enter the Invoice #
Pickup the details from the partner profile/output determination (example you will find the output as zinv)
Ask user to enter the Revised invoice# default this as same as the original invoice# if possible. Accept the new invoice#. No validations required
Prg will create a new idoc with revised invoice#.
Any help or guideline how and where should I start.
2007 Mar 16 12:58 PM
Hi KVC,
U have to give Invoice number in the selection screen.take two internal tables of structure EDIDD and EDIDC...
Now u need to fill the EDIDC record with message type,basic type,sender,reciver port,logical system...
now u need to get the invoice number from VBRK which the user has given in selection screen.Now u need to fill the data record.
Now call the FM 'MASTER_IDOC_DISTRIBUTE'.Now pass the edidc information and edidd information..to it.....
Regards,
Nagaraj
2007 Mar 16 12:58 PM
Hi KVC,
U have to give Invoice number in the selection screen.take two internal tables of structure EDIDD and EDIDC...
Now u need to fill the EDIDC record with message type,basic type,sender,reciver port,logical system...
now u need to get the invoice number from VBRK which the user has given in selection screen.Now u need to fill the data record.
Now call the FM 'MASTER_IDOC_DISTRIBUTE'.Now pass the edidc information and edidd information..to it.....
Regards,
Nagaraj
2007 Mar 20 7:33 AM
Hi Nagaraj
Thanks for your reply,
But how do i need to fill the data in EDIDC, I mean from where ?
regards
KVC
2007 Mar 20 8:53 AM
Hi KVC,
While develop the function module u pass some table with the structures od EDIDC,EDIDD,EDIDS. Now that internal table will be populated with the data by select statement.
e.g.. select * from EDIDC into table i_edidc where docno = zedidoc.
Hope this helps you.
Regard,
kumar.
2007 Mar 20 11:15 AM
dear neeraj,
i'm also a new for idoc.
will u send me a sample prog. so i can better under stand .
i try it but i not understatnd how to fill edidc tables
thanks
mukesh
2007 Mar 26 9:27 AM