<?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 IDOC commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747401#M901641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to clarify scneario below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;INBOUND process&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Receive an Idoc, and inbound FM Z_TEST_IN will be executed. In inbound FM Z_TEST_IN, i have to update both Table ZHEADER and ZITEM. Since they are Header and item table, so if one of the table updating failed I've to perform rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i plan to do. Create 2 update task FM, one for ZHEADER update and one for ZITEM update. It will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Function Z_TEST_IN
  CALL FUNCTION 'Z_UPDATE_HEADER'
          IN UPDATE TASK

  CALL FUNCTION 'Z_UPDATE_ITEM'
          IN UPDATE TASK

ENDFUNCTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is there a system COMMIT WORK predefined in ALE layer? Or should i code an explicit COMMIT WORK in Inbound FM Z_TEST_IN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Let's say update fail on one of the table, then ROLLBACK WORK will be triggered. So i'm aspecting data will not update to both tables, but how about the Inbound Idoc creation? Will the idoc still be created and shown in WE05?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your comment is highly appreciated. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 11:36:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T11:36:50Z</dc:date>
    <item>
      <title>Inbound IDOC commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747401#M901641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to clarify scneario below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;INBOUND process&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Receive an Idoc, and inbound FM Z_TEST_IN will be executed. In inbound FM Z_TEST_IN, i have to update both Table ZHEADER and ZITEM. Since they are Header and item table, so if one of the table updating failed I've to perform rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i plan to do. Create 2 update task FM, one for ZHEADER update and one for ZITEM update. It will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Function Z_TEST_IN
  CALL FUNCTION 'Z_UPDATE_HEADER'
          IN UPDATE TASK

  CALL FUNCTION 'Z_UPDATE_ITEM'
          IN UPDATE TASK

ENDFUNCTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is there a system COMMIT WORK predefined in ALE layer? Or should i code an explicit COMMIT WORK in Inbound FM Z_TEST_IN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Let's say update fail on one of the table, then ROLLBACK WORK will be triggered. So i'm aspecting data will not update to both tables, but how about the Inbound Idoc creation? Will the idoc still be created and shown in WE05?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your comment is highly appreciated. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747401#M901641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound IDOC commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747402#M901642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; 1.You are using the Zfunction module,So you need to commit explicitly.&lt;/P&gt;&lt;P&gt; 2.For standard ,implicitly done.&lt;/P&gt;&lt;P&gt; 3.There is no need to create inbound IDoc.While processing only the Inbound idoc created.&lt;/P&gt;&lt;P&gt; 4.Suppose if u want to create just go for We30.&lt;/P&gt;&lt;P&gt; 5.We05 for just gives the list of idocs created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Create Idoc we need to follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Segment ( WE31)&lt;/P&gt;&lt;P&gt;Create Idoc Type ( WE30 )&lt;/P&gt;&lt;P&gt;Create Message Type ( WE81 )&lt;/P&gt;&lt;P&gt;Assign Idoc Type to Message Type ( WE82 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a Segment&lt;/P&gt;&lt;P&gt;Go to transaction code WE31&lt;/P&gt;&lt;P&gt;Enter the name for your segment type and click on the Create icon&lt;/P&gt;&lt;P&gt;Type the short text&lt;/P&gt;&lt;P&gt;Enter the variable names and data elements&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set Release&lt;/P&gt;&lt;P&gt;Follow steps to create more number of segments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create IDOC Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE30&lt;/P&gt;&lt;P&gt;Enter the Object Name, select Basic type and click Create icon&lt;/P&gt;&lt;P&gt;Select the create new option and enter a description for your basic IDOC type and press enter&lt;/P&gt;&lt;P&gt;Select the IDOC Name and click Create icon&lt;/P&gt;&lt;P&gt;The system prompts us to enter a segment type and its attributes&lt;/P&gt;&lt;P&gt;Choose the appropriate values and press Enter&lt;/P&gt;&lt;P&gt;The system transfers the name of the segment type to the IDOC editor.&lt;/P&gt;&lt;P&gt;Follow these steps to add more number of segments to Parent or as Parent-child relation&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;Go to Edit -&amp;gt; Set release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Message Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE81&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign Message Type to IDoc Type&lt;/P&gt;&lt;P&gt;Go to transaction code WE82&lt;/P&gt;&lt;P&gt;Change the details from Display mode to Change mode&lt;/P&gt;&lt;P&gt;After selection, the system will give this message &amp;#147;The table is cross-client (see Help for further info)&amp;#148;. Press Enter.&lt;/P&gt;&lt;P&gt;Click New Entries to create new Message Type.&lt;/P&gt;&lt;P&gt;Fill details&lt;/P&gt;&lt;P&gt;Save it and go back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747402#M901642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound IDOC commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747403#M901643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Perhaps maybe i left out below info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inbound FM Z_TEST_IN is being assigned to a customize Message type - ZMSGTYP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just curious abt your comment regarding i need to code explicit COMMIT WORK in the Inbound FM Z_TEST_IN. Because I'm concerning if the update fail and trigger ROLLBACK WORK, it will affecting the IDOC creation. Don't you think the same? Do you know if there useful reading materail mentioning about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 14:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747403#M901643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound IDOC commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747404#M901644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any answers for this please ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have similar issue. I want to commit a BAPI BAPI_GOODSMVT_CREATE , which  I will use in an implicit enhancement in FM IDOC_INPUT_INVOIC_MRM.&lt;/P&gt;&lt;P&gt;This FM is called during Inbound IDOC incoming.&lt;/P&gt;&lt;P&gt;I want to commit this BAPI  BAPI_GOODSMVT_CREATE before IDOC is posted. So if I create a wrapper FM for this BAPI and call that in update task ...will the BAPI get commited before IDOC is posted if I set in se37-&amp;gt;Attributes Tab -&amp;gt; Update Module -&amp;gt;Start Immed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any answers will be highly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 20:00:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747404#M901644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound IDOC commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747405#M901645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, ask a new question (and just refer to this thread using &amp;amp;#123;thread:id=...&amp;amp;#125; markup if you feel it's needed, it shows at least that you searched the forum)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 20:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-commit/m-p/3747405#M901645</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-08-05T20:32:05Z</dc:date>
    </item>
  </channel>
</rss>

