Attaching the newly developed print smart form to T-Code COR2

Hi,
ABAP team developed a smartform for printout of process order which contain all the details of that process order and component list their qty and other details. Now I have to attach this smartform to the T-Code COR2. so that when the user creates the process order and save it then he goes to COR2 and enters the process order number then go to print button click and take the printout. How to attach the smart form to T-code COR2. Plz explain.
Thanks
Vinamrath

Hi Kumar,
You have to configure the print forms in the t code CB85. After you configure when you create the process order the printout will be triggered
It will be triggered automatically if the configuration is activated immediately otherwise need to go to spool request SP01 t code and give the printout.
In the configuration itself the printer name also have to mentioned.
Thanks and regards,
Satish

Similar Messages

  • How do we write the sub routines in smart forms?

    1) How do we write the sub routines in smart forms?
    2) What is the’ form interface’ in smart forms?
    3) Write down the path for writing for select queries in smart forms?
    4) How do we put dynamic page break in smart forms?
    5) in which system field contain the total page number of all forms in the currently processed print request in smart forms?
    6) What is the name of function module used to calling smart forms?
    1)     What is the functionality of function module ‘controal_form’?
    2)     How do we print the system date in this format ’15th Jan 2008’ on scripts?
    3)     What r the various print modes available in scripts?
    4)     What is the tcode for text element?
    5)     How do we draw horizontal line in scripts?
    6)     How can we suppress the leading zeros for a field in scripts?
    7)     In which system field is used to print current no page in scripts?
    Which f.m is used to reads text in sap scripts

    1) How do we write the sub routines in smart forms?
    after opening form see global definitions
    click on that there one tab called form routines inthat you can write subroutines logic.
    You can call in program lines .
    2) What is the’ form interface’ in smart forms?
    It is an interface between program and form .
    like function module we provide import,export,tables,exceptions
    Based on import and export parameters form will display for us.
    3) Write down the path for writing for select queries in smart forms?
    On window give right click in that command->programlines
    you can write all select  statements.
    4) How do we put dynamic page break in smart forms?
    you can define break point using break-point<>. syntax.
    5) in which system field contain the total page number of all forms in the currently processed print request in smart forms?
    SFSY-PAGE
    SFSY-JOBPAGES
    6) What is the name of function module used to calling smart forms?
    SSF_FUNCTION_MODULE_NAME
    =================
    1) What is the functionality of function module ‘control_form’?
    This function module is used to insert SAPScript control commands like NEW-PAGE etc from whithin the ABAP program.
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
      COMMAND    =
    EXCEPTIONS
      UNOPENED   = 1
      OTHERS        = 3
    IF SY-SUBRC NE 0.
    MESSAGE ...
    ENDIF.
    2) How do we print the system date in this format ’15th Jan 2008’ on scripts?
    Use SET DATE MASK to change format of date display.
    3) What r the various print modes available in scripts?
    4) What is the tcode for text element?
    se91
    5) How do we draw horizontal line in scripts?
    &ULINE&
    6) How can we suppress the leading zeros for a field in scripts?
    &it_vbak-vbeln(Z)&
    7) In which system field is used to print current no page in scripts?
    &SYST-PAGE& of &SYST-FORMPAGES&
    Which f.m is used to reads text in sap scripts
    READ_TEXT functiomodule.
    Reward points

  • Merge the Attachment Files from DMS into smart forms

    Hi Gurus,
    I have a requirement of merging documents and printing it on a smart form.
    I need to read the active files of SAP DMS. It could be DOC or PDF or Image.
    I will have a smart form with some data to be printed related to the document(may be 2 pages).
    Once after printing the data, I need to print the contents of the file in the smart form. (ie) 3rd, 4th and 5th pages.
    then i need to convert the entire smartform into PDF and load it back to DMS.
    Example :
    if I have 3 different files
    1. Word document, which has a Graphical representation of the component
    2. PDF, which has a Graphical representation of the component
    3. Image fileBMP or GIF or JPEG, which has a Graphical representation of the component.
    I have used BAPI_DOCUMENT_GETDETAIL2 to read the active document, and the function SCMS_DOC_READ to get the contents of the file in Binary format
    I couldnu2019t merge the contents of the documents
    Please let me know if there is any solution with in SAP to do this. We are restricted to smartforms only.

    hi Naveen,
      Checkout the link..,
      http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/creating xml forms 6.0
        it provides step-by-step guide to ur problem..
        hope it helps..,
    regards,
    Vinoth

  • How to print the overflow entries in Smart Form

    Hi all ,
    I am having a problem regarding smart forms . I have 30 entries in may data base table . Bt while I am going to print these data in smart form table it is showing only 16 entries .How to print rest of the entries in smart form ? Can anybody give me any solution .
    Thanks,
    Regards,
    Swashrayee
    Edited by: Matt on Feb 20, 2012 10:15 AM

    Hi,
    Are you sure you are entering the data in the main window .
    If you are using the secondary window,there is no flow text display with page break. If you position a subwindow with the same name on several pages, the system displays the contents of this subwindow on each page. Text and data that do not fit into the subwindow are truncated and not displayed.
    In a main window you display text and data, which can cover several pages (flow text). As soon
    as a main window is completely filled with text and data, the system continues displaying the text
    in the main window of the next page. It automatically triggers the page break.

  • Why the control parameters changed when print smart form

    Hi experts:
      I set the control parrameters in my source code to print the smart form, I use the loop table for printing, but I found the print device changed automatically, only the frist page is ok. that means, the control paramenters lost when loop. how to solve it?
    this is my source:
    LOOP AT it_outtab INTO wa_outtab WHERE flag = 'X' .
        ssf_open ls_control_param outopt ls_composer_param.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = lf_formname
          IMPORTING
            fm_name            = lf_fm_name
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
       IF sy-subrc <> 0.
         MESSAGE 'Call SSF_FUNCTION_MODULE_NAME Error' TYPE 'E'.
       ENDIF.
        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 lf_fm_name
          EXPORTING
            control_parameters = ls_control_param
            zgl_k_stru         = wa_outtab
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            OTHERS             = 5.
       IF sy-subrc <> 0.
         MESSAGE 'Call LF_FM_NAME Error' TYPE 'E'.
       ENDIF.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        ssf_close .
        MOVE-CORRESPONDING outopt TO ls_composer_param.
        ls_composer_param-tdimmed = ' '.
        ls_control_param-no_dialog = 'X'.
        IF outopt-tdpreview = 'X'.
          EXIT.
        ENDIF.
      ENDLOOP.

    Hi Prabhat,
    Please check following point in your smartform design.
    1) In your smartform design, how many pages do you have? (Check the page format and margins, have a look at form painter
        as well)
    2) Check out the navigation from one page to another page.
    3) Debugg the form and check at what point the last page is been added.
    Regards,
    Amee.

  • How to allow, user to enter the free text in smart forms and Drop Down list

    Hi Experts,
    How to provide the user to enter text in smart forms? ie Once the smartform generated, there the user allowed to enter text.
    And also is there any option to provide Dropdown list  in smart forms.
    Possible give with example with clear idea.
    Its very urgent!!!!
    Thanks in Advance!!!

    Hi!
    No, there's no way to it, because Smartform is just like a piece of paper, it can't handle any objects, after it is ready.
    It can be printed out/archived/sent on email as an attachment and that's all. It cannot be modified after it is completed.
    Regards
    Tamá

  • Help in printing smart form

    hallow
    i doing a smart form and i cant print it becuse when i send it to printer
    it stuck (proccing job) and my friend from other place can print the form
    in this printer .
    word or other thing i print normally .
    it happen in some computer in ower organization and this is a large problem
    i ask the basis and he said some thing about gui that different from my friend and mine but i don't now how to check it?
    maybe it different thing?
    how can i solve this problem?
    regards

    Shnya,
    NACE is a transaction code where in the functional consultants attach the script or smartform to a related driver program.Added to that they will set some other configurations like Prcessing routines and partner functions.Check whether they have assigned this to a output type and other stuff.Check with the Functional Guy.
    K.Kiran.

  • Getting the formatting error in  smart forms

    Hi All,
    When I am running the program to display the output for SMARTFORM in development system it is working fine ,But doing the same in the production system gives me the  formatting error
    EXCEPTIONS                      
    FORMATTING_ERROR           = 1   .
    So it is the same code which exsist in 2 different system & still it  works fine in the development system but errors out in the production system .
    Does this mean that any  smart form settings which is system dependent ?
    Any pointers on this regard will be helpful .
    Regards,
    Anurag

    Hello Guys ,
    It was an authority issue
    AUTHORITY-CHECK OBJECT 'S_BDS_DS'                
                     ID  'CLASSNAME' FIELD classname  
                     ID  'CLASSTYPE' FIELD classtype  
                     ID  'ACTVT' FIELD activity.      
    This object was falling .
    Anurag

  • Dynamically change the table fields in smart form

    hi all,
    can any one suggest me the way to change the height and the width of a table dynamically in smart form.
    thanx
    Manish

    Hello,
    That is not possible. You cannot alter the height and width of the smartform. Mainwindows height adjust automatically according to the data.
    Thanks,
    Jayant

  • How to Set the Paper Size in Smart Forms

    Hi Friends,
                     I need to SET the Paper Size to default A4 in a smart form...and in some other case we need to set to other type 8.5 X 11...How can i set it....?

    Moving this discussion to the Scanning & OCR forum.

  • Unable to see the next pages in smart form

    in my smart form i designed 3 pages...
    in the first page i don't want data in main window...but i gave the main window dimensions as in 2nd and 3rd page(same height and width)...
    in 2nd and 3rd page i want to display the data in main window...
    but when i am trying to see the output i am able to see only the first page ...
    Please suggest me the suitable solution..
    Thanks in advance

    Hi,
    You've originally said.
    in the first page i don't want data in main window...
    yet using a command node to trigger the next page means you have to include a (presumably) empty main window in the first page.
    Your main window has to contain some output (a table usually) and it's contents are the same on every page (only it's height can change).  So, you can't have a blank main window on page 1 and a main window with data on pages 2 and 3.
    Remove the main window from page 1, set page2 as the next page for page 1.
    As for how to trigger page 3 you'll need to provide more detail on what the condition is.  Do you want multiple copies of page 2 to hold all of the main window data, or just one?  Do you want one copy of page 2 then the rest of the data on multiple copies of page 3.  Be specific.
    Regards,
    Nick

  • Need to draw line after the 2nd line item(Smart Forms)

    Dear Friends,
    I need to draw horizontal line after the 2nd line item  and 3rd line item in smart forms.How can i achive this.
    Plz help.
    Edited by: farook shaik on May 19, 2009 8:19 AM

    This is what you need to do:
    1> In the tables->details section define two line types LT1 and LT2.
    2> Come back to tables section pressing the table painter button.
    3> Select a line type for which you want to have an underline(say LT2).
         a] If the anchor cursor does not come click the draw lines and columns button( the pencil icon nutton)
         b] select the line type ( it will become black after selection. Press and hold down ctrl to select
             multiple cells.
         c] after selection click the lower 'frame button' ( which is right at the top of box and shading).
    4> Now goto data section where you have given your internal table name and work area.
         a] in the sort criteria put your field POSNR and check the Event on Sort end chk box.
         b] you will see an extra node under the main area of the table.
         c] Create a table line with the line type LT2 in the node.
         d]Also in the Main area add another table line with LT1 as the line type.
    5> If POSNR remains unchnged LT1 will be triggered.
    6> if Posnr changes then LT2 will be triggered with the underline.
    This will suffice your requirement.

  • Reagrding modification in the select statement of smart form

    hi,
    i have been assigned to make modifications in smart form and now if i want to add field in the existing slect statement it gives error . when i check smart form there is no structure but dere in types declaration
    d internal table is passed as a table itself in the form interface and also defined the variables in the global definations . but problem is how reterive data from dese variables in to smart forms which i want add right now as i am new to the smart forms.
    Edited by: ric .s on Mar 12, 2008 10:16 AM

    hi,
    i had checked the internal table which is passsed in the program whihc conatins statement :-
    data : ivbkd like vbkd occurs 0 with header line.
    data : ikna1 like kna1 occurs 0 with header line.
    and also passed in the form in d program as it is .
    den what s the problem coming after doing all these steps .
    plzz help me out as help will be deinfately rewarded.

  • How to create the Paragraph styles in Smart Forms

    Dear Techie's,
    Please let me know, How to create the own Paragraph styles in Smart Forms i.e to make the line or a particular font in BOLD.
    Please put the light ASAP.
    Regards,
    Maddu.

    hi
    good
    You can create additional fonts and style with transaction SMARTSTYLES
    This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form. 
    The character formats includes effects such as superscript, subscript, barcode and font attributes.
    thanks
    mrutyun^

  • The body in SAP Smart Forms email message

    Hi Experts,
    i have a requirement, in smart forms, we did the form to be sent to the email as pdf. we want to add some text in the body of the emil message. can we do this?

    the following is the code for send the mail with both subject and body .plz go thru. hope it will be helpful.
    Creating the document to be sent with success message.
      IF gt_error IS INITIAL.
        gs_doc_chng-obj_name = 'Standard Price'(010).
    gs_doc_chng-obj_descr = 'Material Standard Price update Successful'(011)
    gs_objtxt = 'Materials updated Sucessfully with new Standard Price'(012)
        APPEND gs_objtxt TO gt_objtxt.
        LOOP AT gt_success INTO gs_success.
          gs_objtxt = gs_success.
          APPEND gs_objtxt TO gt_objtxt.
        ENDLOOP.
      ELSE.
    Creating the document to be sent with error message.
        gs_doc_chng-obj_name = 'Error Price'(002).
    gs_doc_chng-obj_descr = 'Material Standard Price Updation Errors'(003)
        gs_objtxt = 'The following Material Numbers failed to update'(004).
        APPEND gs_objtxt TO gt_objtxt.
        LOOP AT gt_error INTO gs_error.
          gs_objtxt = gs_error.
          APPEND gs_objtxt TO gt_objtxt.
        ENDLOOP.
        IF gt_success IS NOT INITIAL.
    gs_objtxt = 'Materials updated Sucessfully with New Standard Price'(012)
          APPEND gs_objtxt TO gt_objtxt.
          LOOP AT gt_success INTO gs_success.
            gs_objtxt = gs_success.
            APPEND gs_objtxt TO gt_objtxt.
          ENDLOOP.
        ENDIF.
      ENDIF.
      DESCRIBE TABLE gt_objtxt LINES gv_tab_lines.
      READ TABLE gt_objtxt INTO gs_objtxt INDEX gv_tab_lines.
    gs_doc_chng-doc_size = ( gv_tab_lines - 1 ) * 255 + STRLEN( gs_objtxt )
    Creating the entry for the compressed document
      CLEAR gs_objpack-transf_bin.
      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   = 'RAW'.
      APPEND gs_objpack TO gt_objpack.
    Entering names in the distribution list
      IF p_plist IS NOT INITIAL.
        gs_reclist-receiver = p_plist.
        gs_reclist-rec_type = gc_c.
        APPEND gs_reclist TO gt_reclist.
        CLEAR gs_reclist.
      ENDIF.
    Populating the reciever list
      gs_reclist-receiver = p_plist.
      gs_reclist-rec_type = gc_u.
      APPEND gs_reclist TO gt_reclist.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gs_doc_chng
          put_in_outbox              = gc_x
          commit_work                = gc_x
        TABLES
          packing_list               = gt_objpack
          object_header              = gt_objhead
          contents_bin               = gt_objbin
          contents_txt               = gt_objtxt
          receivers                  = gt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      CASE sy-subrc.
        WHEN 0.
          WRITE: 'eMail sent successfully'(005).
        WHEN OTHERS.
          WRITE: / 'eMail could not be sent'(008).
      ENDCASE.
    ENDFORM.                    " send_log_mail

Maybe you are looking for