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.

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

  • Problem in downlaoding the attachment from the transaction iw33

    Hi experts ,
    I am facing problem in downlaoding the attachment from the transaction iw33 where we have attached a presentation.
    when i tried to debug it at the function module GUI_DOWNLOAD its returning sy-subrc = 5 which is no authorization .
    there is some problem with the user authorizations as the same thing is working fine with other SAP user account .

    It was an authorisation problem .

  • 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

  • Whats the business object attached to the transaction TBB1  ??

    Whats the business object attached to the transaction TBB1 .
    I am trying to post a  loan contract fees and repayment  from Treasury to GL.
    Thanks ,
    Naval Bhatt

    Below is the exact requirement .... but there is no event generate right now  ... I feel that there are some configurations need to be done ..for the event to be generated ...
    It will be great if you have any idea about the configurations .. .
    Objective:
    When loan contract fees and repayment are posted from Treasury to GL, workflow should be activated to:
    a. Insert a payment block 'Z' in the document (Will need to create a user-table to define the criteria where payment block is to be inserted), AND
    b. Route the document for approval.
    If amount < 10,000, only 1 level approval
    If amount > 10,000, 2 levels approval required.

  • How to open documents attached to a transaction in Portal?

    Hi Guys
    We have a CRM 5.0 Implementation and here is what we are using in Portal
    Title: Leads -Transaction
    Technical Name: com.sap.pct.crm.lea.leads
    Contents: This iView originates from the business package for CRM 5.0 and contains functionality CRMD_BUS2000108 supported by BSP Application crm_bsp_frame
    Title: Opportunities-Transaction
    Technical Name: com.sap.pct.crm.opp.opportunities_s
    Contents: This iView originates from the business package for CRM 5.0 and contains functionality CRMD_BUS2000111 supported by BSP Application crm_bsp_frame
    My question is -  How to open MS Word, MS Excel, Powerpoint documents attached to opportunity transaction in Portal? Can we use the Project share path in URL?

    HI,
    Please have a look at note 606745. This will help you with your questions.
    Regards,
    Hemanth

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

  • Assign Smartforms to Transaction Code F.27

    How to assign SMARTFORMS to transaction Code F.27

    Hi,
    Refer to the link given below.
    http://help.sap.com/saphelp_nw04s/helpdata/en/6e/db0cee629b4f43a4f93f59e979aa8a/frameset.htm
    Regards
    Rajesh Kumar

  • Help needed on properties of files attached to the transaction-crmd_order

    Hi Experts,
    My requirement is to hide the file attached to the transaction(crmd_order).
    For this, I got the information about the file from cl_crm_documents=> get_info method and the FLAG VARIABLE used for hiding th file is KW_SYSTEM_FLAGS.
    But if I try to set this flag by passing this as a import paramter(as properties) to cl_crm_documents=> change_properties method, I am getting 'SKWF_IO E003KW_SYSTEM_FLAGS' error.I am getting this error in cl_skwf_io_util=>check_properties_authority method. It says that the hidden property is a restricted one and we are not supposed to change it.
    But I am in need of changing this. Can anyone help me out in this?
    Regards
    Athikrish.

    Al_Barrs wrote:
    THR AUG th?I have some picture, graphic and text files that have in some way been saved in the Creative Player2 format on my computer. I need to associate these files with another program so that I can reoer the images and text. Can anyone tell me what program I can use to associate these Creative Player2 files to revover them, or if there is some other way to open them... Desperate for help!!! Thanks in advance. Al [email][email protected]][email protected][/url]?
    What player are you referring to? Is it Creative PlayCenter 2? Playcenter doesn't save any special extension to the files. It uses all the standard extension. eg. jpg,txt.... Not sure what you are trying to say.

  • Need procedure to attach smartform to a crm transaction

    Hi,
    I need to know how to connect the smartform for a transaction for exampe(sales order ) I hope it is to be done through the actions. and in the actions where can i write the logic ( driver program logic ) . then how to attach these things.
    thanking you,
    jaffer vali shaik

    Basic Functions->Actions->Create Actions & Wizards->after creating action go to change actions & conditions->Define action profiles & actions->select your action profile & click on action definition->select your action definition and click on processing type here you can assign your smart form to your action profile which in turn you will assign to your transaction
    Regards
    Deepak Motwani

  • Debugging ZdriverProg when  attached toa  Standard Transaction code

    Hi all,
    iam doing with SAP Standard smartform
    initially the ZProgram and Zform are  attached
    to standard Program : RV56TD00  for the transaction VT02N
    (ApplicationV7 - Shipment :  Bill of Lading)
        +
    Zform
    Now iam working on  Modifying the ZProgram  to Zprogram1 + Zform1
    where  Zform1 is modified version of Zform
    Zprogram1 + Zform1  both are  saved in LOCAL OBJECT
    please let me know ..that
    1) How can i test and Debug  my Zprogram1
    if possible  Provide an example .. for the above said things ..
    In Short  : for  a standard transaction ( VT02N ) where  Zprog + Zform are attached . how to debug Zprog ????????????????
    for  appropriate  answer  Points  will  be  rewarded instantly..
    Looking for ur   answer...
    Thanks
    Aslam...

    Hi,
    Open the ZPROGRAM and put the breakpoint in that and go to VT02N transaction go with print prieview now it will display in debugging mode .
    If you want to degug in smartforms open the smartform and create a program lines and in the input parameters give the variable you need to check in the debugging mode and go with print preview in the vt02n .
    Thanks,
    NN

  • How to display smartform through transaction code on action of button

    Hi All,
    Please let me know how can i display smartform through tcode on button action.
    For e.g. I have a F.62 tcode where the smartform is attached. Now i want a button in BSP which when clicked should call tcode F.62 and display that smartform.
    Also if i cannot use "CALL TRANSACTION" can i use "SUBMIT" and call that transaction.
    If not how will i able to acheive that?
    Please help as it is very urgent.
    Thanks,
    Rahul

    Hi,
    Use ITS to display the F.62 transaction is worth a try. But I am not sure whether the ITS will be able to display Smartforms...
    Another option is trying to launch the Smartforms (I dont know the F.62 transaction enough to tell if it is time-consuming or not) and convert it to PDF (there is plenty of threads about this in SDN) and then, display it through BSP (either inline or for the user to download).
    Best regards,
    Guillaume

  • 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

  • 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

  • Function module to find document attached to a transaction in document tab

    Hi
    I have an urgent requirement. I have to check whether any document is attached in the document tab in service order transaction within my code. How can I do that?Is there any function module for doing that? Please suggest.
    Regards,
    Sucheta

    Not quite sure if these BAPI's work for service orders in CRM (cause that is probably what you are looking for), but here is some code for retrieving documents for service orders (or business transaction in general):
    DATA : lr_crm_document           TYPE REF TO cl_crm_documents.
      Get header info object.
        SELECT SINGLE * FROM crmd_orderadm_h
               INTO lw_orderadm_h
               WHERE guid = iv_guid.
      Retrieve all documents linked to current business transaction.
        CREATE OBJECT lr_crm_document.
        ls_business_object-instid = lw_orderadm_h-guid.
        ls_business_object-typeid = lw_orderadm_h-object_type.
        ls_business_object-catid  = 'BO'.
      Get info documents.
        CALL METHOD lr_crm_document->get_info
         EXPORTING
           business_object       = ls_business_object
          PROPERTIES_REQUEST    =
           newest_only           = 'X'
          properties_query      =
          PROPERTIES_QUERY_RA   =
         IMPORTING
           phioloios             = lt_phioloios
           ios_properties_result = lt_ios_properties_result
           loios                 = lt_loios
           phios                 = lt_phios.
    Hope this helps.

Maybe you are looking for

  • Phone contacts are not visible on the Z10 after a OS 10.2..1 update, but are still in there somewhere...

    It was yesterday that I updated on my Z10 model STL100-1 OS from 10.1.0.273 to 10.2.1.1925 and got an instant message to update to 10.2.1.537 and did that, too The update process went smoothly enough. But, after loading the new 10.2 OS from BB's webs

  • Images in Table move on Mouse Over

    I made a simple table-based photo gallery.   On mouse-over, a coloured bar appears at the bottom of the selected image.  At the same time the image moves upwards slightly, presumably the same distance as the width of the coloured bar.   Depending on

  • K9N2 Diamond question.

    I have a problem with getting Sata port 5 and 6 to do any thing for me. I have been reading round on this forum and found that port 5 and 6 are only active in ACHI mode. This realy is a problem, as my SSD disk don't suport ACHI mode and my plextor dv

  • Query is immediate in sqlplus but doesn't finish in Apex

    OK, so i wrote this fairly simple 4 table query for a report. This query when run from SQL Developer or directly in SQL Plus runs and completes in less than a second. I create an APEX application that would run this same query and the report never co

  • Debugging queue related issues

    can the  forum provide me blogs and docs for debugging queue(inbound and outbound) related problems in XI,