RSNAST00 - NAST table - NACE relation ...

Kindly let me know what actually RSNAST00 program does ?
1). Because we create quotations in va21 and
the same are processed by running RSNAST00 program as a first step.
2). and then we run our z-program, so that our z-program runs the above RSNAST00 program generated spools, and send then to printer, where printer is located in some other country.
In /nnace, our output type, script program and script form are configured in such a way when the output type is created and given to RSNAT00 program...then our z-program runs ...then automatically in Print program( for script form) gets printed to user in other country.
The problem is when in /nva22 the quotation is changed again
it is ready for printing ...And when we run RSNAST00 program, again the quotations already printed are again getting printed with their changes.
So, Can I control this in   PRINT Program of script ?
like by selecting the same quotations from NAST table and if entry is there don't print  ?
Kindly suggest me ...

Hi Sam,
Please check this link
http://help.sap.com/saphelp_nw04/helpdata/EN/c8/19893143b111d1896f0000e8322d00/content.htm
http://help.sap.com/saphelp_dimp50/helpdata/EN/6a/c10412adb111d1b6120000e8a738dc/content.htm
Best regards,
raam

Similar Messages

  • What is the exact purpose of Transaction NACE and NAST Table?

    Hi All,
    What is the exact purpose of Transaction NACE and NAST Table?
    Pls help me…
    Akshitha.

    Hi
    When a Output type in an apllication doc is configured with a Medium, Partner, Lang and other communication paramters an entry is created in NAST table
    so to trigger the output an entry in NAST is compulsory
    Output is a link between the Driver Program and the Sapscript,
    An output type summarizes messages of the same meaning. It contains parameters that are valid for all its assigned messages, for example appropriate partner functions.
    Transmission medium is a medium which the layout will be come out, this may be printout, Fax or Mail
    Check this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/19884743b111d1896f0000e8322d00/content.htm
    ex-how to config output type.
    You will assign output types using Transaction NACE.
    Do the follow steps to assign output type
    1)Select Application Type V2 which will have description Shipping.
    2)Click on Output types button.
    3)Go to change mode by pressing Ctrl+F4.
    4)Select one output type which already exists
    5)Do Copy As(F6)
    6)Give your output type against Output Type field.
    7)Under General data Tab, Give Program and Form routine and Save the data.
    i think it a work of functional guy but at senior level i think it is not a big deal for abaper.
    Check the following documentation
    In NACE t-codewe have the application for each one. based on the application output type can be defined, based on output type script and print progrma can be defined.
    If suppose data can be read from EDI then we should go for condition records.
    So whenever we execute the script first composer checks the output type and then execute the program. in program whenever opn form FM will be populate then script will open first. After that again program till another FM will populate if it then script will populate........like it is cycle proces. Composer does all these things and at last it will submit that output to spool.
    Go to the Transaction NACE.
    choose the related sub module.. like billing or shipping
    doubel click on Output Types
    Choose the Output Type for which whcih you wanted your script to trigger
    Then select the Output Type and double click on Processing Routine
    Then go to create new entries--> Select the Medium (1- print output), then enter your Script and Print Program detls --> Save and come out
    Now go to the Transaction (for which you have created the output type)... Issue output--> Select the output type --> Print....
    Device Types for SAP Output Devices (Detail Information)
    Definition
    The device type indicates the type of printer to be addressed. When you define an output device, choose the name of the device type that was defined in the SAP System for your printer model, such as Post2 for a PostScript printer. In the case of frontend printing under Microsoft Windows, you can also use the generic (device-independent) device type SWIN.
    The system uses the information in the device type to convert a document from the internal SAP character representation (spool request in OTF or in text format) to a device-specific, print-ready data stream (output request). Since a device type specifies attributes that apply to all devices of a certain model, it can be shared among device definitions. For example, all devices in the SAP spool system that are compatible with Hewlett-Packard LaserJet IIID printers would use the HPLJIIID device type.
    You should not confuse the device type with the printer driver. The device type is the total of all attributes of an output device that the SAP System must know to control the output device correctly, such as control commands for font selection, page size, character set selection, and so on. These attributes also include the printer driver that SAPscript/Smart Forms (the SAP form processor) should use for this printer. The SAPscript printer driver that is to be used for devices of this type for output formatting is therefore only an attribute that the device type specifies.
    How do I choose the correct device type?
    • In most cases, the SAP System already provides the appropriate device type for the printer type for the printer model that you want to use.
    These standard device types are completely defined and need no modification or extension before you use them in device definitions.
    • You can also download missing device types from the sapserv server. For a current list of the supported device types, see SAP Note 8928 in the SAP Service Marketplace.
    • Most printers can be controlled using a generic format, such as PostScript. They can be switched to a mode that is compatible with one of the standard printers for which an SAP device type is available. In this case, a supported model is emulated.
    • Almost all printers are delivered with Microsoft Windows printer drivers. The system can control these printers with the generic (device-independent) device type SWIN. The Microsoft Windows spool system then performs the processing of the print data.
    • If the specified device types are not available, and generic device types cannot be used, you must create your own device type or edit a copy of an existing device type. We recommend that only those with specialist knowledge of the SAP Spool System and printer driver code do this. For more information, see Defining a New Device Type .
    Attributes of a Device Type
    A device type is distinguished by the attributes listed below. If you change an existing device type or create a new device type, you must change at least some of these attributes.
    • Character set: A character set specifies the codes with which characters must be represented in the print-ready output stream (output request). This code replaces the generic SAP characters set that is used internally by the SAP spool system (spool request).
    • Printer driver: You can specify different printer drivers for printing SAPscript documents and ABAP lists.
    • Print controls: Print controls represent printer operations, such as boldface or changing the font size. These print control are replaced by printer-specific commands during the creation of the output request from a spool request.
    • Formats: Formats specify the format supported by the SAP system. The system differentiates between SAPScript formats (DINA4 and LETTER) and ABAP list formats (X_65_132 = 65 rows/132 columns).
    • Page format: A page format is the interface between a format and SAPscript. It specifies the paper dimensions with which SAPScript can calculate the row and column lengths.
    • Actions: Actions are output device-specific commands that are required for the implementation of a format. The action printer initialization, for example, can contain a printer command with which the number of rows on a page is defined. There is a set of actions for every format supported by a device type.
    Reward points for useful Answers

  • RSNAST00 program and NAST table.

    Can anybody tell what is the relation between
    RSNAST00 program and
    NAST Table ?
    1). Actually, it seems RSNAST00 program first check the Object key entries in NAST table ...if it does not find the exact entry in NAST table, then RSNAST00 program creates one entry in NAST tables and generated spool...
    Please validate me ...

    Hi Sam,
    The ABAP Program RSNAST00 is the standard ABAP, which is used to collect unprocessed NAST message and to execute the assigned action.
    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.
    Regards,
    Chandra Sekhar

  • Access NAST table immediately after creation of sales order (va01)

    Hi All,
    I want to access the nast data for the newly created sales order from va01. I tried to use program exits:
    userexit_save_document and userexit_save_documnr_prepare
    and plu the BADI BADI_SD_V46H0001 method EXIT_SAPLV46H_003.
    the breakpoint is not stoping there even if I have given.
    Please suggest any enhancements are there for such functionality.
    The flow is like this.:
    when user clicks on the save button after entering the data for sales order creation, the email/fax will be send to the contact persons for the output type and I want to update the nast table DATVR entry so that it will be marked as processed entry.
    rgds
    Madhuri

    I am not sure what you want, but I think it is not  the right way to realize the flow.
    When a sales order is saved, the process of issuing output will be handled by another program RSNAST00 (T_CODE: WE15)immediately or via a scheduled job due to output configuration , and the nast table will be updated at the same time. i think there is no need to update the nast table by yourself.

  • What is the procedure to create entry in NAST table for particualr document

    Hello ABAP GURUS,
    I need to know how to create objectkeys in NAST table for particualar document number.
    My requirement is i need to check my smartform output for Goods Receipt.IN nast table,i dont have any entries for Goods Receipt.So i need to create entries in NAST table.Please help me to solve this problem.
    waiting for your replies
    Regards
    Maruthi

    Hi!
    Ususally it is not neccessary to create manual entries in NAST.
    You have to print the document from its transaction. Naturally there may be some other settings which are required after setting transaction NACE.
    If you understand the Letter of delivery on the Goods Receipt, which can be printed from VL02N, then you have to set some automation to your printing using transaction VV22.
    Regards
    Tamá

  • How to archive the NAST table entries

    Hi All,
    Table NAST has 33 million records and there are lots of jobs which use this table. It is a performance issue. I want to know is there any way to increase the performance of accessing NAST table.
    OR
    Is there any way to archieve the entries from NAST table
    Thanks in advance.

    Hi Sushant,
    Welcome to SDN. The archiving should be a well coordinated and well thought effort in any enterprise. I will not suggest you to archive only single table. All the related tables should be archived together till a point in time. The table NAST is part of following archiving objects.
    LE_HU     Handling units
    MM_EKKO     Purchasing documents
    MM_MATBEL     Materials management: Material documents
    MM_REBEL     Materials Management: invoice documents
    RV_LIKP     Deliveries
    SD_LIKP     No text available
    SD_VBAK     Sales documents
    SD_VBKA     Sales activities
    SD_VBRK     Billing documents
    SD_VTTK     SD Transport
    W_PROMO     Retail: Promotion
    You have to perform an analysis that which business processes ( like billing, delivery ) have resulted the most number of NAST records. Talk to your functional guys and <b>bring a project to archive them</b> up to a finite date ( like 12/31/2002). It will clear up not only NAST but other common tables (like CDHDR and CDPOS).

  • Nast table use

    Hi ,
    what is the use of Nast table in smartforms??
    when we use this table??
    regards,

    hi this is for defining the out put types for a program...if the output had many options like this..
    1 . email
    2.fax
    3.printer....
    this will be done by the nast table ..or through the nace tcode
    regards,
    venkat

  • How to delete the entries from NAST table

    Hi,
    Please help me out by providing any function module that delete's the entries from hte NAST table.
    Regards,
    Kiran.L

    REPORT ZSCD_TEST13.
    delete from nast where VSTAT = '1'.
    =====
    If you see the FM : NAST_DELETE_OBJECT, its only useful when NACHA = 7 (i.e. message transmission medium = Simple Mail)
    For others its not useful.
    We had similar issue few days back and after long RnD, we straightaway deleted the entries using the Zprogram.
    regards,
    Edited by: Pranu Pranu on Aug 19, 2008 1:42 PM

  • Is there any datasource available to pull data from NAST table?

    The field I am trying to pull out of NAST (Message Status) table is NACHA. Please provide me hints if any Business Content Datasource uses this table or we have to create a custom extractor for the same?
    Regards,
    Joy

    I dont think there is a standard business content datasource to extract data from NAST table. If you are going to use this data in some other LO modules based on the requirement enhance the datasource and append fields and write code to populate the message types.
    If you are going to use this as stand alone data, then you can go ahead and create a generic datasource based on table.

  • OPtimizing Performance for Select query on NAST table

    Hi All,
       We are fetching a single record from NAST table. The table has around 10 Million Entries.
       The Select Query takes around 5-6 minutes to return.
       We are not using the Primary key completely. We are using only one field of the primary key.
        The field is also a part of the Index but we are not using all the fields in the index as well.
        We need to bring down the time. What can be the solution? I cant see any changes to the code, since its a single query and we cant use the Entire Primary key.
       Would creating an Index on the fields that we are concerned with help in this regard.
       Open to all solutions.
    Thanks in Advance,
    Imran

    Hi,
    Please check this thread
    http://sap.ittoolbox.com/documents/popular-q-and-a/specifying-the-index-to-be-used-2462
    For creating another secondary index in NAST whether basis will approve for this?
    aRs

  • Adding a new record in NAST table via Z program

    Hi Experts,
        I have a requirement in which i have to trigger a SAP Script to send as FAX based on some condition when a shipment is saved by VT02N transaction.
    The output type which i am using is configured to send fax immediately  on save of shipment. And so now I can only send fax by entering output type and other details in MESSAGES FOR CURRENT SHIPMENT section.
    But the requirement is  when user saves the shipment and if the required conditions are met then output type should be automatically populated in MESSAGES FOR CURRENT SHIPMENT section.
    I think by adding an entry in MESSAGES FOR CURRENT SHIPMENT section we are adding an entry in NAST table. I would like to know how we can populate an entry in this table automatically.
    Regards,
    Leona

    Hi,
    As much I have understood ur requirement, you need not do and thing using Z(custom).
    I think, SAP has inbuilt functionality.
    As you are discussing about Shipment(VT02N), you need to assign shipment type to sales organization in VV21(create), VV22(chnage).
    In this tcodes you need to add Customer number, Partner Function, Medium(FAX, Printout, Idoc, etc ...).
    So when you change shipment and save it, automatically messages will be configured and will contain a entry, which will trigger FAX
    You are discussing about some condition, based on which FAX should be triggered. Can you be little more clear on this.
    Hope it helps u...
    Thanks & Regards,
    Mihir.
    Edited by: mihir6666 on Jul 12, 2011 7:54 AM

  • Reg:Updating NAST Table

    Hi Gurus,
    In my requirement i want to set  the data base field VSTAT as 1 in NAST table when the order is processed. I'm using UPDATE statement to update the database field but it does not work. i write the code like this
    update nast set vstat = 1
               where kappl     = 'EF' and
                         objky  = '5500000002'  and
                        kschl   = 'LEFT'.
    but it doesn't work fine sy-subrc set to 4. Is there any way to set the value of vstat as 1. Please help me.

    same here, you need to write your issue clearly. Why are you trying to update NAST. it contains the output from the transaction, why not letting it processed instead of doing something stupid bu updating in in the code. if you dont weant output to be processed remove the condition record.
    You would help yourself if you write the problem yiu are facing more clearly.  eg you are writing the code but where? which program ? user exit?  how  can one imagin what your issue is

  • In se16, nast table is giving dump.

    As a Developer what can I do for the below issue ?
    In se16,
    table name : Nast
    When I tried to view all the entires in Nast table, I have got dump saying that
    TSV_TNEW_PAGE_ALLOC_FAILED
    and code is
      564 try.
    >>>>> SELECT * FROM NAST                     "client specified
      566                  APPENDING TABLE INAST
      567                  UP TO RSEUMOD-TBMAXSEL ROWS BYPASSING BUF
      568    WHERE KAPPL IN I1
      569    AND   OBJKY IN I2
      570    AND   KSCHL IN I3
      571    AND   SPRAS IN I4
      572    AND   PARNR IN I5
      573    AND   PARVW IN I6
      574    AND   ERDAT IN I7
      575    AND   ERUHR IN I8
      576    AND   VSZTP IN I9
      577    AND   VSDAT IN I10
      578    AND   VSURA IN I11
      579    AND   DATVR IN I12
      580    AND   UHRVR IN I13
      581    AND   USNAM IN I14
      582    AND   VSTAT IN I15.
      583
      584   CATCH CX_SY_DYNAMIC_OSQL_SEMANTICS INTO xref.
    Could you please suggest me how to justify this ?"
    THANKS IN ADV.

    You are trying to view a large number of records and system is not able to allocate any new memory to store that records and dispaly on the screen. So, it gives you the short dump.
    If you want all the entries, try to run it in Background. Instead of F8, press F9 and fill up the details in the popups to schedule a job.
    Or, try to run SE16 for NAST with some restriction like: user or creation date etc
    Regards,
    Naimesh Patel

  • Value in NAST table

    Hi,
      Anyone can plz give me the auswer that which types of  values are stored in NAST table.
    Regards,
    Meenakshi

    Hi,
    refer this thread,
    https://forums.sdn.sap.com/click.jspa?searchID=2382214&messageID=3162327
    Reward points if useful..
    Regards
    Nilesh

  • How to send the PDF file to FAX will the nast table updates

    Hi all,
    How to send the PDF file to FAX. Will the nast table updates ( which fields updates ).
    Need is once fax is send for that delivery, again it should not fax again. Will the nast table helps to check the sent fax.
    Please give me sutable suggessions....

    Have you checked Forums » Community Discussions » Code Snippets 
    I believe there were some examples on converting/sending PDF.
    Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it.

Maybe you are looking for