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
679

how to create a idoc ?plz send me steps plzzzzzzz?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

Hi

<b>Intermediate Documents (IDOCs)</b>

What is an IDoc

An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data.

IDoc is not a process.

<b>Intermediate Document</b>

IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.

IDOCs are independent of the sending and receiving systems.

IDOCs are independent of the direction of data exchange.

<b>Process </b>

The two available process for IDOCs are

Outbound Process

Inbound Process

<u><b>Creation of IDoc</b></u>

To Create Idoc we need to follow these steps:

Create Segment ( WE31)

Create Idoc Type ( WE30)

Create Message Type ( WE81)

Assign Idoc Type to Message Type ( WE82)

<b>Creating a Segment</b>

Go to transaction code WE31

Enter the name for your segment type and click on the Create icon

Type the short text

Enter the variable names and data elements

Save it and go back

Go to Edit -> Set Release

Follow steps to create more number of segments

<b>Create IDOC Type</b>

Go to transaction code WE30

Enter the Object Name, select Basic type and click Create icon

Select the create new option and enter a description for your basic IDOC type and press enter

Select the IDOC Name and click Create icon

The system prompts us to enter a segment type and its attributes

Choose the appropriate values and press Enter

The system transfers the name of the segment type to the IDOC editor.

Follow these steps to add more number of segments to Parent or as Parent-child relation

Save it and go back

Go to Edit -> Set release

<b>Create Message Type</b>

Go to transaction code WE81

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter

Click New Entries to create new Message Type

Fill details

Save it and go back

<b>Assign Message Type to IDoc Type</b>

Go to transaction code WE82

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.

Click New Entries to create new Message Type.

Fill details

Save it and go back

<b>Runtime Components</b>

There are three types of records

Control Record

Data Record

Status Record

Control Record - contains the key information like destination, IDoc type, message type, port and sender information.

Control records are of EDIDC type of structure

<b>Runtime Components</b>

Data Records - This contains two parts

Administrative Section and Data Section

Administrative Section consists of Idoc number, Segment Name, Segment number, Version, Segment Hierarchy etc.

Data Section contains the data of respective segment

Data records are of EDIDD type of structure

Status Record - whenever a process is taken place, system will generate status records.

We can identify the process with the number of status record.

01 - 49 for Outbound Process

50 - 75 for Inbound Process

when IDoc is processed the messages are:

01 - IDoc is created

30 - IDoc is ready for dispatch

03 - IDoc is processed

We need to write a Selection Program to create a Physical structure of IDoc

Import Parameters

Define a parameter of type NAST

Define a parameter of type EDIDC (for control record)

Export Parameters

Define a parameter of type WFAS1-ASGTP

Define a parameter of type EDIDC (for control record)

Tables

Define a parameter of type EDIDD (for Data record)

<b>Reward if usefull</b>

4 REPLIES 4
Read only

Former Member
0 Likes
602

There will be to process invloved in the creation of new idoc.

1. Create a new segments (We31)

2. Create a new IDOC type in WE30 and add the segments for

this.

3. Create new message type in WE81

4. Linkage the above message type to the IDOC type in

WE82.

5.then go to bd64 customer distibution model and define jthe partner involve.

6.create partner profile in we20.

7.then release the partner profiles .

8. Design a selection-program in order to get the data

from the appllication DB tables and gets create an

IDOC.

Read only

Former Member
0 Likes
602

How to create idoc?

*WE30 - you can create a IDOC type

For more information in details on the same along with the examples can be viewed on:

http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404

http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm

http://www.sappoint.com/presentation.html

http://www.allsaplinks.com/idoc_search.html

http://www.sapgenie.com/sapedi/idoc_abap.htm

http://www.erpgenie.com/sapedi/idoc_abap.htm

To Create Idoc we need to follow these steps:

Create Segment ( WE31)

Create Idoc Type ( WE30 )

Create Message Type ( WE81 )

Assign Idoc Type to Message Type ( WE82 )

Creating a Segment

Go to transaction code WE31

Enter the name for your segment type and click on the Create icon

Type the short text

Enter the variable names and data elements

Save it and go back

Go to Edit -> Set Release

Follow steps to create more number of segments

Create IDOC Type

Go to transaction code WE30

Enter the Object Name, select Basic type and click Create icon

Select the create new option and enter a description for your basic IDOC type and press enter

Select the IDOC Name and click Create icon

The system prompts us to enter a segment type and its attributes

Choose the appropriate values and press Enter

The system transfers the name of the segment type to the IDOC editor.

Follow these steps to add more number of segments to Parent or as Parent-child relation

Save it and go back

Go to Edit -> Set release

Create Message Type

Go to transaction code WE81

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter

Click New Entries to create new Message Type

Fill details

Save it and go back

Assign Message Type to IDoc Type

