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: 

How to use FM "MASTER_IDOC_DISTRIBUTE"?

Former Member
0 Kudos

Hi all,

Actually i hav to create a Purchase Order using inbound IDOC.

the problem is tat i hav to create PO with line items and i dont know how create PO with line items using the specified FM "MASTER_IDOC_DISTRIBUTE".

Here the for creating PO i m using.

Basic type as : PORDCR05

Message type as: PORDCR

FM : IDOC_INPUT_PORDCR

Thanks.

Regards.

1 REPLY 1

Former Member
0 Kudos

hi,

Declare internal tables of type EDIDD, EDIDC,

use select statement to gather data which you want to send, fill the segmegmant name segnam, segment number segno and sdata use concatenate to populate sdata.

fill the edidc str with patner profile and idoc type

pass these structures to

master_idoc_distribute.

as you know this is the selection program(like bd10)

hope this helps

santhosh