‎2007 Dec 28 6:53 AM
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
‎2007 Dec 28 7:07 AM
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.
‎2007 Dec 28 6:56 AM
‎2007 Dec 28 7:01 AM
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.
‎2007 Dec 28 7:03 AM
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.
‎2007 Dec 28 7:03 AM
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.
‎2007 Dec 28 7:07 AM
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.
‎2007 Dec 28 8:12 AM
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