Smartform Attached to ME21N

Hello Frnds,
MEDRUCK is the form attached to ME21N ,
But where do we attach it? which Function Module?
Thanks & Regards

Hi ,
Go to transaction code NACE
there select application EF,
click on the output types,
there you will get a list of output types that have  been attached to this application,
select the output type that is active currently.
you may find the currently active output type by going to transaction me23n there click on the tab message type and the message type will show you the output type.
Once you select that output type and press the processing routines you will go to the screen showing the driver program and the form attached to it.
you may then change the form and the driver program attaching you smartform and its driver program.
Regards,
Sunmit.

Similar Messages

  • Business Context - Smartform Attachment

    Hi Experts,
    I recently upgraded from CRM 6.0 to CRM 7.0 EHP2. In the business context section in interaction center for complaint there is link for smartform attachment.
    On clicking the link the attachment does not show up in the new window. This works well in CRM 6.0 system. Could this be a configuration or there is some other reason? Thank you for your time.
    Regards,
    Dhruv Kashyap

    Hi Vijay
    One solution is to, you define the attachments such as resource then you can use the resources to get the number of attachment for each event type.
    Regards,
    Shirin

  • How to add attachment in me21n ?

    Hi,
    i would like to add attachment (doc , excel...) while creating a manual PO ?
    I have seen the SAp icon but as far as i did understood the functionnality, you can just retrieve an already created document...
    How to add a new one directly in ME21N ?
    Kind regards,
    Yann

    You can attach manually any document to PO without using Document Management System ( DMS ) in SAP 4.6C.
    But you cannot attach document while you create PO in T/Code ME21N 
    Save you PO ( ME21N ) and again open with change ( ME22N ) then you can attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N ) 
    Click your Service Object button -> Create -> Create attachment 
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started. 
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.

  • Display smartform attachment contents

    Hi,
    Is it possible to display the contents of an attachment in a smartform printout and fax? If yes, how do we do it?
    Thanks and Regards,
    Mick

    Hi Mick,
    In the print program of Smartform, use GUI_UPLOAD to upload the file. This FM would upload the data from the file into an internal table. Pass the internal table to the Smartform. In the smartform read that table and display the contents as required.
    Best regards,
    Prashant

  • Smartform attachment in IW21

    Hi Experts,
    I am trying to send an email notification to outlook in IW21 using QQMA0014 enhancement.I created a function module and written code in it.Its working fine.Can I attach the smartform which is getting generated in this Tcode to mail ids? How can i get the smartform name in the function module?
    Regards,
    Sam

    Hi Experts,
    how to fetch data from standard tcode using RFC function module?
    Regards,
    Sam

  • Smartform for PO - ME21N info needed

    Hi ,
    Can anyone also tell me how to add a hyperlink on the smartform page? Is that possible? If yes, how can that be done?
    I am developing a smartform in ECC 6.0 for PO for ME21N transaction...Please can anyone let me know where I could get the below information:
    Ship to party, Sold to party, Vendor info, Bill to party.
    Also, what is the procedure to print the header text on the smartform? Do we have to use, read text FM? Are there any standard form?
    Please respond.
    Thanks.

    Hi,
    it is not possible to give hyper link in smartform.
    the reason being the end result of a smartfrom is supposed to be a print out or PDf file.
    generally u will not maintain sold-to/shipto details in P.O, this is possible when we create P.O with reference to a Sales order in which case u need to go to the document flow and get them.

  • Smartform attachment too big

    Hi all,
    I'm sending a smartform via mail as a PDF with the CRM_ORDER standar transaction, and I observe that the size of the PDF attached varies randomly between 1 and 2 Megas.
    Can I do something to reduce this size?
    Best regards...
    Message was edited by: Jorge Tamayo Moreno

    Thanks MRUTYUN, but I can't do this because the PDF pass automatically via the SCOT transaction and it's imposible to manage this file.
    I've tried to modify the configuration of the SCOT transaction for the Sapscripts/Smartforms using other types of formats, but the others destroy all the styles of my smartform.
    There's any manner to especify(aproximately) the desired size of the PDF file?
    Greetings
    Jorge
    Message was edited by: Jorge Tamayo Moreno
    Message was edited by: Jorge Tamayo Moreno

  • Smartform attachment

    hello
    I need one help, my requirement is :
    my Z program have selecting selection screen and based on the input entered in screen,
    samrtform is callied...till this is it done. now they want to see in smartform in print prview
    and if it is ok than it is send as email attachment to user.
    kindly tell me how that print prview and email work simultaneously.
    it is going as attachmet but not coming in print preview.
    kindly suggest.

    Please refer the below thread....it says how to preview the smartform when called...........
    How can I make the Smart Forms to display a print preview by default without displaying the popup for print parameters?
    https://wiki.sdn.sap.com/wiki/display/ABAP/Smart+Forms?showChildren=false
    What you can do is, keep a button in the application tollbar...which says to Email...
    Once the button is clicked, the email should go....
    Please refer the below thread for sending the smartform as attachment..
    https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
    https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat
    Hope it helps!

  • URGENT: Smartform - Attaching Font to Device Type and Printing

    Hello Smarform Gurus,
    I have uploaded CORPOS font to SAP and using in SMARTFORMS. Whenever the PDF is called for invoice, it should print immediately.
    When I open the smartform and then print, the printout is coming fine with CORPOS font.
    Problem: When Invoice is created and PDF is called immediately, the prinout is not coming properly. It's because the printer device type KYOFS150 we are using does not support CORPOS. Pls let me know the options we have. We have also referred to SAP note 12462.
    Thanks in advance,
    Abhishek

    Hi
    U need to update the printer device type KYOFS150 or use another one supports that font
    Max

  • 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.

  • Smartform to OTF to PDF attached to an email ERROR

    Hi everyone... I have this problem... I need to send a smartform attached to an email... I'm doing the following:
    - Create the OTF using the smartform function importing job_output_info.
    - Convert the OTF (job_output_info-otfdata) to PDF using CONVERT_OTF_2_PDF.
    - Change the table line's width using SX_TABLE_LINE_WIDTH_CHANGE.
    - Send the email using SO_NEW_DOCUMENT_ATT_SEND_API1.
    Everything seems to be OK. But When I check the PDF file attached in the email and open it, everything there is a mess. The letters are superimposed over each other and the grills are not painted (instead it shows a black block).
    Any ideas how to solve this???
    Thanks a lot!!!

    Try this out..!
    <removed by moderator>
    To convert the script out put to PDF.
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF' u201C FOR out put format
          max_linewidth         = 132 u201CFor ASCII format: Number of lines in LINES-TDLINE
        IMPORTING
          bin_filesize          = gv_bin_filesize u201CFile size reference
        TABLES
          otf                   = gt_otf u201CInput table with OTF format
          lines                 = gt_pdf_tab " Output table with target format
    To mail Order in PDF format:
    Data declaration part :
    DATA: gt_reclist TYPE TABLE OF somlreci1, " SAPoffice: Structure of the API Recipient List
           gt_pdf_tab TYPE TABLE OF tline, " SAPscript: Text Lines
           gt_otf TYPE TABLE OF itcoo, " OTF Structure
           gt_objbin TYPE TABLE OF solisti1, " SAPoffice: Single List with Column Length 255
           gt_objpack TYPE TABLE OF sopcklsti1. " SAPoffice: Description of Imported Object Components
    DATA: gv_form_name TYPE rs38l_fnam, " Used to store the function module generated by Smartform
    gv_bin_filesize TYPE i, " Store the file size
    gv_pos TYPE i,
    gv_len TYPE i,
    gv_tab_lines TYPE i.
    DATA : gc_text(11) TYPE c VALUE 'Form Output',
    gc_tst(3) TYPE c VALUE 'TST',
    gc_testing(30) TYPE c VALUE 'Zellar Sales Document'.
    1. Assigning the Description of the object sent in the mail
      CLEAR gs_docdata.
      gs_docdata-obj_name = gc_tst.
      gs_docdata-obj_descr = gc_testing.
    Assigning the email id to Structure of the API Recipient List table
      CLEAR : gt_reclist, gs_reclist. u201C variables used
      gs_reclist-receiver = mail address'. u201CTo whom this mail should go
      GS_RECLIST-REC_TYPE = 'U'.
      APPEND gs_reclist TO gt_reclist. u201C Internal table for storing mail address
    2.Passing the Smart form  text lines to SAP office: Single List with Column Length 255 table ,this logic is used to get all the data into PDF file while you send an attachment through mail..
    CLEAR: gs_objbin, gs_pdf_tab.
      LOOP AT gt_pdf_tab INTO gs_pdf_tab. u201CLoop the content of PDF table
        gv_pos = 255 - gv_len.
        IF gv_pos > 134. "length of pdf_table
          gv_pos = 134.
        ENDIF.
        gs_objbin+gv_len = gs_pdf_tab(gv_pos).
        gv_len = gv_len + gv_pos.
        IF gv_len = 255. "length of out (contents_bin)
          APPEND gs_objbin TO gt_objbin.
          CLEAR: gs_objbin, gv_len.
          IF gv_pos < 134.
            gs_objbin = gs_pdf_tab+gv_pos.
            gv_len = 134 - gv_pos.
          ENDIF.
        ENDIF.
      ENDLOOP.
      IF gv_len > 0.
        APPEND gs_objbin TO gt_objbin. u201CTable contains Single List with Column Length 255 table
      ENDIF.
    3. Filling the details in SAPoffice: Description of Imported Object Components table
    DESCRIBE TABLE gt_objbin LINES gv_tab_lines.
      CLEAR gs_objbin.
      READ TABLE gt_objbin INTO gs_objbin INDEX gv_tab_lines.
      IF sy-subrc = 0.
        gs_objpack-doc_size = ( gv_tab_lines - 1 ) * 255 + STRLEN( gs_objbin ).
        gs_objpack-transf_bin = 'X'.
        gs_objpack-head_start = 1.
        gs_objpack-head_num = 0.
        gs_objpack-body_start = 1.
        gs_objpack-body_num = gv_tab_lines.
        gs_objpack-doc_type = 'PDF'.
        gs_objpack-obj_name = 'ATTACHMENT'.
        gs_objpack-obj_descr = 'test'.
        APPEND gs_objpack TO gt_objpack.
      ENDIF.
    4. Sending the Form Output in the PDF format to email
    data: WK_OBJHEAD TYPE SOLI_TAB.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' u201Cfunction module used for sending mail
        EXPORTING
          document_data              = gs_docdata u201CAttributes of new document
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = gt_objpack u201CInformation about structure of data tables
          OBJECT_HEADER              = WK_OBJHEAD u201CHeader data for document (spec.header)
          contents_bin               = gt_objbin   u201CData which is to be sent as pdf attachment
          receivers                  = gt_reclist  u201Cmailing list
        EXCEPTIONS                                 u201CException Handling
          too_many_receivers         = 1 
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        WRITE 'Sent Successfully'.
      ENDIF.
    Edited by: Thomas Zloch on Jul 16, 2010 10:38 PM

  • How to findout smartforms names attached to Standard T-Codes.

    Dear Gurus
    Is there anyway to find out which smartform is added to standard t-code
    Like in T-Code VF02
    there is a smartform attached when we click on the ISSUE OUTPUT.
    i want to know what is the name of that smartform..
    Regards
    Saad Nisar

    Hi Khatib,
    Use TNAPR table and provide program name to PGNAM and execute it. If it is attached to any output type configured through NACE then you will get script/smart form attached to this program but I am not sure there is an direct way to get output type for transaction code.
    As suggested by others, In NACE you can find output types based on Application. Select one of the application and click on output types to know the output types under an application.
    Thanks,
    Vinay

  • How to change the size and font of my text in SMARTFORMS

    Hello gurus,
    I have a smartform as image below:
    I want to know how can I change the font size, and if is there a way to auto adjust text within its container or window?
    Thanls

    To maintain « Styles » in your Smart form, read first : Smart Forms >   Maintenance of Styles with the Style Builder.
    Transaction SMARTSTYLES
    if not already created, create a new style (e.g. copy the style assigned to your form)
    create a new paragraph format
    select alignment "BLOCK Justified"
    Then in transaction SMARTFORMS attach your style and use your new paragraph format.
    Regards,
    Raymond

  • Smartform output to be sent as pdf when billing document is saved(VF01)

    Hello all,
    I`m facing a problem in transaction VF01.The requirement is,when user will save the newly created billing document in VF01 transaction ,the corresponding smartform (attached to respective output type ) should be converted and sent as pdf to ship-to party e-mail address.
    I`ve done the coding so that smartform is converted and sent through transaction VF02/VF03.
    But I`m facing problem in understanding how the program is automatically triggered when billing document is created.In VF02/VF03 it can be understood that on "Issue output To" and selecting respective output type,driver program is triggered and processing starts for mentioned routine in NACE.
    waiting for your valuable inputs...

    I hope process will go like this...
    1) when you use VF01 / VF02 & save, automatically RSNAST00 standard program will be triggered.
              2) This program will fetch the driver program & form from NACE transaction & it will execute the driver program.

  • How to find my program in smartform

    Hi Guys
    There is a Zsmartform developed also created Z driver program for that. that is not yet assigned in NACE . How can i know the that form is called by driver program . i want know  what is the driver program creted for that like finding in sap script
    ravi

    hi
    If ur smartform attached to some Y or Z driver Program, then it is difficult to find out. Becauce FM for Smartform is changed at runtime. Our Y or Z Program get current FM for SmartForms by FM 'SSF_FUNCTION_MODULE_NAME'.
    In table TPANR, U can find those smartforms & Program names which are attached with some output type.
    And also look at the transaction code NACE, there you can find the Driver program and also the samrtform name under the output type
    From NACE, Select the application type. Normally for Slaes we have V1, smae way you will have the application type, seelct that and press utput types, then select the Output type then press processing routines, then you will get the Program name and the layout name

Maybe you are looking for