cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc

Former Member
0 Kudos

Hi,

How to add new segment to idoc and how to add new fields to this segment .

Pls help.

Regards,

Somenath

Accepted Solutions (1)

Accepted Solutions (1)

former_member335553
Active Contributor
0 Kudos

Hi

Extract taken from forum

Creation of IDoc

To Create Idoc we need to follow these steps:

<b>Create Segment ( WE31)

Create Idoc Type ( WE30)</b>

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.

Create IDOC Type

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

Answers (1)

Answers (1)

prabhu_s2
Active Contributor
0 Kudos

for adding fields to the segments refer T.C WE31

for the idoc type refer WE30

Former Member
0 Kudos

This is just an example:

Follow the steps:

1)WE31- Creation of extended message segment.

Click on create and give the segment name. For e.g. ZZDOCHDR. Enter all the fields which are required to populate in IDOC.

2) After creation of the segment release the segment from EDIT -> Set Release

Similarly other segments are created with the same procedure.

3) WE30-Create Extended IDOC type ZZORDERS05, which is the extension of basic type ORDERS05.Select Extension checkbox while creating the extended IDOC type ZZORDERS05.

4) WE82- Assign the Extended IDOC type ZZORDERS05 with message type ORDRSP and Basic type ORDERS05.

Thanks and Regards,

Chirag Gohil