Attaching smartform in NACE

Hi all ,
      I am working with sale order smartform. i started it from scratch.i created  the form and the driver program. i used the parameter option in my the driver program to call the the smartform.
           now i have to attach it in the NACE transaction.
             what all are the changes that has to be done in my driver program????
Please find my codes.
*& Report  ZSD_SALEORDER_DRIVER
REPORT  ZSD_SALEORDER_DRIVER.
PARAMETERS: DOCUMENT LIKE VBAK-VBELN.
DATA : fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname                 =  'ZSALE_ORDER'
  VARIANT                  = ' '
  DIRECT_CALL              = ' '
   IMPORTING
     fm_name                   = fm_name
EXCEPTIONS
   no_form                  = 1
   no_function_module       = 2
   OTHERS                   = 3
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL FUNCTION fm_name
    EXPORTING
  ARCHIVE_INDEX              =
  ARCHIVE_INDEX_TAB          =
  ARCHIVE_PARAMETERS         =
  CONTROL_PARAMETERS         =
  MAIL_APPL_OBJ              =
  MAIL_RECIPIENT             =
  MAIL_SENDER                =
  OUTPUT_OPTIONS             =
  USER_SETTINGS              = 'X'
   document                    = document
*TABLES
     i_pfg                      = lt_pfg
IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
   EXCEPTIONS
     formatting_error           = 1
     internal_error             = 2
     send_error                 = 3
     user_canceled              = 4
     OTHERS                     = 5
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
Thanks in advance

Follow this sample example
Goto Transaction NACE --> Select Application V1(Sales) --> Click on Output Types --> Select the output type as BA00 (as generally BA00 is the output type associated with Sales Order ) --> Double click on the Processing Routines folder on the left and it will display the Form name and the corresponding driver programs name.
Close the thread if your question is answered.
Regards,
SaiRam

