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

Adding segment type to idoc type

Former Member
0 Likes
4,349

Hi All,

I have created a new segment type in we31 for adding a new field.Now i need to add this segment type to the existing idoc type,can any body please explain me how to do this..

Regards,

sai prasad

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,847

Hi sai,

Go to the tcode WE30 .

First you have to extende your existing Idoc type to pass the new segment. Give some Zidconame and check the radio button extended Idoc and say create.It will ask you to give the basic Idoc type name.Now once the Extended Idoc type is created go inside the IDOc and place the cursor on the required position where exactly you want to add the segement and click the segmetn create button from the toolbar buttons and pass your segment name.

6 REPLIES 6
Read only

former_member188829
Active Contributor
0 Likes
1,847

Hi Sai,

Use WE30 transaction

Read only

Former Member
0 Likes
1,847

Segments:

Segments form the basic building blocks of an IDoc type and are used to store the actual datta. A segment type is the name of a segment and is independent of the SAP elease. A segment definition is the release-specific name of a segment.

Steps in creating Segments:

T.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 and Go back.

Go to Edit -> Set Release.

Repeat the steps to create more segments.

Read only

Former Member
0 Likes
1,847

Hi,

goto the tcode for segemnts adding is we30. and we31. for basi idoc types and messages we can see here

in that segments we will assign the data field. based on that fields only data will pass.

we r adding these data fields to segments, these r attached to basic idoc and message.

use the tcode we30 and we30.

please reward points, if it is useful.

regards,

satish.

Read only

Former Member
0 Likes
1,847

Process in creating IDOC:

Basic Type:

Basic IDoc type defines the structure and format of the business document that is to be exchanged between two systems.

Segments:

Segments form the basic building blocks of an IDoc type and are used to store the actual datta. A segment type is the name of a segment and is independent of the SAP elease. A segment definition is the release-specific name of a segment.

Steps in creating Segments:

T.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 and Go back.

Go to Edit -> Set Release.

Repeat the steps to create more segments.

IDOC TYPE:

Business data is exchanged with an external system using the IDoc Interface.

IDoc types (Special Structures) An IDoc type is defined through its permitted segments. Segments can be dependent on each other (parent and child segments). The IDoc interface can check for each IDoc whether thhe segments contained are compatible with thhe definitiion of its type. This systax check is activated or deactivated in the Partner Profiles.

Steps in creating IDoc Type:

T.Code WE30 to create IDoc Type.

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.

Message Type:

Steps in Creating Message Type:

T.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:

T.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.

Reward points if useful.

Read only

Former Member
0 Likes
1,848

Hi sai,

Go to the tcode WE30 .

First you have to extende your existing Idoc type to pass the new segment. Give some Zidconame and check the radio button extended Idoc and say create.It will ask you to give the basic Idoc type name.Now once the Extended Idoc type is created go inside the IDOc and place the cursor on the required position where exactly you want to add the segement and click the segmetn create button from the toolbar buttons and pass your segment name.

Read only

0 Likes
1,847

Hi Araja,

I have created extension idoc type and added to basis type.I did not release that.i have a question here is it possible to delete this extension idoc that is added to basic idoc after releasing.

Regards,

Sai Prasad