<?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 Process Order Creation/Modification BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206179#M1204412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just trying to send standard LOIPRO idoc when a process order is saved on COR1 / COR2 transactions. First of all I've decided to do it via user-exit but I've seen that the order number (AUFNR) is not determinated yet, so finally I'm doing it with the BADI WORKORDER_UPDATE (method BEFORE_SAVE) where there is all the data ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until this point all goes fine. To send the standard idoc there is the program RCCLORD but as the order is not saved on the system tables I cannot do a submit, so I'm doing a call to the function where the idoc is send of the program ( CLOI_MASTERIDOC_CREATE_LOIPRO ). All seems to be ok, but finally it goes allways to a short dump because at the end of the function there is a commit instruction ( and it seems it is not possible into a BADI (sy-oncom = P) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a easy way to do it or am I on the correct way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying a lot of possibilities ( and it doesn't work for distinct causes ) but allways the start point is the avobe process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Legoles_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 10:28:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T10:28:37Z</dc:date>
    <item>
      <title>Process Order Creation/Modification BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206179#M1204412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just trying to send standard LOIPRO idoc when a process order is saved on COR1 / COR2 transactions. First of all I've decided to do it via user-exit but I've seen that the order number (AUFNR) is not determinated yet, so finally I'm doing it with the BADI WORKORDER_UPDATE (method BEFORE_SAVE) where there is all the data ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until this point all goes fine. To send the standard idoc there is the program RCCLORD but as the order is not saved on the system tables I cannot do a submit, so I'm doing a call to the function where the idoc is send of the program ( CLOI_MASTERIDOC_CREATE_LOIPRO ). All seems to be ok, but finally it goes allways to a short dump because at the end of the function there is a commit instruction ( and it seems it is not possible into a BADI (sy-oncom = P) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a easy way to do it or am I on the correct way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying a lot of possibilities ( and it doesn't work for distinct causes ) but allways the start point is the avobe process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Legoles_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206179#M1204412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Process Order Creation/Modification BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206180#M1204413</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 question is do you wanted to send the process order information instantanously? I had the same situation in my company and there was no easy way I found. I have written a bacth program (scheduled in back ground for every 5 minutes). This batch program will select the "changed" process orders (either created in COR1 or changed in COR2) and will send send the details to legacy system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Nagarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 14:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206180#M1204413</guid>
      <dc:creator>nagarajan_ramudu</dc:creator>
      <dc:date>2009-02-12T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Process Order Creation/Modification BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206181#M1204414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is just it, the customer wants the process order sended inmediatly to a external system, and I your solution has been evaluated and they don't want it. I've just solved it yesterday last hour with a "similar" bad solution but it was approved. We have coppied the standard function CLOI_MASTERIDOC_CREATE_LOIPRO and all the commits has been removed. It works perfect and we assume the danger of standard code copy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will not close the post waiting if there is a better solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 07:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206181#M1204414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T07:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Process Order Creation/Modification BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206182#M1204415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working fine on production. No better solution finded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 08:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/process-order-creation-modification-badi/m-p/5206182#M1204415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-11T08:46:09Z</dc:date>
    </item>
  </channel>
</rss>