Similar Messages

  • Help regarding attaching smartform to a report program for QM module

    Hii,
    I have developed a certifiacate of analysis smartform for QM module and i attached it to a output type ...but i need to attach this smartform to a standard report RQCAAP01. can anyone help me what customizations i should do in report program in order to attach smartform.
    Regards,
    Venkat Akella.

    I attached smartform in NACE to LQCB output type but i should also make changes in report program RQCAAP01..can u please let me know what customizations i should do in tht report program to attach the smartform..

  • Attaching Smartform to a Z Screen

    Hi Guys,
    We have attached a Z Screen to Purchase Requisition Number screen to display Terms & Conditions (TCode: ME23n). To that Z screen I wish to attach Smartform which I have developed taking PR no as input which the screen is already displaying.
    Please let me know the required things like ( creating Work Area and Application) <b>in detail.</b>
    TIA,
    Nitin

    Hi Nitin,
    so thats very easy way of solving things.
    jst create a new output type say ,YNEU  in the nace output type EF and define the print program as the std one (SAPFM06p(i think)) and attach ur form...it will ask an customizing request number to do this ......by doing this way u can overcome the problem of the std putput type NEU.

  • Problem while assigning smartform in NACE

    Hi all,
    I am getting the following error while trying to assign a Z-smartform in NACE transaction. Rewards assured
    <b>Diagnosis</b>
    For output type NEU and transmission medium 8 an entry has been maintained in the table of processing programs, but in this entry no processing program has been specified.
    <b>System Response</b>
    When the output will be processed later on, it cannot be issued.
    <b>Procedure</b>
    Specify at least one processing program and one processing routine in this program.

    Hello Jai,
    I just received the same error while updating our PO. 
    In my case, the problem was that medium "Special function" had an entry line with no program assigned.  This was set up in the original configuration of the system, and since I had only changed the "Print output" entry, I wasn't sure what was causing the message. 
    Since the "Special function" entry was blank, I tested that to see if it was the issue.  Removing that entry did eliminate the message.
    Since the message I received was an informational message, an alternative method to proceed was by simply hitting "Enter" when the message appeared.  I don't see why a blank entry would be required, but since I didn't do the original system configuration, this was the method I chose so as to not change any existing settings other than for the Smartform on which I was working.
    This is an old thread, but I thought I would add this information in case anyone stumbles across it while searching for information about this error (which is how I found the thread.)
    Blaine

  • How to attach smartform to tcode F.27 while assgning the correspondance..

    Hello,
    Using OB96 tcode when we try to assign correspondance, I can see only provision for attaching the Script. Is there anyway, where we can attach SMARTFORM in the 'Form Name' column?
    Thanks,
    Jyoti

    Hi
    I am sorry, this FORUM is only for SAP Service Marketplace issues. Please open a customer message for your request.
    thanks and regards Martin

  • How to use processing routine 2 for another smartform in nace

    Hi Techies,
    I have configured custom smartform ZS1 for standard program RLE_DELNOTE for delivery in nace.
    Now I need to configure another smartforms ZS2 for same program.
    How to proceed with this?
    Due to client constrain, I cannot make changes in ZS1.
    If it would be custom program, I can create new Form Routine, and proceed.
    But for same form routine, can you suggest differentiation methodology to proceed with processing routine 2:
    Program                   RLE_DELNOTE
    Form Routine              ENTRY
    Smartform Form        ZS2
    Kindle guide.
    Thanks in advance ,
    Tanaya

    Hi Tanaya,
    You can create a new output type in NACE and get this done. get a copy of existing output and attach your new smart form there. maintain appropriate condition records so that your document will trigger 2 outputs.
    Thanks,
    tansap.

  • Attach smartform to T code FBCJ

    HIIII Experts,
    Can you please tell me how to attach a driver program smartform to T Code FBCJ(Cash voucher), I have already created a smartform for the same, but dont know how to attach it?? PLS HELP!!!!!
    Regards
    Rajeev khatri

    Hi,
    1. Goto in NACE
    2. You need to ask your functional buddy to let you know about Application area,for example take V3 (Billing).
    3. Select V3 from the list and then click on Output Types, select any output type (Which you wud like to give to your smartform)
    4. Else if you like to create a new one for your script, then on same screen click on change button, then click on New Entries
    And give all the detailed info.
    5. To use existing output types, select a output type like "ZEDI", at the left hand side double click on Processing Routines.
    6. In the Processing Routines block, Give the Program name as print program and here you need to give your Smart form name in Form option.
    Save it.
    Edited by: Lokesh Tarey on Jan 13, 2012 7:47 AM

  • Attaching smartforms and print prog to invoice

    hi
    ive developed a smartform and a print program.
    da program has a selection screen dat asks user for doc number(vbeln).
    it den displays data in da smartform.
    now ive to attach it to va02.
    wen i attach it using v/40 output type(RD000) program name : zinvoice and pdf/smartform: zinv .and try to get print preview using vf03 da preview doesnt appear.also wen i click on print it shows message "output cannot be issued".
    can ny1 suggest wat da problem is and how to resolve it...
    points 'll b rewarded...
    rgds
    Message was edited by:
            abapuser

    1.
    How did u assigned the output type in NACE.
    2.
    did u go through the form routines of data/transfer copy controls in VOFM .
    if its VA02 and VF02 then VTFA has to be used for the same in setting the output type .
    if option 2 is not ur case then check with ur functional consultant as to which requirement this output is configured in the nace and in procedures.
    o/p cannot be issued is not able to pick the output type for the form and the print program.
    This output type has to be configured in NACE first of all.
    Then to test the invoice enable this output type for that vbeln number in GOTo-_header->output -> and enable the output type.
    regards,
    vijay

  • Attach Smartform to Transaction

    Hi
    Read n worked on all the tutorilas in SAP Technical .com n SDN on creating SmartForms n SmartStyles.
    How do we attach the form to the transaction eg. smartform to PO (ME21N) ?
    Though, general in its nature but not a question for interview so please regard as genuine enquiry.
    any help is appreciated.

    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.
    Nace
    If Found Help Full Do Reward.
    Regards.
    Eshwar.

  • Attach smartform to tcode

    i have created z-program and smartform for sales order & invoice , i want to attach it  to standerd  tcode ,
    how can i do this ? plz tell me step by step.  (  in NACE  tcode for v3 output  type i give my program & SMARTFORM  name
    but i.am not getting result)

    Hi,
    If output type is not created (z-output type) than you have to consult your functional consultant. Otherwise, for a particular sales order or invoice document you can maintain output type at header information (which already exists). Once you maintain and save the document, you would be able to see the saved output type for that document using menu path "Issue Output To" pop up.
    And as you have mentioned that you have maintained your smartform and z-driver program in NACE transaction, you would be able to run your smartform from those standard transactions.
    Regards,
    Sambaran

  • Assigning Smartform in NACE

    hi,
    i've developed a smartform for purchase order i've configured in nace .instead of MEDRUCK i have given the Smartform name as ZPURC  im getting the error as 'ERROR IN OPEN_FORM'.
    what should i do for this where should i configure the smartform.
    thanks and regards,
    siri

    Hi Sirisha,
    Please check ur logic.
    Assigning form in NACE.
    Goto NACE Transaction.
    select EF application and then click on Output types Push button.
    Now select output types NEU or NEUS and double click on Processing routines folder on the left side on the screen.
    Now in Medium Print output remove the form in PDF/Smartform Form  field and assign ur own form name which u have created.
    Best regards,
    raam

  • How to get material number in smart form driver prog attached to MM01:NACE?

    Hi,
    I have attached driver program of smart form to MM01 usinfg nace.
    On save smart form should get generated.
    Can anybody guide me how to get material number from MM01 in driver program on saving MM01.
    as of now am not getting values in smart form.
    What additional lines to be coaded in driver program to get material number.
    Thanks.

    hi,
    use nast table in your import paramaters of smart forms.
    In the Nast table you can find a field with object key which holds the Material Number.
    Hope this helps.
    Thanks,
    subash

  • Attaching smartform and print prog to invoice

    hi
    ive developed a smartform and a print program.
    da program has a selection screen dat asks user for doc number(vbeln).
    it den displays data in da smartform.
    now ive to attach it to va02.
    wen i attach it using v/40 output type(RD000)  program name : zinvoice and pdf/smartform: zinv .and try to get print preview using vf03 da preview doesnt appear.also wen i click on print it shows message "output cannot be issued".
    can ny1 suggest wat da problem is and how to resolve it...
    points 'll b rewarded.
    rgds

    first call the function module name using ssf_function module _name
    and then inluce  ur fm.
    as below.
    Reading the NAST and DOC structures
      CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = nast
          ix_screen      = ent_screen
        IMPORTING
          ex_retco       = ent_retco
          ex_nast        = l_nast
          doc            = l_doc
        CHANGING
          cx_druvo       = l_druvo
          cx_from_memory = l_from_memory.
      CHECK ent_retco EQ 0.
    SmartForm from customizing table TNAPR
      gv_formname = tnapr-sform.
    Calling the layout set
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = gv_formname
        IMPORTING
          fm_name            = gv_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc <> 0.
        PERFORM protocol_update.
      ENDIF.
    For Print output:
      IF nast-nacha = '1'.                  " Print output
        ls_control_param-preview =   'X'.
        ls_control_param-no_dialog = 'X'.
      ENDIF.
    For fax output.
      IF nast-nacha = '2'.                  " Fax
    Create the Recipient Object
        CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
          EXPORTING
            ip_country        = gv_land1
            ip_faxno          = gv_telfx
            ip_type_id        = lv_fax_tp
          IMPORTING
            ep_recipient_id   = ls_recipient_id
          EXCEPTIONS
            invalid_recipient = 1
            OTHERS            = 2.
        IF sy-subrc NE 0.
       IF write_out = 'X'.
          FORMAT COLOR 6.
          WRITE AT /5 text-004.
       ENDIF.
          RAISE other.
        ENDIF.
    Create The Sender Object
        CALL FUNCTION 'CREATE_SENDER_OBJECT_PPF'
          EXPORTING
            ip_sender      = sy-uname
          IMPORTING
            ep_sender_id   = ls_sender_id
          EXCEPTIONS
            invalid_sender = 1
            OTHERS         = 2.
        IF sy-subrc NE 0.
       IF write_out = 'X'.
          FORMAT COLOR 6.
          WRITE AT /5 text-003.
       ENDIF.
          RAISE other.
        ENDIF.
    Output options
        ls_output_options-tdteleland = gv_land1.
        ls_output_options-tdtelenum  = gv_telfx.
        ls_output_options-tdfaxuser  = sy-uname.
    Control parameters
        ls_control_param-device = lc_fax.
       ls_control_param-no_dialog = 'X'.
       ls_control_param-langu  = nast-tdspras.
      ENDIF.
      IF gv_fm_name IS NOT INITIAL.
    Below function module is used to show the Smart form
        CALL FUNCTION gv_fm_name
          EXPORTING
            is_nast            = l_nast
            doc                = l_doc
            control_parameters = ls_control_param
            output_options     = ls_output_options
            user_settings      = ' '
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            OTHERS             = 5.
        IF sy-subrc <> 0.
    Error handling
          cf_retcode = sy-subrc.
          PERFORM protocol_update.
        ELSE.
        ENDIF.
      ENDIF.

  • Assign PO Smartform in NACE error-Processing routine does not exist

    I have created a Z-Smartform and Z-driverProgram and assigned both in NACE:
       Medium-           Program-                      Form-                                 PDF/Smartform-   Type
    Print output-     ZSFPOREPORT-                          -ZSFPOREPORT- SmartForm
    but a error message : Processing routine in program ZSFPOREPORT does not exist  ..
    Do we need to code in driver prog under a Subroutine and call the same (or) Do we need to create a Form with Special Interface parameters similar to Entry_NEU ..
    I am not sure as ENTRY_NEU is for a Script but we need to assign a SMARTFORM here...
    So Gurus suggest.....

    Hi
    DATA:   fm_name  TYPE rs38l_fnam.
    *-- Call the Smartform for Label Printing.
            CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
              EXPORTING
                formname           = 'ZLS_XXXXX'
              IMPORTING
                fm_name            = fm_name
              EXCEPTIONS
                no_form            = 1
                no_function_module = 2
                OTHERS             = 3.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
            CALL FUNCTION fm_name
              EXPORTING
                v_XXXX         = v_YYYYY
                v_matnr          = mara-matnr
              EXCEPTIONS
                formatting_error = 1
                internal_error   = 2
                send_error       = 3
                user_canceled    = 4
                OTHERS           = 5.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
    But this pattern is not same for all driver program. So you can do the following:
    Step 1: Click on the area where you want to write function module.
    Step 2: Click on "Pattern" at the top of the SAP window. Enter the function name as  SSF_FUNCTION_MODULE_NAME  and
                 press ok.
    Step 3: Now fill up the reqd fields. Give the name of the smartform in
                 EXPORTING
                formname           = 'ZLS_XXXXX'
    Step 4: Now go to the SMARTFORMS program Environment->Function Module Name  and copy  the Module Name.
                Again click on "Pattern" and paste the module name. Again you will get a pattern(i.e. the second function)
    Step 5: Replace the Function module name with "fm_name" as shown in the code above.
    Then your code is ready.
    Thanks & Regards
    Rocky kr. Agarwal.

  • Attach smartform with in sales billing documents(vf03)

    Hi Friends,
    I make one smart form for service invoice.
    And fuctional person already defined billing types in vf01.
    so how can i attached my smartform with that perticular billing type.
    Its functional work or technical?
    I don't know so please help me and send me reply as soon as possible.
    thanks in advance.

    Hi
    Its part of configuration of attaching the smartform to the billing type done by functional person.
    It is done in SPRO->S&D->BAsic Functions->Output Control->Output Determination->Maintain Output Determination of Billing Documents.
    Thanks
    Amruta

