cancel
Showing results for 
Search instead for 
Did you mean: 

How IDOC is created

Former Member
0 Kudos

Hi experts,

If we create the Master/ Transactional data in SAP it will generate IDOC. How the data that is created (Ex. Material data in MM01) will fit into the IDOC fields?

Thanks

Manoj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Database fields are mapped to segments. Segments are attached to Idoc type & IDOC type is assigned to Message type.

An IDoc consists of a control record with structure edidc and one or more data records with structure edidd. The control record contains the sender and recipient of the IDoc, as well as information on the type of message.To be able to pass an IDoc to the ALE layer, you must set up a field string with structure edidc and an internal table with structure edidd. They are used to call function module master_idoc_distribute, which performs the save to the database and triggers the dispatch if necessary.

So basically creation of IDOC is done using function module MASTER_IDOC_DISTRIBUTE.

Hope it clarifies your doubt.

Thanks & Regards

Prabhat

Former Member
0 Kudos

Hiall,

Thank you very much for your valueble answers. and I wolud like to close this thread...

Thanks,

Manoj

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Manoj,

Some configuration is involved for that.

From what i know...

You need to create a Output Type , then configure that output type using NACE transaction..

Then while creating Master Data , using standard transaction ( Like MM01), you can specify the output type and trigger a IDOC.

BR,

Sushil.

former_member187563
Contributor
0 Kudos

hi,

When you call any transaction the corresponding report or function module is executed.

Like for MM01 ,report SAPMMG01 gets executed.And this report fills the data in idoc and creates it.

Like you can write a customized report for idoc creation,SAP provides standard reports for idoc creation.

regards,

ujjwal kumar