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

create IDOC

Former Member
0 Likes
758

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.

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
686

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

5 REPLIES 5
Read only

former_member404244
Active Contributor
0 Likes
687

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

Read only

0 Likes
686

Hi Nagaraj

Thanks for your reply,

But how do i need to fill the data in EDIDC, I mean from where ?

regards

KVC

Read only

0 Likes
686

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.

Read only

0 Likes
686

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

Read only

Former Member
0 Likes
686

.