<?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 INBOUND DELFOR02 Idoc Split in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-delfor02-idoc-split/m-p/6472271#M1417446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got a requirement for an inbound idoc &lt;/P&gt;&lt;P&gt;Idoc type : DELFOR02&lt;/P&gt;&lt;P&gt;message type : DELINS&lt;/P&gt;&lt;P&gt;User exit functional module : IDOC_INPUT_DELINS &lt;/P&gt;&lt;P&gt;My actual reqirement is.......&lt;/P&gt;&lt;P&gt;The DELFOR02 Idoc sent from the subsystem to SAP will have to be split into multiple DELFOR02 Idocs depending upon the number of line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DELFOR02 Idoc is separated into header and item data. The header data will have to be mapped to each split Idoc and then update each Scheduling agreement. The Item detail will have to be split for each occurrence of an E1EDP10 segment. For example if 3 line items are contained on the DELFOR02 Idoc this will have to be split in to 3 Idocs, as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELFOR02 Idoc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header Level		E1EDK09&lt;/P&gt;&lt;P&gt;					.&lt;/P&gt;&lt;P&gt;					.&lt;/P&gt;&lt;P&gt;					.&lt;/P&gt;&lt;P&gt;Item Level				E1EDP10	&lt;/P&gt;&lt;P&gt;						E1EDP10&lt;/P&gt;&lt;P&gt;						E1EDP10&lt;/P&gt;&lt;P&gt;How i approach this requirement.......please help me out..its critical req&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 13:51:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-20T13:51:04Z</dc:date>
    <item>
      <title>INBOUND DELFOR02 Idoc Split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-delfor02-idoc-split/m-p/6472271#M1417446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got a requirement for an inbound idoc &lt;/P&gt;&lt;P&gt;Idoc type : DELFOR02&lt;/P&gt;&lt;P&gt;message type : DELINS&lt;/P&gt;&lt;P&gt;User exit functional module : IDOC_INPUT_DELINS &lt;/P&gt;&lt;P&gt;My actual reqirement is.......&lt;/P&gt;&lt;P&gt;The DELFOR02 Idoc sent from the subsystem to SAP will have to be split into multiple DELFOR02 Idocs depending upon the number of line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DELFOR02 Idoc is separated into header and item data. The header data will have to be mapped to each split Idoc and then update each Scheduling agreement. The Item detail will have to be split for each occurrence of an E1EDP10 segment. For example if 3 line items are contained on the DELFOR02 Idoc this will have to be split in to 3 Idocs, as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELFOR02 Idoc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header Level		E1EDK09&lt;/P&gt;&lt;P&gt;					.&lt;/P&gt;&lt;P&gt;					.&lt;/P&gt;&lt;P&gt;					.&lt;/P&gt;&lt;P&gt;Item Level				E1EDP10	&lt;/P&gt;&lt;P&gt;						E1EDP10&lt;/P&gt;&lt;P&gt;						E1EDP10&lt;/P&gt;&lt;P&gt;How i approach this requirement.......please help me out..its critical req&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 13:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-delfor02-idoc-split/m-p/6472271#M1417446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: INBOUND DELFOR02 Idoc Split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-delfor02-idoc-split/m-p/6472272#M1417447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just briefing the steps on how you can proceed.  The following information may not be complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the functional module : IDOC_INPUT_DELINS to new custom FM Z_IDOC_INPUT_DELINS and link this to existing process code.&lt;/P&gt;&lt;P&gt;In FM Z_IDOC_INPUT_DELINS :&lt;/P&gt;&lt;P&gt;store the header data into global structure, also populate T_NEW_IDOCDATA.&lt;/P&gt;&lt;P&gt;Then based on your conditions, i.e. no of segments E1EDP10 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case IDOC-SEGNAM.&lt;/P&gt;&lt;P&gt;when 'E1EDP10'.&lt;/P&gt;&lt;P&gt;store the segment data into internal table T_NEW_IDOCDATA.&lt;/P&gt;&lt;P&gt; perform create_new_split_idoc. &lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CREATE_NEW_IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING IDOC_CONTRL TO S_CONTROL_RECORD_IN.&lt;/P&gt;&lt;P&gt;  S_CONTROL_RECORD_IN-MESCOD = 'SPT'.   "new message code SPT for split Idocs&lt;/P&gt;&lt;P&gt;  S_CONTROL_RECORD_IN-DOCNUM = SPACE.&lt;/P&gt;&lt;P&gt;  S_CONTROL_RECORD_IN-IDOCTYP = IDOC_CONTRL-IDOCTP.&lt;/P&gt;&lt;P&gt; APPEND S_CONTROL_RECORD_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'INBOUND_IDOC_PROCESS'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          IDOC_CONTROL = S_CONTROL_RECORD_IN&lt;/P&gt;&lt;P&gt;          IDOC_DATA    = T_NEW_IDOCDATA&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS       = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For split Idocs create a new message code SPT and do the partner profile setting in WE20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Savitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 08:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-delfor02-idoc-split/m-p/6472272#M1417447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T08:54:22Z</dc:date>
    </item>
  </channel>
</rss>

