<?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>Question Re: event triggering for sales document in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279113#M1320004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2009 10:22:10 GMT</pubDate>
    <dc:creator>sukhbold_altanbat</dc:creator>
    <dc:date>2009-07-07T10:22:10Z</dc:date>
    <item>
      <title>event triggering for sales document</title>
      <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaq-p/3279107</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;1) are there alternative approaches that event can be triggered rather than calling FM SWE_EVENT*?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) There is an object type bus2032 which has an event called CREATED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this event be triggered when Sales document is created successfully in SAP through FM BAPI_SALESORDER_CREATEFROMDAT2 calling from the 3rd party system?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: This FM internally calls SD_SALESDOCUMENT_CREATE.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) What is the main difference in terms of triggering an event when any sales document is created through&lt;/P&gt;&lt;P&gt;- transaction VA01&lt;/P&gt;&lt;P&gt;- BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sukhbold&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 10:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaq-p/3279107</guid>
      <dc:creator>sukhbold_altanbat</dc:creator>
      <dc:date>2008-01-16T10:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: event triggering for sales document</title>
      <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279108#M1319999</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) Yes. Try searching function modules starting with SAP_WAPI*&lt;/P&gt;&lt;P&gt;2) and 3) In principle, the event should be creeated the same way via the bapi than via the transaction. The best way to make sure is to enable the event log and try it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 14:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279108#M1319999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: event triggering for sales document</title>
      <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279109#M1320000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link this will be of help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4b458453d11d189430000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4b458453d11d189430000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 04:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279109#M1320000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T04:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: event triggering for sales document</title>
      <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279110#M1320001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You can trigger CREATE event of sales order by using change document .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. execute t.code SWEC&lt;/P&gt;&lt;P&gt;2.find out the change object for sales document &lt;/P&gt;&lt;P&gt;2.give the change object for sales document&lt;/P&gt;&lt;P&gt;3. select the 'create' radio button&lt;/P&gt;&lt;P&gt;4. give event 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when u create slaes order 'CREATE' will trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 08:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279110#M1320001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T08:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: event triggering for sales document</title>
      <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279111#M1320002</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 have other techniques such as &lt;EM&gt;change documents&lt;/EM&gt;  etc. Would suggest to refer SAP help .&lt;/P&gt;&lt;P&gt;However in case of sales order Creation, I do not think oyu need to do anything  else. Standard transaction will raise Created event for you. You have to just use it in your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Created event of sales order will be called once the sales order is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) BAPI_SALESORDER_CREATEFROMDAT2 will implement the same functionality as VA01 , so you should not worry on this front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Akshay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 09:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279111#M1320002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: event triggering for sales document</title>
      <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279112#M1320003</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;Thank you for the responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found the solution for 3rd query and it might help for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was talking about 2 things that are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. VA02 (nothing but program SAPMV45A)&lt;/P&gt;&lt;P&gt;there is a subroutine (BELEG_SICHERN) in the program&lt;/P&gt;&lt;P&gt;which is actually performed &lt;STRONG&gt;indirectly&lt;/STRONG&gt; by FM BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hierarchy&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;SAPMV45A (program)&lt;/P&gt;&lt;P&gt;- MV45AF0F (include)&lt;/P&gt;&lt;P&gt;- - MV45AF0F_FCODE_SICH (include)&lt;/P&gt;&lt;P&gt;- - - MV45AF0B_BELEG_SICHERN (include having the subroutine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Calling FM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;- SD_SALESDOCUMENT_CREATE (FM)&lt;/P&gt;&lt;P&gt;- - SD_SALES_DOCU_MAINTAIN (FM)&lt;/P&gt;&lt;P&gt;- - - SD_SALES_DOCUMENT_SAVE (FM)&lt;/P&gt;&lt;P&gt;this FM module performs the subroutine BELEG_SICHERN of program SAPMV45A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, Most important thing is subroutine BELEG_SICHERN performs subroutine USEREXIT_SAVE_DOCUMENT, which is nothing but userexit where we can call the swe_event_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post if you have any comment on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sukhbold&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 12:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279112#M1320003</guid>
      <dc:creator>sukhbold_altanbat</dc:creator>
      <dc:date>2008-01-17T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: event triggering for sales document</title>
      <link>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279113#M1320004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 10:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/event-triggering-for-sales-document/qaa-p/3279113#M1320004</guid>
      <dc:creator>sukhbold_altanbat</dc:creator>
      <dc:date>2009-07-07T10:22:10Z</dc:date>
    </item>
  </channel>
</rss>

