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: 

Reduce IDoc Segment Fields

bjorn-henrik_zink
Active Participant
0 Kudos

Hi,

how can I reduce IDoc segment fields?

Any help is greatly appreciated.

Thanks.

/ Elvez

7 REPLIES 7

Former Member
0 Kudos

Hi,

If you want to reduce the field length then you will have to create Z segments and assign them to Z idoc

T.code WE30.

In the Z segments you can define the fields you need and the length that you need

Sameena

Message was edited by: sameena attarwala

Former Member
0 Kudos

u Cannot reduce the idoc field directly.

what u can do is create Z idoc ;

0 Kudos

Hi Manoj,

what about transaction bd53?

Have a look at http://www.supinfo-projects.com/cn/2005/idocs_en/3/ section 3.2.1:

<i>The number of segments or the number of fields in a segment can also be reduced in a static way, while still keeping the structure of the basic IDoc type. Indeed, for all basic IDocs, SAP had envisaged their reduction.

A reduced IDoc has less segments than the basic IDoc, provided that the deleted segments are not mandatory. The segments of a reduced IDoc can also have less fields than the corresponding segments of the basic IDoc.</i>

Is the author wrong?

/Elvez

0 Kudos

This is related to Reactivating change pointers for the message type

0 Kudos

Hi Manoj,

thanks for the fast reply. How come that bd53 is working on segment level but not on segment field level?

/Elvez

ferry_lianto
Active Contributor
0 Kudos

Hi Elvez,

There are two filtering in IDoc.

<b>Segment Filtering:</b>

Segment filtering can be achieved using transaction BD56. Here you can suppress a whole segment irrespective of data inside it . You have to give Message Type / Sender Partner / Receiver Partner.

<b>Data Filtering:</b>

Data filtering can be done in distribution model (BD64)where you can restrict whole IDOCS or partials IDOCS to be send based on data in fields inside IDOC depending on whether the segment in which you filter is at the highest level or at a lower level. For example in MATMAS if you put a filter of E1MARCM for a particular plant , only data for this plant will go and other plants will be ignored.

Also you can define the reduce message types and activate message types in transaction BD53.

SAP recommends that you use message types:

"MATMAS" (material master tables) and

"DEBMAS" (customer master) as a template.

Please check this link for detail information.

http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

0 Kudos

Hi Ferry,

could you provide a concrete example of how to reduce (not filter)a segment field?

Thanks.

/Elvez