Application Development 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: 

Adding new fields in existing IDOC

Former Member
0 Kudos

Dear All,

I got a requirement to add a new field in a existing IDOC under a specific segment,Basic type of this IDOC is SHPMNT05.

Under the segment E1EDL20->E1EDL24 here I need to add one more field.

Can any one guide me how to do this .

What kind of precautions I should take while developing and transporting it to Production.

Please help

7 REPLIES 7

Former Member
0 Kudos

Hi,

Pl do the following steps:

1.We30 - message type eg DEBMAS06 , clieck on extension , make sure it is

not in release status , it should be cancel status (Edit Option)

then only it will allow to modify

Add new segment in particular position

2. Segement definitation from we31 need to release.

we30->new seg name -> menu bar EDIT->set Release.

3. Extended field will not populate automatically. Need to write in the include

or user exit prog to pass data .

If sounds good pl reward.

Cheers.

0 Kudos

Very useful one, fixed my issue

Former Member
0 Kudos

I would do this way.

A)Create a new segment with fields and release it.

B) Extend delvry03 idoc in WE30 as for example ZDELVRY03.

C) include new segment as child of E1EDL24.

D) If IDoc is outbound, using user exits fill this new segment. If IDoc is inbound, using user exits you can do custom processing

In partner profile specify the extension.

I have extended dlvry03 idoc in the past successfully.

0 Kudos

Hi Venu...

I have created a new Segement with the fields but plz guide me how can I add this new segment as a child segment to the existing segment.

Plz help.

Former Member
0 Kudos

Hi Hasan,

Please follow the steps below:

Step1 :

TCode- BD95.

Create ALE object type “” with table name “EKKO” and Field name “-BSART”

Step2:

Tcode- BD59 – “Assignment of Object type to Message”

Give the message type “ORDERS”.

Assign the object type “” to segment type “E1EDK01’ with field “BSART”.

Step3:

Tcode BD64—Create Model view.

Create model view ’’ with Message type ‘ORDERS’.

Create Data Filtering for the field BSART with order types “YLSO, YLRO.

Step 4:

Creation of Segments :

WE31

As some of the fields are missing in Idoc type ORDERS 05/04 we are going to add new segments in the header level as well as item level.

The header level segment ‘’ contains the fields : EKNAM/ CHAR(18), STREET/char(60), NETWR/ Curr(15), PO Approver 1/2/3.

Item level segment ‘’ contains the fields : EEIND char(10), EBELP numc(5), EAN11 char(18), NUMTP char(2), TXZ01 char(40), MEINS unit(3), IDNLF char 35.

Step 5:

WE30

Create an enhanced IDOC “” which is of basic type ‘ORDERS05’ .

Create an enhanced IDOC “” which is of basic type ‘ORDERS04’.

Step 6:

When a NEW purchase order is created:

As new segments are enhanced to ORDERS05, we need to populate this fields .

Tcode : WE41.

Process code ME10.

Function module: IDOC_OUTPUT_ORDERS

In this FM we have to write the logic for population of data in the fields mentioned in the segment.

Under “call customer-function '001'”

When existing purchase order is changed:

As new segments are enhanced to ORDERS04, we need to populate this fields .

Tcode : WE41.

Process code ME11.

Function module: IDOC_OUTPUT_ORDCHG

In this FM we have to write the logic for population of data in the fields mentioned in the segment.

Under “call customer-function '001' ”

Regards

Kannaiah

Former Member
0 Kudos

Hi Hasan,

Please create a separate package type or assign the mentioned package in your project to the created object type.

Go to WE30 and give the name of the enhanced IDOC type and check extension and give the basic IDOC type and select the segment underwhich u want to add the created field.

Regards

Kannaiah

former_member181962
Active Contributor
0 Kudos

Hi Raza,

Refer this link for the step by step appraoch of extending an Idoc:

http://help.sap.com/saphelp_erp2005/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/frameset.htm

Regards,

Ravi