<?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: RSNAST00  &amp; RSNASTED in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172294#M460903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In a simple way&lt;/P&gt;&lt;P&gt;RSNAST00 - is used to process the entries in NAST table(which stores an entry for each Output record created from application document)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSNASTED   - This is the processing program  for each Output medium.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2007 04:50:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-04T04:50:28Z</dc:date>
    <item>
      <title>RSNAST00  &amp; RSNASTED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172292#M460901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to IDOC and I am trying to learn OUTBOUND IDOC by Message Control.&lt;/P&gt;&lt;P&gt;Can somebody explain where RSNAST00 AND RSNASTED are used in the process of creating outbound idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 04:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172292#M460901</guid>
      <dc:creator>manoj_goyal2</dc:creator>
      <dc:date>2007-05-04T04:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: RSNAST00  &amp; RSNASTED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172293#M460902</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;Check this one The simplest way to create IDocs, is to write an ABAP. The individual ABAP can either be a triggering ABAP which runs at certain events, e.g. every night, or it can be an ABAP which does the complete IDoc creation from scratch. &lt;/P&gt;&lt;P&gt;Triggering ABAP&lt;/P&gt;&lt;P&gt;A triggering ABAP would simply try to determine which IDocs need sending and call the appropriate IDoc creation routines.&lt;/P&gt;&lt;P&gt;ABAP creates the whole IDoc&lt;/P&gt;&lt;P&gt;You may also imagine the ABAP to do all the job. As this is mostly reinventing the wheel, it is not really recommended and should be reserved to situation, where the other solution do not provide an appropriate mean.&lt;/P&gt;&lt;P&gt;1.1 NAST Messages Based Outbound IDocs&lt;/P&gt;&lt;P&gt;You can use the R/3 message concept to trigger IDocs the same way as you trigger SAPscript printing.&lt;/P&gt;&lt;P&gt;One of the key tables in R/3 is the table NAST. This table records reminders written by applications. Those reminders are called messages. &lt;/P&gt;&lt;P&gt;Applications write messages to NAST, which will be processed by a message handler&lt;/P&gt;&lt;P&gt;Every time when an applications sees the necessity to pass information to a third party. a message is written to NAST. A message handler will eventually check the entries in the table and cause an appropriate action. &lt;/P&gt;&lt;P&gt;EDI uses the same mechanism as printing&lt;/P&gt;&lt;P&gt;The concept of NAST messages has originally been designed for triggering SAPscript printing. The very same mechanism is used for IDocs, where the IDoc processor replaces the print task, as an IDoc is only the paperless form of a printed document.&lt;/P&gt;&lt;P&gt;Condition technique can mostly be used&lt;/P&gt;&lt;P&gt;The messages are usually be created using the condition technique, a mechanism available to all major R/3 applications.&lt;/P&gt;&lt;P&gt;Printing, EDI and ALE use the same trigger&lt;/P&gt;&lt;P&gt;The conditions are set up the same way for any output media. So you may define a condition for printing a document and then just change the output media from printer to IDoc/EDI or ALE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Figure 1: Communicating with message via table NAST&lt;/P&gt;&lt;P&gt;NAST messages are created by application by calling function module MESSAGING&lt;/P&gt;&lt;P&gt;Creating NAST messages is a standard functionality in most of the SAP core applications. Those applications - e.g. VA01, ME21 - perform calls to the central function module MESSAGING of group V61B. The function module uses customizing entries, mainly those of the tables T681* to T685*.&lt;/P&gt;&lt;P&gt;NAST contains object key, sender and receiver&lt;/P&gt;&lt;P&gt;A NAST output message is stored as a single record in the table NAST. The record stores all information that is necessary to create an IDoc. This includes mainly an object key to identify the processed object and application to the message handler and the sender and receiver information.&lt;/P&gt;&lt;P&gt;Programs RSNAST00 and RSNASTED provide versatile subroutines for NAST processing &lt;/P&gt;&lt;P&gt;The messages are typically processed by&lt;/P&gt;&lt;P&gt;FORM ENTRY in PROGRAM RSNAST00.&lt;/P&gt;&lt;P&gt;If we are dealing with printing or faxing and&lt;/P&gt;&lt;P&gt;FORM EDI_PROCESSING in PROGRAM RSNASTED.&lt;/P&gt;&lt;P&gt;If we are dealing with IDocs&lt;/P&gt;&lt;P&gt;FORM ALE_PROCESSING in PROGRAM RSNASTED.&lt;/P&gt;&lt;P&gt;If we are dealing with ALE.&lt;/P&gt;&lt;P&gt;The following piece of code does principally the same thing as RSNAST00 does and makes full use of all customizing settings for message handling.&lt;/P&gt;&lt;P&gt;FORM einzelnachricht IN PROGRAM RSNAST00&lt;/P&gt;&lt;P&gt;TABLES: NAST.&lt;/P&gt;&lt;P&gt;SELECT * FROM NAST ...&lt;/P&gt;&lt;P&gt;PERFORM einzelnachricht IN PROGRAM RSNAST00&lt;/P&gt;&lt;P&gt;Programs are customized in table TNAPR&lt;/P&gt;&lt;P&gt;The processing routine for the respective media and message is customized in the table TNAPR. This table records the name of a FORM routine, which processes the message for the chosen media and the name of an ABAP where this FORM is found.&lt;/P&gt;&lt;P&gt;1.2 The RSNAST00 ABAP &lt;/P&gt;&lt;P&gt;The ABAP RSNAST00 is the standard ABAP, which is used to collect unprocessed NAST message and to execute the assigned action.&lt;/P&gt;&lt;P&gt;RSNAST00 is the standard batch collector for messages&lt;/P&gt;&lt;P&gt;RSNAST00 can be executed as a collector batch run, that eventually looks for unprocessed IDocs. The usual way of doing that is to define a batch-run job with transaction SM37. This job has to be set for periodic processing and start a program that triggers the IDoc re-sending. &lt;/P&gt;&lt;P&gt;RSNAST00 processes only messages of a certain status&lt;/P&gt;&lt;P&gt;Cave! RSNAST00 will only look for IDocs which are set to NAST-VSZTP = '1' or '2' (Time of processing). VSZPT = '3' or '4' is ignored by RSNAST00.&lt;/P&gt;&lt;P&gt;For batch execution a selection variant is required&lt;/P&gt;&lt;P&gt;Start RSNAST00 in the foreground first and find the parameters that match your required selection criteria. Save them as a VARIANT and then define the periodic batch job using the variant.&lt;/P&gt;&lt;P&gt;If RSNAST00 does not meet 100% your needs you can create an own program similar to RSNAST00. The only requirement for this program are two steps:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the NAST entry to process into structure NAST&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables nast.&lt;/P&gt;&lt;P&gt;data: subrc like sy-subrc.....&lt;/P&gt;&lt;P&gt;select from NAST where .......&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;then call FORM einzelnachricht(rsnast00) to process the record &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM einzelnachricht(rsnast00) USING subrc. &lt;/P&gt;&lt;P&gt;1.3 Sending IDocs Via RSNASTED&lt;/P&gt;&lt;P&gt;Standard R/3 provides you with powerful routines, to trigger, prepare and send out IDocs in a controlled way. There are only a few rare cases, where you do not want to send IDocs the standard way.&lt;/P&gt;&lt;P&gt;The ABAP RSNAST00 is the standard routine to send IDocs from entries in the message control. This program can be called directly, from a batch routine with variant or you can call the FORM einzelnachricht_screen(RSNAST00) from any other program, while having the structure NAST correctly filled with all necessary information.&lt;/P&gt;&lt;P&gt;RSNAST00 determines if it is IDoc or SAPscript etc.&lt;/P&gt;&lt;P&gt;If there is an entry in table NAST, RSNAST00 looks up the associated processing routine in table TNAPR. If it is to send an IDoc with standard means, this will usually be the routine RSNASTED(EDI_PROCESSING) or RSNASTED(ALE_PROCESSING) in the case of ALE distribution.&lt;/P&gt;&lt;P&gt;RSNASTED processes IDocs&lt;/P&gt;&lt;P&gt;RSNASTED itself determines the associated IDoc outbound function module, executes it to fill the EDIDx tables and passes the prepared IDoc to the port.&lt;/P&gt;&lt;P&gt;You can call the standard processing routines from any ABAP, by executing the following call to the routine. You only have to make sure that the structure NAST is declared with the tables statement in the calling routine and that you fill at least the key part and the routine (TNAPR) information before.&lt;/P&gt;&lt;P&gt;TABLES NAST.&lt;/P&gt;&lt;P&gt;NAST-MANDT = SY-MANDT.&lt;/P&gt;&lt;P&gt;NAST-KSCHL = 'ZEDIK'.&lt;/P&gt;&lt;P&gt;NAST-KAPPL = 'V1'.&lt;/P&gt;&lt;P&gt;NAST-OBJKY = '0012345678'.&lt;/P&gt;&lt;P&gt;NAST-PARNR = 'D012345678'.&lt;/P&gt;&lt;P&gt;PERFORM einzelnachricht_screen(RSNAST00).&lt;/P&gt;&lt;P&gt;Calling einzelnachricht_screen determines how the message is processed. If you want to force the IDoc-processing you can call it directly:&lt;/P&gt;&lt;P&gt;TNAPR-PROGN = ''.&lt;/P&gt;&lt;P&gt;TNAPR-ROUTN = 'ENTRY'.&lt;/P&gt;&lt;P&gt;PERFORM edi_processing(RSNASTED).&lt;/P&gt;&lt;P&gt;1.4 Sending IDocs Via RSNAST00&lt;/P&gt;&lt;P&gt;Here is the principle flow how RSNAST00 processes messages for IDocs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b7dbd43d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b7dbd43d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 04:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172293#M460902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T04:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: RSNAST00  &amp; RSNASTED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172294#M460903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In a simple way&lt;/P&gt;&lt;P&gt;RSNAST00 - is used to process the entries in NAST table(which stores an entry for each Output record created from application document)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSNASTED   - This is the processing program  for each Output medium.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 04:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172294#M460903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T04:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: RSNAST00  &amp; RSNASTED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172295#M460904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;RSNAST00&amp;lt;/u&amp;gt; processes all message status records which meet the selection criteria and for which the selected requested time for message processing or interval has been reached or passed. Requested time for message processing or interval are fields in the Message Control record of table NAST and are not entered in the standard system  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;RSNASTED&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Report for processing a NAST record for the message type EDI.&lt;/P&gt;&lt;P&gt;Exactly one NAST record is processed.&lt;/P&gt;&lt;P&gt;Depending on the definitions for the output mode maintained in the EDI partner profile, only one Intermediate Document is generated or written directly to a file and the external converted is, possibly, also initiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The routine EDI_PROCESSING is usually called automatically by the program RSNASTT00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 04:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rsnast00-rsnasted/m-p/2172295#M460904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T04:54:53Z</dc:date>
    </item>
  </channel>
</rss>

