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

IDOC extension

Former Member
0 Likes
584

Hi All,

It would be very kind if any one could give me steps for extending an IDOC of IDOC Type Orders04 !

Regards.

Hi All,

It would be very kind if any one could give me steps for extending an IDOC of IDOC Type Orders04 !

Regards.

3 REPLIES 3
Read only

Former Member
0 Likes
533

hi,

Refer these threads

Cheers

Alfred

Reward points for helpful answers

Read only

Former Member
0 Likes
533

Hi Aima,

These are the steps for enhaning idoc type;

1. WE31 : Create the segment Z1SEGMENT. Release

2. WE30 : Create IDoc type Extension.

Assign the basic type .

Insert the Segment Z1SEGMENT

under the required segment.

Release Idoc type.

3. Find the enhancement in the outbound or inbound FM.

eg: IDOC_CREATE_MATMAS

in the function exit (outbound) apply the code.

DATA : WA_EDIDD LIKE EDIDD.

"FOR STORING DATA RECORD OF EXTENDED SEGMENT

DATA : WA_Z1SEGMENT LIKE Z1SEGMENT.

"TO STORE DATA OF Z SEGMENT THAT U CREATED

IF SEGMENT_NAME = '<PARENT SEGMENT OF UR Z1SEGMENT>' .

SELECT <FIELDS> FROM <TABLE> INTO WA_ZSEGMENT.

CONCATENATE WA_ZSEGMENT-F1

WA_ZSEGMENT-F2

WA_ZSEGMENT-F3

WA_ZSEGMENT-F4

INTO WA_EDIDD-SDATA.

WA_EDIDD-SEGNAM = 'Z1SEGMENT'.

APPEND WA_EDIDD TO IDOC_DATA.

ENDIF.

hope this will help u.

Ramesh

Read only

Former Member
0 Likes
533

Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)

- Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.

- Click on Create new and enter a description and press enter.

- Click on ZIDOCTYPE01 and then on the Create icon.

- Enter ZIDOCTYPE as the segment type, click on Segment Editor.

- Enter a description for your segment type and create.

- Enter a description for your segment, enter each field required in your IDoc and press enter to validate.

- Save and generate, press back

- To release the segment choose Goto, Release from the menu.

- Check the box on the line of your segment.

- Save, back and enter.

- Your Idoc type structure should be displayed with your new segment.

- Save and back.

- To release the Idoc type choose Extras, Release type from the menu and Yes.

Have a look at below link. It will surely help you.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf

Also have a look at below link.

http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6550507d11d18ee90000e8366fc2/frameset.htm

Best Regards,

Vibha

*Please mark all the helpful answers