<?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: Trigger IDOC_OUTPUT_ORDRS using custom program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115457#M1186589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can figure out a way to call IDOC_OUTPUT_ORDERS to create a outbound order response idoc. But if you think about it, there are several things involved here, which make it difficult&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This FM expects to be triggered from an output type, which supplies it with the receiving partner profile, message type etc - all which go to form the control record of the Idoc&lt;/P&gt;&lt;P&gt;2. This is triggered via NAST entries, as you said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my opinion the most elegant way is to trigger the output from the sales order in yellow (processing time in output condition record set to "Send with a schedule job").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later you can trigger IDOC_OUTPUT_ORDERS using RSNAST00 program, where object will be your sales order, application V1, output type. This way you can take control of when to issue the Idoc - which I think is main purpose of your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would advise not to spend efforts in trying to reinvent the wheel here &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 18:15:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-03T18:15:35Z</dc:date>
    <item>
      <title>Trigger IDOC_OUTPUT_ORDRS using custom program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115456#M1186588</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;I have a requirement to send an order response (ORDERS05) IDoc by calling FM IDOC_OUTPUT_ORDRS using a custom program.  Wanted to know if anyone had suggestions on the best approach.  We are using much of the native mapping and adding a few segments (which I would handle updating in the customer exits).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My biggest question is how to setup the call to IDOC_OUTPUT_ORDRS.  I think I need to simulate the NAST table entry.  Is that the recommended approach?  Any tips or hints would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Cal on Feb 3, 2009 7:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 18:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115456#M1186588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T18:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger IDOC_OUTPUT_ORDRS using custom program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115457#M1186589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can figure out a way to call IDOC_OUTPUT_ORDERS to create a outbound order response idoc. But if you think about it, there are several things involved here, which make it difficult&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This FM expects to be triggered from an output type, which supplies it with the receiving partner profile, message type etc - all which go to form the control record of the Idoc&lt;/P&gt;&lt;P&gt;2. This is triggered via NAST entries, as you said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my opinion the most elegant way is to trigger the output from the sales order in yellow (processing time in output condition record set to "Send with a schedule job").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later you can trigger IDOC_OUTPUT_ORDERS using RSNAST00 program, where object will be your sales order, application V1, output type. This way you can take control of when to issue the Idoc - which I think is main purpose of your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would advise not to spend efforts in trying to reinvent the wheel here &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 18:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115457#M1186589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T18:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger IDOC_OUTPUT_ORDRS using custom program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115458#M1186590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Vishnu!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why we're not using output type is because we want to send 1 IDoc per day for a given order, and the order might be changed more than once.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm reading your response correctly, you're saying I should use output control which would create an output type entry after the order is changed with a setting of 'send with schedule job.'  I would then use a custom program to trigger the batch job for each order using RSNAST00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that we only want to send 1 IDoc per day for a given order, Is there a way to create only 1 output entry in NAST, even if the order was changed more than once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Cal on Feb 3, 2009 8:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 19:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115458#M1186590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T19:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger IDOC_OUTPUT_ORDRS using custom program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115459#M1186591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes definitely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is checkbox "Multiple issuing" in the output type configuration page - if this is left blank, a output will be issued only once during create and subsequent changes won't trigger the output automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto NACE, select application V1 and lick on "Output types", select BA00 and display. Press F1 on the "Multiple issuing"  checkbox and you will see this SAP message..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;Multiple issuing of output&lt;/P&gt;&lt;P&gt;Indicates whether the same output may be issued to the same partner more than once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;For example, if you add an order item to a sales order for which the order confirmation was already sent, you will want to send a changed output to the same customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 19:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115459#M1186591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T19:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger IDOC_OUTPUT_ORDRS using custom program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115460#M1186592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, that would definitely work for my requirement.  Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to trigger the output type only for certain orders and deliveries.  Do you know of a customer exit that I can use in the Sales Order and Delivery modules that will allow me to analyze the NAST record before an output type record is created?  I want to be able to control if an output type is created (based on specific settings) for orders and deliveries of the same doc type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 19:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115460#M1186592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger IDOC_OUTPUT_ORDRS using custom program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115461#M1186593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually condition technique based on which output determination works - is designed for exactly what you are asking - triggering the output type under certain conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create ouput condition records with key fields that represent your business conditions: for example certain sales org, distrib channel, certain sales order type can only trigger the output. You can make it as finer as you want (like even including sold-to as a criteria), like you can include any field that appears in the sales document as a criteria to trigger the idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables that store condition records - condition tables - are custom created with your business field combination that you want to base the triggering upon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto the IMG path:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMG -&amp;gt; SD -&amp;gt; Basic functions -&amp;gt; Output control -&amp;gt; Output determination -&amp;gt; Maintain output determination for sales documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A o/p determination procedure is assigned to sales document type&lt;/P&gt;&lt;P&gt;2. A o/p determination procedure comprise a list of output types, which are checked sequentially by the system&lt;/P&gt;&lt;P&gt;3. Custom condition tables with new business criteria can be assigned to new or existing access sequence&lt;/P&gt;&lt;P&gt;4. Access sequence is attached to output type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How the system triggers a particular output type during application document processing, say sales order processing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. From the sales document type, the o/p determination procedure is determined&lt;/P&gt;&lt;P&gt;2. The system then checks the output types inside the procedure one by one&lt;/P&gt;&lt;P&gt;3. Say at output type 1, the system checks to see what access sequence it has&lt;/P&gt;&lt;P&gt;4. The access sequence comprises of 1 or more condition tables.&lt;/P&gt;&lt;P&gt;5. The system then checks each condition table, by comparing the key fields of the condition table with the correpsonding sales document fields - like comparing sales org, documen type in the condition record with what the sales document has. If every thing matches, the output type is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just simplified the whole o/p determination. There are several other features which are controlle at o/p determination, procedure, output type and access sequence levels. Spend some time one these, it is a neat, flexible and future proof concept. You will never regret! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 20:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-idoc-output-ordrs-using-custom-program/m-p/5115461#M1186593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-03T20:17:55Z</dc:date>
    </item>
  </channel>
</rss>

