<?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 IDoc trigger IN UPDATE TASK Z_Function_Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-trigger-in-update-task-z-function-module/m-p/12487182#M2002183</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;Hello Experts,&lt;BR /&gt;I am using Z_FM to update order status and to send status into an IDoc. So, here i'm doing creating entry in NAST table and using submit RSNAST00 for generating IDoc to send order status to IDoc. &lt;BR /&gt;Doing like CALL FUNCTION 'Z_FUNCTION_MODULE' IN UPDATE TASK&lt;BR /&gt;after this FM, creating message entry in NAST and submitting RSNAST00

&lt;BR /&gt; SUBMIT rsnast00 WITH s_kappl = ls_nast-kappl "#EC CI_SUBMIT&lt;BR /&gt;                 WITH s_objky = ls_nast-objky&lt;BR /&gt;                 WITH s_kschl = ls_nast-kschl&lt;BR /&gt;                 WITH s_nacha = ls_nast-nacha&lt;BR /&gt;                 TO SAP-SPOOL&lt;BR /&gt;                 SPOOL PARAMETERS lv_print_parameters
                 WITHOUT SPOOL DYNPRO
                 VIA JOB v_jobname NUMBER lv_jobnumber
                 AND RETURN. 

&lt;BR /&gt;Note: these code not writing in IN UPDATE FM, If we use this inside FM, getting errors.&lt;BR /&gt;If i use COMMIT WORK, then only IDoc getting success else it's getting failed.&lt;BR /&gt;But, we cannot use the COMMIT WORK in BAdi(LE_SHP_DELIVERY_PROC).

&lt;BR /&gt;Please help on this How to Commit without using COMMIT WORK.

&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Ram Mididoddi&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Apr 2022 04:33:00 GMT</pubDate>
    <dc:creator>rammididoddi</dc:creator>
    <dc:date>2022-04-07T04:33:00Z</dc:date>
    <item>
      <title>IDoc trigger IN UPDATE TASK Z_Function_Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-trigger-in-update-task-z-function-module/m-p/12487182#M2002183</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Hello Experts,&lt;BR /&gt;I am using Z_FM to update order status and to send status into an IDoc. So, here i'm doing creating entry in NAST table and using submit RSNAST00 for generating IDoc to send order status to IDoc. &lt;BR /&gt;Doing like CALL FUNCTION 'Z_FUNCTION_MODULE' IN UPDATE TASK&lt;BR /&gt;after this FM, creating message entry in NAST and submitting RSNAST00

&lt;BR /&gt; SUBMIT rsnast00 WITH s_kappl = ls_nast-kappl "#EC CI_SUBMIT&lt;BR /&gt;                 WITH s_objky = ls_nast-objky&lt;BR /&gt;                 WITH s_kschl = ls_nast-kschl&lt;BR /&gt;                 WITH s_nacha = ls_nast-nacha&lt;BR /&gt;                 TO SAP-SPOOL&lt;BR /&gt;                 SPOOL PARAMETERS lv_print_parameters
                 WITHOUT SPOOL DYNPRO
                 VIA JOB v_jobname NUMBER lv_jobnumber
                 AND RETURN. 

&lt;BR /&gt;Note: these code not writing in IN UPDATE FM, If we use this inside FM, getting errors.&lt;BR /&gt;If i use COMMIT WORK, then only IDoc getting success else it's getting failed.&lt;BR /&gt;But, we cannot use the COMMIT WORK in BAdi(LE_SHP_DELIVERY_PROC).

&lt;BR /&gt;Please help on this How to Commit without using COMMIT WORK.

&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Ram Mididoddi&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 04:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-trigger-in-update-task-z-function-module/m-p/12487182#M2002183</guid>
      <dc:creator>rammididoddi</dc:creator>
      <dc:date>2022-04-07T04:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: IDoc trigger IN UPDATE TASK Z_Function_Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-trigger-in-update-task-z-function-module/m-p/12487183#M2002184</link>
      <description>&lt;P&gt;Hi Ram, &lt;/P&gt;&lt;P&gt;I had such cases also several times. I implemented a new function module that is RFC-enabled which is called inside the update task function module using STARTING NEW TASK. This creates a new session inside the update task which allows also to use the (normally) forbidden commands (in update task) like COMMIT, SUBMIT and so on.&lt;/P&gt;&lt;P&gt;Refer to this documentation for more details:&lt;BR /&gt;&lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/de-DE/abapcall_function_starting.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_751_index_htm/7.51/de-DE/abapcall_function_starting.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Jens&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 05:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-trigger-in-update-task-z-function-module/m-p/12487183#M2002184</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-04-07T05:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: IDoc trigger IN UPDATE TASK Z_Function_Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-trigger-in-update-task-z-function-module/m-p/12487184#M2002185</link>
      <description>&lt;P&gt;Format of your question is wrong, everything is in "Code" format. You can mix Code and Non-Code as you can see below.&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I am using Z_FM to update order status and to send status into an IDoc. So, here i'm doing creating entry in NAST table and using submit RSNAST00 for generating IDoc to send order status to IDoc. &lt;/P&gt;&lt;P&gt;Doing like CALL FUNCTION 'Z_FUNCTION_MODULE' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;after this FM, creating message entry in NAST and submitting RSNAST00&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SUBMIT rsnast00 WITH s_kappl = ls_nast-kappl "#EC CI_SUBMIT
                 WITH s_objky = ls_nast-objky
                 WITH s_kschl = ls_nast-kschl
                 WITH s_nacha = ls_nast-nacha
                 TO SAP-SPOOL
                 SPOOL PARAMETERS lv_print_parameters
                 WITHOUT SPOOL DYNPRO
                 VIA JOB v_jobname NUMBER lv_jobnumber
                 AND RETURN. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note: these code not writing in IN UPDATE FM, If we use this inside FM, getting errors.&lt;/P&gt;&lt;P&gt;If i use COMMIT WORK, then only IDoc getting success else it's getting failed.&lt;/P&gt;&lt;P&gt;But, we cannot use the COMMIT WORK in BAdi(LE_SHP_DELIVERY_PROC).&lt;/P&gt;&lt;P&gt;Please help on this How to Commit without using COMMIT WORK.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 06:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-trigger-in-update-task-z-function-module/m-p/12487184#M2002185</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-07T06:35:12Z</dc:date>
    </item>
  </channel>
</rss>