Go to transaction code WE82

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.

Click New Entries to create new Message Type.

Fill details

Save it and go back

Thanks

Read only

Former Member
0 Likes
602

To Create Idoc we need to follow these steps:

Create Segment ( WE31)

Create Idoc Type ( WE30 )

Create Message Type ( WE81 )

Assign Idoc Type to Message Type ( WE82 )

Creating a Segment

Go to transaction code WE31

Enter the name for your segment type and click on the Create icon

Type the short text

Enter the variable names and data elements

Save it and go back

Go to Edit -> Set Release

Follow steps to create more number of segments

Create IDOC Type

Go to transaction code WE30

Enter the Object Name, select Basic type and click Create icon

Select the create new option and enter a description for your basic IDOC type and press enter

Select the IDOC Name and click Create icon

The system prompts us to enter a segment type and its attributes

Choose the appropriate values and press Enter

The system transfers the name of the segment type to the IDOC editor.

Follow these steps to add more number of segments to Parent or as Parent-child relation

Save it and go back

Go to Edit -> Set release

Create Message Type

Go to transaction code WE81

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter

Click New Entries to create new Message Type

Fill details

Save it and go back

Assign Message Type to IDoc Type

Go to transaction code WE82

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.

Click New Entries to create new Message Type.

Fill details

Save it and go back

Check below link. It will give the step by step procedure for IDOC creation.

http://www.supinfo-projects.com/cn/2005/idocs_en/2/

ALE/ IDOC

http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc

http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419

http://www.netweaverguru.com/EDI/HTML/IDocBook.htm

http://www.sapgenie.com/sapedi/index.htm

http://www.sappoint.com/abap/ale.pdf

http://www.sappoint.com/abap/ale2.pdf

http://www.sapgenie.com/sapedi/idoc_abap.htm

http://www.sapgenie.com/sapedi/index.htm

http://www.allsaplinks.com/idoc_sample.html

http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

Reward if helpful

Thanks,

Mandeep

Read only

Former Member
0 Likes
603

Hi

<b>Intermediate Documents (IDOCs)</b>

What is an IDoc

An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data.

IDoc is not a process.

<b>Intermediate Document</b>

IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.

IDOCs are independent of the sending and receiving systems.

IDOCs are independent of the direction of data exchange.

<b>Process </b>

The two available process for IDOCs are

Outbound Process

Inbound Process

<u><b>Creation of IDoc</b></u>

To Create Idoc we need to follow these steps:

Create Segment ( WE31)

Create Idoc Type ( WE30)

Create Message Type ( WE81)

Assign Idoc Type to Message Type ( WE82)

<b>Creating a Segment</b>

Go to transaction code WE31

Enter the name for your segment type and click on the Create icon

Type the short text

Enter the variable names and data elements

Save it and go back

Go to Edit -> Set Release

Follow steps to create more number of segments

<b>Create IDOC Type</b>

Go to transaction code WE30

Enter the Object Name, select Basic type and click Create icon

Select the create new option and enter a description for your basic IDOC type and press enter

Select the IDOC Name and click Create icon

The system prompts us to enter a segment type and its attributes

Choose the appropriate values and press Enter

The system transfers the name of the segment type to the IDOC editor.

Follow these steps to add more number of segments to Parent or as Parent-child relation

Save it and go back

Go to Edit -> Set release

<b>Create Message Type</b>

Go to transaction code WE81

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter

Click New Entries to create new Message Type

Fill details

Save it and go back

<b>Assign Message Type to IDoc Type</b>

Go to transaction code WE82

Change the details from Display mode to Change mode

After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.

Click New Entries to create new Message Type.

Fill details

Save it and go back

<b>Runtime Components</b>

There are three types of records

Control Record

Data Record

Status Record

Control Record - contains the key information like destination, IDoc type, message type, port and sender information.

Control records are of EDIDC type of structure

<b>Runtime Components</b>

Data Records - This contains two parts

Administrative Section and Data Section

Administrative Section consists of Idoc number, Segment Name, Segment number, Version, Segment Hierarchy etc.

Data Section contains the data of respective segment

Data records are of EDIDD type of structure

Status Record - whenever a process is taken place, system will generate status records.

We can identify the process with the number of status record.

01 - 49 for Outbound Process

50 - 75 for Inbound Process

when IDoc is processed the messages are:

01 - IDoc is created

30 - IDoc is ready for dispatch

03 - IDoc is processed

We need to write a Selection Program to create a Physical structure of IDoc

Import Parameters

Define a parameter of type NAST

Define a parameter of type EDIDC (for control record)

Export Parameters

Define a parameter of type WFAS1-ASGTP

Define a parameter of type EDIDC (for control record)

Tables

Define a parameter of type EDIDD (for Data record)

<b>Reward if usefull</b>