Maybe you are looking for

  • Windows Update on VMs seems to only work one at a time

    I have a handful of Win 2012 R2 VMs (running on ESXi) I've inherited. I've tried 3 or 4 times to update them now since taking them over, and noticed the strangest thing - only one of them will download updates at a time. If I start the update on all

  • Creation of Dynamic Table

    Hello All,        I want to Create Dynamic Header of the Table and according to the Header have to filter the data. Kindly give me the Suggestion how shd i resolve the  problem. Ex. Run time I will create the Heder as 4%, 5%, 12.5% and filter the amo

  • Missing 3G Due to Dummy AT&T Staff

    just wanted to share that after not being able to access the internet and realizing i wasn't receiving any messages (i could see if someone called), i took the phone into att&t. i had recently upgraded my program and in that process, the clerk had ac

  • My Preview app unexpectedly quits since installing OS Lion

    I recently installed OS Lion (10.7) and since this installation, I cannot open any PDF files. When I attempt to download PDFs, Preview app opens and then says it unexpectedly quit. Any suggestions?

  • Why mplayer in i686 repository is not compiled with vdpau support?

    I was kind of surprised when I find out that mplayer in i686 repository is not compiled with vdpau, since it is in x86_64 repository, I know I could enable vdpau easily by compiling the package myself, but wouldn't it be even better if it is built-in