<?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: Need help IDoc Creation . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688355#M621805</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;The Parameters for All inbound FMs will be Same.&lt;/P&gt;&lt;P&gt;So To create an inbound FM :&lt;/P&gt;&lt;P&gt; Copy the Existing Standard FM like IDOC_INPUT_MATMAS01 to a New FM.&lt;/P&gt;&lt;P&gt; Remove the Source code and Write ur source code.&lt;/P&gt;&lt;P&gt; But the Parameters must be same.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;It will generally have the Parameters for &lt;/P&gt;&lt;P&gt;IDOC Control records table &lt;/P&gt;&lt;P&gt;IDOC Data records table&lt;/P&gt;&lt;P&gt;IDOC Status records table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pseudocode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT &amp;lt;CONTROL_RECORDS&amp;gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;          Loop at &amp;lt;respective data records&amp;gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;                 Fill the data from data records into BDCDATA table&lt;/P&gt;&lt;P&gt;                 Call transaction 'tcode'       to update database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Fill the control records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 10:38:31 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-08-14T10:38:31Z</dc:date>
    <item>
      <title>Need help IDoc Creation .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688352#M621802</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 new to Cross Applications. I am on the process of creating an Idoc and I am stuck where I need to assign a function module to the Idoc in txn we57.&lt;/P&gt;&lt;P&gt;I need no know whether we need to create this function module in SE37 or not ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Even the same function module name has to be given while creating a process code in we 42.I request for guiding me on the same . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your helpful suggestions,&lt;/P&gt;&lt;P&gt;Sasmita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 09:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688352#M621802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T09:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help IDoc Creation .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688353#M621803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasmita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are extending the IDOC Type or creating a new IDOC Type then a new function module needs to be created and assigned in we57 and for the process code as well, as you have pointed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the process code(we42) create a new Z process code and attach the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the we57 function module attach the function module with the idoc type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688353#M621803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help IDoc Creation .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688354#M621804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Arun. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new function module which has to be created , Can I get litle more info about the FM , I mean what will be the import and export parameters  and other details as this is related to Idocs I am not sure what exactly has to be done for creating this FM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sasmita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688354#M621804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help IDoc Creation .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688355#M621805</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;The Parameters for All inbound FMs will be Same.&lt;/P&gt;&lt;P&gt;So To create an inbound FM :&lt;/P&gt;&lt;P&gt; Copy the Existing Standard FM like IDOC_INPUT_MATMAS01 to a New FM.&lt;/P&gt;&lt;P&gt; Remove the Source code and Write ur source code.&lt;/P&gt;&lt;P&gt; But the Parameters must be same.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;It will generally have the Parameters for &lt;/P&gt;&lt;P&gt;IDOC Control records table &lt;/P&gt;&lt;P&gt;IDOC Data records table&lt;/P&gt;&lt;P&gt;IDOC Status records table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pseudocode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT &amp;lt;CONTROL_RECORDS&amp;gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;          Loop at &amp;lt;respective data records&amp;gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;                 Fill the data from data records into BDCDATA table&lt;/P&gt;&lt;P&gt;                 Call transaction 'tcode'       to update database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Fill the control records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688355#M621805</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-14T10:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help IDoc Creation .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688356#M621806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasmita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create function module with the following&lt;/P&gt;&lt;P&gt;1 ) Parameters in function Module&lt;/P&gt;&lt;P&gt;Import :&lt;/P&gt;&lt;P&gt;INPUT_METHOD	            LIKE	BDWFAP_PAR-INPUTMETHD&lt;/P&gt;&lt;P&gt;MASS_PROCESSING	LIKE	BDWFAP_PAR-MASS_PROC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export :&lt;/P&gt;&lt;P&gt;WORKFLOW_RESULT	            LIKE	BDWFAP_PAR-RESULT&lt;/P&gt;&lt;P&gt;APPLICATION_VARIABLE	LIKE	BDWFAP_PAR-APPL_VAR&lt;/P&gt;&lt;P&gt;IN_UPDATE_TASK	                        LIKE	BDWFAP_PAR-UPDATETASK&lt;/P&gt;&lt;P&gt;CALL_TRANSACTION_DONE	LIKE	BDWFAP_PAR-CALLTRANS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables:&lt;/P&gt;&lt;P&gt;IDOC_CONTRL	            LIKE	EDIDC&lt;/P&gt;&lt;P&gt;IDOC_DATA                         LIKE	EDIDD&lt;/P&gt;&lt;P&gt;IDOC_STATUS	            LIKE	BDIDOCSTAT&lt;/P&gt;&lt;P&gt;RETURN_VARIABLES	LIKE	BDWFRETVAR&lt;/P&gt;&lt;P&gt;SERIALIZATION_INFO	LIKE	BDI_SER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception:&lt;/P&gt;&lt;P&gt;WRONG_FUNCTION_CALLED        Wrong function module for message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;NOTE : these import,export and table parameters can be get from any standard IDOC F.M&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The function module gets created when you enter the above specified import, export, tables and exception. Then in the source code tab of function module write the required code for processing the IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Once the function module is created add Idoc type and related data using the transaction WE 57.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Go to transaction WE 57 add function module name and type as &amp;#145;F&amp;#146; . Also add the basic type and Message type in the transaction and then save and close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)Go to transaction BD 51 add the function module and the input type as 0 or 1 or 2. this identifies the type of  processing of the IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For PROCESS CODE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)Now we have to create a Process code for the above using Transaction WE 42.&lt;/P&gt;&lt;P&gt;Go to transaction WE 42 click on Change display button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) Once you are in the change mode enter Process code, Description for the Process code and in the identification enter the function Module name also click radio buttons processing with ALE and processing by function module and save the trasaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8)Once you the save the WE 42 transaction, you get a green/yellow button next to the function module click on that it takes you to a new window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9)Drop down the arrow next to the function module you should be able to find the function module which you have created, now save you have your process code created. Now test the IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Summary for customizing idoc and F.M.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE 31: Create Segments(Fields)&lt;/P&gt;&lt;P&gt;WE 30: Create IDOC Type( attach segments to the IDOC type.&lt;/P&gt;&lt;P&gt;WE 81: Create Message Type.&lt;/P&gt;&lt;P&gt;WE 82: Assign Message type to IDOC type&lt;/P&gt;&lt;P&gt;Create Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE 57: Add function Module Details&lt;/P&gt;&lt;P&gt;BD 51: Add function  Module  &amp;amp; Corresponding input&lt;/P&gt;&lt;P&gt;WE 42:  Create Process code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD ME WITH POINTS IF IT USEFUL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688356#M621806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help IDoc Creation .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688357#M621807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasmita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check any of the function module starting with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC_INPUT_*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check the import and export parameters of these function modules and match with your Function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 10:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-idoc-creation/m-p/2688357#M621807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T10:42:14Z</dc:date>
    </item>
  </channel>
</rss>

