06-24-2006 11:44 AM
Hi,
how can I reduce IDoc segment fields?
Any help is greatly appreciated.
Thanks.
/ Elvez
06-24-2006 11:50 AM
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
06-24-2006 11:51 AM
u Cannot reduce the idoc field directly.
what u can do is create Z idoc ;
06-24-2006 11:53 AM
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
06-24-2006 12:01 PM
This is related to Reactivating change pointers for the message type
06-24-2006 12:07 PM
Hi Manoj,
thanks for the fast reply. How come that bd53 is working on segment level but not on segment field level?
/Elvez
06-24-2006 1:36 PM
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.
06-24-2006 7:06 PM
Hi Ferry,
could you provide a concrete example of how to reduce (not filter)a segment field?
Thanks.
/Elvez