<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ORDERS05 Idoc Type Extension in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641422#M285667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am extending the segment E2EDKA3 in ORDERS05. Please let me know any user exit or any other way to populate the values in the extended segments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am adding these fields: VBPA-KUNNR,VBPA-ADRNR,VBPA-XCPDK &amp;amp; VBPA-ADRNP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u have solved ur problem.&lt;/P&gt;&lt;P&gt;can u pl help me out in clearing these questions?&lt;/P&gt;&lt;P&gt;1)wat's the purpose of adding extending an segment with extra fields(real-time scenario).&lt;/P&gt;&lt;P&gt;2) code for populating the extended segmant coded in the user-exit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pl give reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking u...&lt;/P&gt;&lt;P&gt;ajay(ajay.techno4u@gmail.com)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 18:32:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T18:32:51Z</dc:date>
    <item>
      <title>ORDERS05 Idoc Type Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641420#M285665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am extending the segment E2EDKA3 in ORDERS05. Please let me know any user exit or any other way to populate the values in the extended segments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am adding these fields: VBPA-KUNNR,VBPA-ADRNR,VBPA-XCPDK &amp;amp; VBPA-ADRNP					.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 19:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641420#M285665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T19:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: ORDERS05 Idoc Type Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641421#M285666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXIT_SAPLEINM_002, include ZXM06U02, enhancement MM06E001.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 19:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641421#M285666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: ORDERS05 Idoc Type Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641422#M285667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am extending the segment E2EDKA3 in ORDERS05. Please let me know any user exit or any other way to populate the values in the extended segments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am adding these fields: VBPA-KUNNR,VBPA-ADRNR,VBPA-XCPDK &amp;amp; VBPA-ADRNP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u have solved ur problem.&lt;/P&gt;&lt;P&gt;can u pl help me out in clearing these questions?&lt;/P&gt;&lt;P&gt;1)wat's the purpose of adding extending an segment with extra fields(real-time scenario).&lt;/P&gt;&lt;P&gt;2) code for populating the extended segmant coded in the user-exit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pl give reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking u...&lt;/P&gt;&lt;P&gt;ajay(ajay.techno4u@gmail.com)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 18:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641422#M285667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T18:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: ORDERS05 Idoc Type Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641423#M285668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this info ucan able to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enhancement of IDoc Type&lt;/P&gt;&lt;P&gt;Usually enhancement takes place when the content in IDocs provided by SAP are not sufficient for the business process. IDoc extension can take place whenever dictionary table has a new structure appended required by the business process.  &lt;/P&gt;&lt;P&gt;In brief IDoc extension takes place when extra fields are required for the business process. &lt;/P&gt;&lt;P&gt;Let us take a scenario and understand the process of IDoc extension. &lt;/P&gt;&lt;P&gt;In this scenario say visitor is different from the actual customer who has came to the sales office in behalf of the customer to obtain the quotation or inquiry etc. Or an authorized agent qualified by the actual customer to order for items. So a field by name NAMEVI (Visitor) is added to Customer master data. As there is no provision given by SAP to handle this, we need to extend an IDoc.  &lt;/P&gt;&lt;P&gt;The standard message type and IDoc type provided by SAP are DEBMAS and DEBMAS05.  &lt;/P&gt;&lt;P&gt;Consider the data in the table below for extending the IDoc. These details can be understood in different sections in the process of extending it.  &lt;/P&gt;&lt;P&gt;Basic IDoc type 	DEBMAS05 &lt;/P&gt;&lt;P&gt;Version 	4.7 &lt;/P&gt;&lt;P&gt;IDoc extension 	DEBMASEXT &lt;/P&gt;&lt;P&gt;Custom segment 	Z1KNA1 &lt;/P&gt;&lt;P&gt;Fields in Custom Segment 	Visitor &lt;/P&gt;&lt;P&gt;Parent of Custom Segment 	E1KNA11 &lt;/P&gt;&lt;P&gt; Outbound process &lt;/P&gt;&lt;P&gt;Step1. Customize kna1 table by appending a structure provided by SAP (ZAKNA1)  &lt;/P&gt;&lt;P&gt;Component 			Component Type &lt;/P&gt;&lt;P&gt;VISITOR 				NAMEVI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step2: Write a module pool program to update some existing customers to add data  for Visitor.  &lt;/P&gt;&lt;P&gt;Step3: Create a custom segment &lt;/P&gt;&lt;P&gt;Transaction Code: WE31&lt;/P&gt;&lt;P&gt;Segment type: Z1KNA11   Click  (create). Provide short text  &lt;/P&gt;&lt;P&gt;Field Name 			Data element &lt;/P&gt;&lt;P&gt;VISITOR 			NAMEVI &lt;/P&gt;&lt;P&gt;Save  &lt;/P&gt;&lt;P&gt;Step4: Create IDoc extension &lt;/P&gt;&lt;P&gt;Transaction 	WE30 &lt;/P&gt;&lt;P&gt;Object Name 	DEBMASEXT &lt;/P&gt;&lt;P&gt; Choose Extension &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click   and it leads to next screen. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Linked basic type: DEBMAS05 &lt;/P&gt;&lt;P&gt;Provide description and enter &lt;/P&gt;&lt;P&gt;Observe all the segments to be copied into your IDoc extension from linked basic &lt;/P&gt;&lt;P&gt;type. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Select E1KNA11 and click  (create segment) to obtain a popup window &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Provide the required values and observe child segment Z1KNA11 to be added to &lt;/P&gt;&lt;P&gt; parent segment E1KNA11.  &lt;/P&gt;&lt;P&gt;Step5: Release segment and IDoc extension &lt;/P&gt;&lt;P&gt;Transaction: WE31 &lt;/P&gt;&lt;P&gt;Segment type: Z1KNA11 &lt;/P&gt;&lt;P&gt;Path: Edit à Set release &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step6: Assign Basic type to extension / messages &lt;/P&gt;&lt;P&gt;Transaction: WE82 &lt;/P&gt;&lt;P&gt;Click  , then  &lt;/P&gt;&lt;P&gt;Select DEBMAS message type against DEBMAS06 basic type &lt;/P&gt;&lt;P&gt;Click   provide the information &lt;/P&gt;&lt;P&gt;Message Type 	Basic Type 	Extension 	Version &lt;/P&gt;&lt;P&gt;DEBMAS 	DEBMAS06 	DEBMASEXT 		4.7 &lt;/P&gt;&lt;P&gt;Delete the earlier one from which it was copied. &lt;/P&gt;&lt;P&gt;Save.  &lt;/P&gt;&lt;P&gt;Observe the result as follows &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Step 7: Check and Transport IDoc extension &lt;/P&gt;&lt;P&gt;Transaction: WE30 &lt;/P&gt;&lt;P&gt;Object name: DEBMASEXT &lt;/P&gt;&lt;P&gt;Path: Development object à Check &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Ensure that there are no errors or warnings &lt;/P&gt;&lt;P&gt;Now transport &lt;/P&gt;&lt;P&gt;Path: Development à Transport  &lt;/P&gt;&lt;P&gt;Step8: Find suitable user exit for writing code to support IDoc extension &lt;/P&gt;&lt;P&gt;Transaction: SE84. &lt;/P&gt;&lt;P&gt;Click Enhancements &lt;/P&gt;&lt;P&gt;In short text provide &lt;STRONG&gt;customer&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Find suitable enhancement to be VSV00001  &lt;/P&gt;&lt;P&gt;					Alternative way &lt;/P&gt;&lt;P&gt;Transaction: SMOD &lt;/P&gt;&lt;P&gt;Click F4 help for Enhancement &lt;/P&gt;&lt;P&gt;Path: F4help à SAP Applications à Logistics general à Logistics Basic Data à &lt;/P&gt;&lt;P&gt;Business partners à Vendor Master. &lt;/P&gt;&lt;P&gt;Find the enhancement as VSV00002, which is an approximate user exit. &lt;/P&gt;&lt;P&gt;Now search for different extensions like VSV00001. Then see for its components. &lt;/P&gt;&lt;P&gt;Identify the appropriate user exit to be &amp;#145;EXIT_SAPLVV01_001&amp;#146; (Create Export of &lt;/P&gt;&lt;P&gt;Additional Customer Master Segments). This user exit can be used in outbound ALE &lt;/P&gt;&lt;P&gt;process, meant for filling the data into custom segments.  &lt;/P&gt;&lt;P&gt;You have to identify here another user exit as &amp;#145;EXIT_SAPLVV02_001&amp;#146;, which is &lt;/P&gt;&lt;P&gt;helpful for inbound ALE process. This user exit can be used to read the segments &lt;/P&gt;&lt;P&gt; and post it to Application repository.  &lt;/P&gt;&lt;P&gt;Step9: Develop a project to encapsulate enhancements and components. &lt;/P&gt;&lt;P&gt;Transaction: CMOD. &lt;/P&gt;&lt;P&gt;Enhancement: custex and click Create to provide attributes. &lt;/P&gt;&lt;P&gt;Click Enhancement Assignments. &lt;/P&gt;&lt;P&gt;Provide VSV00001, short text and save. &lt;/P&gt;&lt;P&gt;From the initial screen of the transaction, select components and click change. &lt;/P&gt;&lt;P&gt;Find 4 components to be added. &lt;/P&gt;&lt;P&gt;Activate them. &lt;/P&gt;&lt;P&gt;Select user exit EXIT_SAPLVV01_001 for outbound process and double click it. It leads to function builder. &lt;/P&gt;&lt;P&gt;Double click on provided include program ZXVSVU01 and press enter. &lt;/P&gt;&lt;P&gt;Now, write supporting code for IDoc extension, i.e., populating custom segments in IDoc. &lt;/P&gt;&lt;P&gt;Check the code and activate.   &lt;/P&gt;&lt;P&gt;Code in ZXVSVU01 &lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&amp;amp; Include           ZXVSVU01                                         * &lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*In this scenario, the E1KNA11 has been extended to accommodate &lt;/P&gt;&lt;P&gt;*User-defined fields in the customer table kna1. The name of the &lt;/P&gt;&lt;P&gt;*extended &lt;/P&gt;&lt;P&gt;*segment is z1kna11. There is one custom field: visitor &lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*Data declarations &lt;/P&gt;&lt;P&gt;DATA: kna1m like e1kna1m, &lt;/P&gt;&lt;P&gt;      kna11 like e1kna11, &lt;/P&gt;&lt;P&gt;      z1kna11 like z1kna11, &lt;/P&gt;&lt;P&gt;      w_kna1 like kna1.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; make sure you are processing correct message type &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;check message_type eq 'DEBMAS'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;make sure data is added after the correct segment &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;check segment_name eq 'E1KNA1M'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;since customer number is not passed in this user exit, you need to go &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;through the data records to find the customer number &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at idoc_data. &lt;/P&gt;&lt;P&gt;  case idoc_data-segnam. &lt;/P&gt;&lt;P&gt;     when 'E1KNA1M'. &lt;/P&gt;&lt;P&gt;       move idoc_data-sdata to kna1m. &lt;/P&gt;&lt;P&gt;     when 'E1KNA11'. &lt;/P&gt;&lt;P&gt;       move idoc_data-sdata to kna11. &lt;/P&gt;&lt;P&gt;  endcase.                             " case idoc_data-segname. &lt;/P&gt;&lt;P&gt;endloop.                               " loop at idoc_data.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;select data from the user-defined fields in kna11. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select single * &lt;/P&gt;&lt;P&gt;  from kna1                            " Customer master table &lt;/P&gt;&lt;P&gt;  into w_kna1 &lt;/P&gt;&lt;P&gt; where kunnr = kna1m-kunnr. &lt;/P&gt;&lt;P&gt;if sy-subrc eq 0. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; set the idoc extension name for control record &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  idoc_cimtype = 'DEBMASEX'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; clear custom fields from kna1 to extended segment &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear z1kna11. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; copy custom fields from kna1 to extended segment  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;move-corresponding w_kna1 to z1kna11. " field name must be same &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; condense all fields of extended segment &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  condense: z1kna11-visitor. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; populate segment name in the data record, copy data contents into it  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; and append the data record to existing data records in &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  move 'Z1KNA11' TO IDOC_data-segnam.    " administrative section &lt;/P&gt;&lt;P&gt;  move z1kna11 to idoc_data-sdata.       " data section  &lt;/P&gt;&lt;P&gt;  append idoc_data. &lt;/P&gt;&lt;P&gt;endif.                                 " if sy-subrc eq 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 10:  &lt;/P&gt;&lt;P&gt;Define Logical System &lt;/P&gt;&lt;P&gt;Assign client to Logical System &lt;/P&gt;&lt;P&gt;Maintain RFC Destination &lt;/P&gt;&lt;P&gt;Maintain Customer Distribution Model &lt;/P&gt;&lt;P&gt;Generate Partner Profiles &lt;/P&gt;&lt;P&gt;Distribute Customer Distribution Model &lt;/P&gt;&lt;P&gt; INBOUND PROCESS &lt;/P&gt;&lt;P&gt;Step 11: Append the custom structure to the table KNA1 similar to the process done &lt;/P&gt;&lt;P&gt;        in outbound process. &lt;/P&gt;&lt;P&gt;Step 12. &lt;/P&gt;&lt;P&gt;Define Logical System &lt;/P&gt;&lt;P&gt;Assign client to Logical System &lt;/P&gt;&lt;P&gt;Generate Partner Profiles &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 13. Execute the transaction to &amp;#145;Send Customers&amp;#146; from Outbound system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 14. Now in the Inbound system, create the project in the similar way as done at &lt;/P&gt;&lt;P&gt;        outbound side. &lt;/P&gt;&lt;P&gt;In the user exit EXIT_SAPLVV02_001, find include &amp;#145;ZXVSVU02&amp;#146;. Write the code to &lt;/P&gt;&lt;P&gt; support IDoc extension. &lt;/P&gt;&lt;P&gt;Code in ZXVSVU02 &lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&amp;amp;  Include           ZXVSVU02                                         * &lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: kna1m like e1kna1m, &lt;/P&gt;&lt;P&gt;      kna11 like e1kna11, &lt;/P&gt;&lt;P&gt;      z1kna11 like z1kna11. &lt;/P&gt;&lt;P&gt;data fs_kna1 type kna1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message i000(0) with 'INBOUND PROCESS CALLED'. &lt;/P&gt;&lt;P&gt;LOOP AT IDOC_data. &lt;/P&gt;&lt;P&gt;  case idoc_data-segnam. &lt;/P&gt;&lt;P&gt;    when 'E1KNA1M'. &lt;/P&gt;&lt;P&gt;      kna1m = idoc_data-sdata. &lt;/P&gt;&lt;P&gt;    when 'E1KNA11'. &lt;/P&gt;&lt;P&gt;      kna11 = idoc_data-sdata. &lt;/P&gt;&lt;P&gt;    when 'Z1KNA11'. &lt;/P&gt;&lt;P&gt;      z1kna11 = idoc_data-sdata. &lt;/P&gt;&lt;P&gt;      select single * &lt;/P&gt;&lt;P&gt;        from kna1 &lt;/P&gt;&lt;P&gt;        into fs_kna1 &lt;/P&gt;&lt;P&gt;       where kunnr = kna1m-kunnr. &lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0. &lt;/P&gt;&lt;P&gt;        update kna1 &lt;/P&gt;&lt;P&gt;           set visitor = z1kna11-visitor &lt;/P&gt;&lt;P&gt;         where kunnr = kna1m-kunnr. &lt;/P&gt;&lt;P&gt;      else. &lt;/P&gt;&lt;P&gt;        idoc_status-docnum = idoc_control-docnum. &lt;/P&gt;&lt;P&gt;        idoc_status-status = '51'. &lt;/P&gt;&lt;P&gt;        idoc_status-msgty = 'E'. &lt;/P&gt;&lt;P&gt;        idoc_status-msgid = 'ZE'. &lt;/P&gt;&lt;P&gt;        idoc_status-msgno = '005'. &lt;/P&gt;&lt;P&gt;        idoc_status-msgv1 = kna1m-kunnr. &lt;/P&gt;&lt;P&gt;     append idoc_status. &lt;/P&gt;&lt;P&gt;      endif.                           " if sy-subrc eq 0. &lt;/P&gt;&lt;P&gt;  endcase.                             " case idoc_data-segnam. &lt;/P&gt;&lt;P&gt;endloop.                               " LOOP AT IDOC_data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 15. Assign FM to extension/Message type &lt;/P&gt;&lt;P&gt;Transaction: 	WE57 &lt;/P&gt;&lt;P&gt;Path: Change à New Entries &lt;/P&gt;&lt;P&gt;Select &amp;#145;IDOC_INPUT_DEBITOR&amp;#146; against DEBMAS06 basic type, to fill extra &lt;/P&gt;&lt;P&gt;information as shown below. &lt;/P&gt;&lt;P&gt;Function Module		Basic Type	Message Type		Extension &lt;/P&gt;&lt;P&gt;IDOC_INPUT_DEBITOR	DEBMAS06	DEBMAS		DEBMASEXT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 16. Execute the transaction to &amp;#145;Get Customers&amp;#146;. &lt;/P&gt;&lt;P&gt;And observe that records with extra data are saved in database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Nag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 03:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641423#M285668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T03:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: ORDERS05 Idoc Type Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641424#M285669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)wat's the purpose of adding extending an segment with extra fields(real-time scenario).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user has any custom fields in one system and while migrating the data he wanted the custom fields data to be migrated. Then we have to go for IDoc extensions. In the extension we will ass the Custom fields. Then in order to populate data and retrive data we have to use EXITS in both the systems.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP provides exits for posting data as well as retriving data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) code for populating the extended segmant coded in the user-exit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this solves ur query....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 06:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders05-idoc-type-extension/m-p/1641424#M285669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T06:45:26Z</dc:date>
    </item>
  </channel>
</rss>

