Creating Segments, Base Type, Message Type, and Associating Message Type with Base Type Creating a Segment To create a segment, we'll use transaction WE31. Enter the segment name and click "Create." Provide a description for the segment. Enter the segment fields with the same fields as table ZUSERS except the client field. Check the "Qualified segment" flag. Save. We need to release the created segment using the menu option Edit => Set release. It's possible to cancel the release of the segment through Edit => Cancel release. Creating a Base Type For creating a base type, we'll use transaction WE30. Enter the base type name in Obj. Name field and click "Create." Provide a description and keep the "Create new" flag checked to create a new type. Check the base type and click "Create." Enter the segment. Check the "Mandatory seg." flag and provide the minimum and maximum number of segment repetitions in the IDOC. Finally, save. Release the base type using the menu option Edit => Set release. We can cancel the release in the same menu option. Creating the Message Type To create a message type, we'll use transaction WE81. Switch from Display to Change mode using the "Modify" button. Then click "New Entries." Enter the message type name and a description. Save. Associating Message Type with Base Type For associating the message type with the base type, we'll use transaction WE82. Switch from Display to Change mode using the "Modify" button. Then click "New Entries." Enter the message type, base type, and version 701. Save.