<?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: Calling a standard SAP's function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485110#M1931604</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;You need to verify well your request. I don't know what's the process that you're executing and what's your function's purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, suppose your function module do a COMMIT instruction. That's a bad thing if you're&amp;nbsp;&amp;nbsp; inside a "PO creation" process. So you'll need "IN UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other example would be&amp;nbsp; if you have 3 steps to complete a process and you want to commit only when all 3 steps are successfull. In this case you'll need CALL FM .. IN UPDATE TASK for all 3 of them. Once the 3rd step is successfull you'll do a COMMIT WORK statement to COMMIT all your changes to the database&lt;SPAN style="color: #333333; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's clear.&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 08:43:24 GMT</pubDate>
    <dc:creator>roberto_vacca2</dc:creator>
    <dc:date>2016-02-16T08:43:24Z</dc:date>
    <item>
      <title>Calling a standard SAP's function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485107#M1931601</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;Pl. let us know can we call a standard SAP's UPDATE function module (FM --&amp;gt; Attributes --&amp;gt; Processing Type --&amp;gt; Update radio button selected) in a normal way, I mean, currently we are calling a standard SAP's update FM with out adding IN UPDATE TASK extension syntax in our Z report program and its working fine, pl. let us know is it OK/safe to call it with out extension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 16:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485107#M1931601</guid>
      <dc:creator>former_member194142</dc:creator>
      <dc:date>2016-02-15T16:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a standard SAP's function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485108#M1931602</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;In UPDATE TASK means your FM sit and wait for a COMMIT WORK, before execution. When COMMIT arrives, the processing does not continue until the function module has finished.&lt;/P&gt;&lt;P&gt;Then Processing Type &lt;SPAN style="color: #333333; font-size: 12px;"&gt; --&amp;gt; Update Immediately means in the same LUW (logic unit of work), committed together. Delayed means in separate &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;LUW , committed in a separate way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;What are you trying to obtain?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Hope to help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Bye&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485108#M1931602</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2016-02-15T17:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a standard SAP's function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485109#M1931603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to UPDATE immediately and the said FM's attributes also same (IMMEDIATE radio button is selected), my program is not yet moved to production, but its working fine as expected in DEV and ACC with out adding of IN UPDATE TASK extension, hence we are guessing same (works well) in PRD as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. let us know is it OK/safe to call UPDATE FM with out IN UPDATE TASK extension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485109#M1931603</guid>
      <dc:creator>former_member194142</dc:creator>
      <dc:date>2016-02-15T17:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a standard SAP's function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485110#M1931604</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;You need to verify well your request. I don't know what's the process that you're executing and what's your function's purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, suppose your function module do a COMMIT instruction. That's a bad thing if you're&amp;nbsp;&amp;nbsp; inside a "PO creation" process. So you'll need "IN UPDATE TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other example would be&amp;nbsp; if you have 3 steps to complete a process and you want to commit only when all 3 steps are successfull. In this case you'll need CALL FM .. IN UPDATE TASK for all 3 of them. Once the 3rd step is successfull you'll do a COMMIT WORK statement to COMMIT all your changes to the database&lt;SPAN style="color: #333333; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's clear.&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 08:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485110#M1931604</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2016-02-16T08:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a standard SAP's function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485111#M1931605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling the FM not in update task, may trigger invalid database if a simple database commit (implicit or&amp;nbsp; not) is triggered before a transaction commit the work, but this is one customer program, so that part is not a true problem if program correctly coded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mceitemhidden"&gt;But those standard update FM usually update database almost whatever parameter you pass (just the records to update must exist or any error that trigger an error in open-sql execution, so raising an Abort message with the most beautiful effect) but usually using those (unreleased) update task FM to prevent usage of BAPI, &lt;/SPAN&gt;&lt;SPAN class="mceitemhiddenspellword"&gt;IDoc&lt;/SPAN&gt;&lt;SPAN class="mceitemhidden"&gt;, &lt;/SPAN&gt;&lt;SPAN class="mceitemhiddenspellword"&gt;BDC&lt;/SPAN&gt;&lt;SPAN class="mceitemhidden"&gt; or other tool is bad practice, those FM usually don't check data validity, no insure database consistency, usually SAP transactions perform some checks and calculations then trigger a batch of such FM IN UPDATE TASK and finally COMMIT the WORK. So YOU must do the whole job as the SAP transaction, and of course, in case of problem you are on your own, SAP will ask for "consulting service" (pay for it) - &lt;/SPAN&gt;&lt;A href="http://service.sap.com/sap/support/notes/7" title="7  - Error caused by customer modification/development"&gt;&lt;SPAN class="title"&gt;7 - Error caused by customer modification/development&lt;/SPAN&gt;&lt;/A&gt; with reference to &lt;A href="http://service.sap.com/sap/support/notes/415983" title="415983  - Modification/customer developments of SAP function modules"&gt;&lt;SPAN class="title"&gt;415983 - Modification/customer developments of SAP function modules&lt;/SPAN&gt; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 10:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485111#M1931605</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-02-16T10:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a standard SAP's function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485112#M1931606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Roberto. &lt;/P&gt;&lt;P&gt;Thank you Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I totally agree with you bcz when I checked the said UPDATE FM, its the same as you said in your reply that its not released for customers, its directly updating the DB with out any validations/checks, they wrote below code in the FM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;IF it_itab[] IS NOT INITIAL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UPDATE std_sap_tbl FROM it_itab&lt;BR /&gt;ENDIF.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But, in our case/requirement, we don't need any kind of validations/checks/data consistency checks&amp;nbsp; bcz we want to UPDATE a single field on bunch of recs as one-time mass update, hence I guess I am OK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 21:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-standard-sap-s-function-module/m-p/11485112#M1931606</guid>
      <dc:creator>former_member194142</dc:creator>
      <dc:date>2016-02-16T21:14:52Z</dc:date>
    </item>
  </channel>
</rss>

