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

Basic IDOC Segment Enhancement

Former Member
0 Likes
4,439

My requirement is to add a new segment to the basic IDOC structure

I have tried this using a <b>Z</b> type IDOC with reference to the basic type then i am getting an error saying that clipboard is empty.

Please help me to solve this.

<b>Thanq</b>

4 REPLIES 4
Read only

Former Member
0 Likes
1,591

Hi,

Make use of WE30/ WE31/ WE32.

Idoc extension can be done with 4 steps

1. creation of new extension type and a new segment

2. creation of a idoc type

3. link idoc type to message type

4. check the idoc type.

1. creation of new extension type and a new segment

we30--idoc typesobject name-extension type-create-create new-create-place the cursor on the location

2. step:

we30----

3. we82 or we 30

4. WEDI

Also:

Use WE31 create segment and release.

Use WE30 Use to create IDOC type. Now in this we have two options.

1. Basic ( not required now)

2. Extended (select this)

it will as for the Basic Idoc type to which you want to add this segment.

Now give the Basic IDOC type and say create.

Now it will show the tree structure of Basic IDOC and now add your Segment as child segment to any one of the Segments displayed.

Adding the segment at same level is not possible.

BR,

<b>Reward points if found helpful…

Cheers,

Chandra Sekhar</b>

Read only

0 Likes
1,591

Hi Chandra Sekhar,

Thank you for spending time for my problem.But,the version of my problem is not adding a child to the IDOC but to add a new segment as parent segment and not as a child to the existing segment.

Can u help me out in this problem.

Thanq for ur reply

Read only

Former Member
0 Likes
1,591

Dear Srikanth,

Extending a Basic Type

Prerequisites


You must have completed the required steps in Extending an IDoc Type .

It can occur that you want to fill table fields which already have an equivalent in the basic type but which are not supplied in the standard system. You therefore do not need to extend the basic type, but rather only the function module that supplies the application fields. In this case, skip the procedure.

Procedure


...
1. Choose SAP menu --> Tools --> IDoc Interface/ALE --> Development --> IDoc --> Generate ALE Interface --> IDoc Types (WE30). The IDoc type editor is displayed.

2. If you have not already done so, create a transport request for your development objects (extension segments, extension, function exit and so on). You can access the Workbench Organizer from the editor by selecting Requests (Organizer). From there, select Request ® Create and reply to the questions which appear on screen. By selecting you can return to the IDoc type editor.

3. Name your extension in accordance with the customer namespace and choose Extension as the development object. Choose .
The name of your extension should be no more than 8 characters if you wish to use the extension to communicate with partners who are using SAP Releases prior to 4.0. You can only use extension names with more than 8 characters from Release 4.0 onwards.

4. Choose one of the following options:
Create New: Create the extension without a reference.
· Create copy,which you can then change if necessary
· Create as successor: Note that only one successor is allowed per release for each extension.

5. Select the basic type which is to be combined with your extension. Confirm your entries.
The basic type is displayed as a tree structure. See the color legend (Utilities ® Color legend).

6. Position the cursor on the segment where you wish to append the extension segments (the reference segment). Choose . You must now assign attributes for these child segments:
· Mandatory segment (indicator): Must data be written to this segment in the IDoc?
· Maximum and minimum frequency of use:

7. You can add further children or “grandchildren” to this or any other reference segment in the basic type.

8. When the new extension is complete, you can save your entry.
You should keep the following factors in mind when dealing with extensions:
· Segments must not explicitly occur more than once in the IDoc type - this means that the extension cannot have any segments which already exist in the basic type. This also means that a successor must not have any segments which already exist in the predecessor.
· Parent segments of predecessors must remain parent segments in the case of successors.
· Extension segments cannot be created from reference segments using the Cut and Paste functions and vice versa.
In the example call your extension Z1ORDERS. Append Z1TEST1 child segment to E1EDP19reference segment in ORDERS01 basic type. The child segment can be used only once

Best Regards,
Rajesh

Please reward points if helpful.

Read only

0 Likes
1,591

Hi Rajesh,

Thank you for spending time for my problem.But,the version of my problem is not adding a child to the IDOC but to add a new segment as parent segment and not as a child to the existing segment.

Can u help me out in this problem.

Thanq for ur reply