Print the smartform to the spool

Hi all,
How to Print the smartform to the spool  ?
Thanks in advance
Krupa

DATA: p_out LIKE ssfcompop,
p_ctrl LIKE ssfctrlop.
CLEAR: p_out,
p_ctrl.
p_out-tdnoprev = 'X'.
p_out-tdnoprint = 'X'.
p_out-tdnoarch = 'X'.
p_out-tddelete = 'X'.
p_out-tddest = p_dest.
p_out-tdnewid = ''.
p_out-tdimmed = ' '.
p_out-tdcopies = 1.
p_out-tddataset = sy-repid.
p_out-tddelete = ' '.
CALL FUNCTION fm_name
EXPORTING
inv_header = tmp_header
output_options = p_out
control_parameters = p_ctrl
user_settings = ' '
TABLES
t_item = tmp_item
The lines in bold are the main key statements for spool.
tdnewid is the name of the spool.
awrd points if useful
Bhupal

Similar Messages

  • Sending the smartform output to SPOOL

    Hi,
    How do I create a spool request with the smartform out put? I have passed the following parameters, but it still does not create a spool request.
    data:   W_CTRLOP TYPE SSFCTRLOP,
              W_COMPOP TYPE SSFCOMPOP.
                W_CTRLOP-LANGU = LS_CONTROL-LANGU.
                W_CTRLOP-GETOTF = 'X'.
                W_CTRLOP-NO_DIALOG = 'X'.
                W_COMPOP-TDNOPREV = 'X'.
                W_COMPOP-TDNOPRINT = 'X'.
                W_COMPOP-TDDATASET = 'VENEVA'.
                w_COMPOP-TDDEST = 'UK24'.
                W_COMPOP-TDNEWID = 'X'.
                W_COMPOP-XSFOUTMODE = 'S'.
    Thank you,
    Geetha

    hi Geetha,
    is there  any specifice reason to passin this <b>W_COMPOP-XSFOUTMODE = 'S'</b>
    pass these parameters only u will get the spool in <b>JOB_OUTPUT_INFO-SPOOLIDS</b>
    W_CTRLOP-LANGU = LS_CONTROL-LANGU.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    W_COMPOP-TDDATASET = 'VENEVA'.
    w_COMPOP-TDDEST = 'UK24'.
    W_COMPOP-TDNEWID = 'X'.
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • HI,Can the smartforms output the windows box as the type of dashed Line?

    My customer let me Print the windows box with the dashed line in smartforms, but i searched many method ,all failed,anybody know how to do it?

    hi,Bala Muthu Raja 
    thanks for your information.
    but i means i want to output the dashed line box for the windows as following......
    ^^^^windows^^^^
    ^^^^windows^^^^
    ^^^^windows^^^^
    ^^^^windows^^^^
    ^^^^windows^^^^
    adjusting the line width just make the box line become wild or thin.
    Message was edited by: shi jack
    Message was edited by: shi jack

  • Smartforms to the printer and the spool queue

    Dear Expert,
    I'd like the smartforms to print to the printer which i can decide on the selection screen, at the same time, the smartforms can generate spool id to the spoll queue.
    Thanks to the documents on the page
    http://www.sdn.sap.com/irj/sdn
    Now I can get the spool , but there is a infomation message "OTF end command // missing in OTF data"  .
    If there any method to hide this message? Is there any example to get the spool and also make the smartforms print on the printer which i can select on the screen ?
    Ross
    Edited by: ross.wang on Jan 6, 2011 4:07 AM

    just set the parameters and that's will be ok.
    the parameters as follows:
    G_WA_ST_CONTROL_PARAMETERS-NO_DIALOG ='X'          (SMARTFORM一般标识符)          
    G_WA_ST_CONTROL_PARAMETERS-LANGU = P_LANGU          (语言选择)          
    G_WA_ST_CONTROL_PARAMETERS-PREVIEW = ''          (无预览)          
    G_WA_ST_OUTPUT_OPTIONS-TDNEWID  = 'X'          (生成新SPOOLLIST号)          
    G_WA_ST_OUTPUT_OPTIONS-TDDEST   = G_V_DEVICE          (设置打印设备)     
    G_WA_ST_OUTPUT_OPTIONS-TDIMMED = 'X'          (立即打印)

  • Submit program to send a smartform to the spool and obtain a PDF

    Hi all,
    I wanna know if there is a way to submit (execute) a program that print a smartform for print this smartform to the spool and then obtain a PDF file from the spool order.
    I wanna do this because the program that allows to print the smartform is already implemented and its logic is complicated, and I need to get the smartform as a PDF to show it into a WDP Java application.
    If it's posible to do this, could you explain me how can I do it?
    Regards,
    Gregory.

    Hi,
    To get the PDF format output of smartform you can try with the following Function Module.Before that you have to declare the function module for calling the smartform.
    DATA:
      W_bin_filesize TYPE i,                            " Binary File Size
    Internal table to hold the OTF data*
    DATA:
    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    Internal table to hold OTF data record from the SMARTFORM
    t_otf_from_fm TYPE ssfcrescl,
    Internal table to hold the data from the FM CONVERT_OTF
    T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    Function Module CONVERT_OTF is used to convert the OTF format to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 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.
    Regards,
    Suvajit

  • Print program for the smartform for selecting the output type (email/fax)

    Hi All,
    Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
    can any body please let me know how  to put the condition for selecting the desired  output type ?
    Thanks in advance
    Rahul

    Hi
    It is not the output type that has to be changed
    it is the MEDIUM which you have to change and configure
    for printout medium is 1
    for FAX medium is 2
    for MAIL it is 7.
    so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
    Reward points for useful Answers
    Regards
    Anji

  • How can I receive data and print them in the smartform INTNOM2_N1?

    Hi experts!!
    I've to receive data from some tables and print them into the smarform INTNOM2_N1, for example I need to receive the data stext from the table hrp1000, but when I tried to do this, this doesn't work
    SELECT SINGLE STEXT FROM HRP1000 INTO WA_FORM_n1-STEXT
                          WHERE OBJID = P0001-PLANS AND
                          PLVAR       = '01' .
       because the data p0001-plans is empty how can I do this? I've tried with
    RP_PROVIDE_FROM_LAST P0001 SPACE VERSC-FPBEG VERSC-FPEND, but I think in smartforms we can't use RP_PROVIDE_FROM_LAST because I receive an error message,
    Does anybody know how can i do this?!
    Thanks a lot,
    Regards,
    Rebeca

    Hi
    Please write this code in the smartform and pass on this internal table to the smartform FM..
    Also, in the form interface of the smartform declare the table to which u want to pass these values.
    The above process will help u to pass values into the smartform from print program.
    Regards,
    Vishwa.

  • Text and table structure getting jumbled up in the smartform output

    Hi all ,
    While viewing the print preview of a smartform output , i am facing  a strange issue.
    The hardcoded text is getting jumbled up .For eg:"As soon as possible"  becomes " as possible . soon as"
    The structure of the table is also getting reversed.That is the table is now getting displayed with the last couloum first.The data in the table is also coming in the reverse order.
    While executing the smartform directly , the layout is coming in the proper order.But while executing this through a transaction (FINT) , this issue is coming up.The print program is a standard program.
    I have tried deleting the window , copying it to a new smartform etc.I have also tried in different systems to check whether if it is an issue with the system.
    If anyone has faced a similar issue , please let me know how to solve it.Thanks a lot in advance.
    Regards,
    Rashmi

    Hi
    Please check the Printout rather the print Preview. and also check the Structure/table entries also that u printing and also if u r using template, then check the assignment 1 of 1 , etc to the texts.
    surya

  • Secondary window to be printed on the last page the form

    Hello,
    Is there any way, by which we can show the defined secondary window on the last page of the form in smartform?
    Only 1 page is defined in the smartform for the layout.
    e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. then total (defined in the secondary window) of the line items must be displayed on the the last page of the form only in this case the last page is 2nd.
    Thanks and Regards,
    Paresh

    >
    paresh rane wrote:
    > e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. 
    > Paresh
    put a counter on which you are getting the line items.
    for the last page, the counter should be equal to the number of line items in the table .. right?
    so.. keep the number of records in another variable, lets say in the global initialization part.
    and for the secondary window condition tab
    keep
    counter = gv_number_of_lines
    only when this condition satisfies, the window will be triggered. and this condition will only be satisfied if all the items are covered => last page.

  • Error in the Smartforms 'ERROR CANNOT BE CLASSIFIED'

    Hi,
         While Executing the output type of ME23N (Custom Output type), I am Getting the Below Error,
         From Debugging i came to know that the error is from the Smartform,
         From the SFTRACE, I got the Following Log.
        00trace begin level 05
        00trace version 046C01
        00time stamp 20140424094323
        00locale date 24.04.2014
        00locale time 15:13:23
        00system information
        00  sap version 731
        00  operating system AIX
        00  database system DB6
        00  database name JEQ
        00  user name 90498
        05overflow of non main window
        05! E SSFCOMPOSER 150
        05trace output closed due to error
         From the above Log the I came to Know that the error is Not from the Main Window, So I have Checked all the Dimension of the the Windows, Every      thing is fine(With in the Page Limit).
         The error is Generating from this Code in the Smartform's FM.
         Please Suggest a solution.
         Thanks
         Kranthi.

    Dear all,
    Thanks for the Response, The Issue Is Solved.
    There is No Overlapping of Wndows, In my Smart Form there are 2 Pages & both Contains Main Window. They Have Designed in Such a way that "TERMS & CONDITIONS" Should Come in Second Page, Kept the Control Command in the Footer of the Table.
    If the Table Entries of the Main Window are Less(i.e., fits in the first page) then it is working fine.
    So if the the Records are more and exceeds to the second page then the control commands also fires to the next page (Second page), Hence the error is rised.

  • Call RFC INSIDE THE SMARTFORM

    Hi Experts,
    i want to know , is it possible to call the RFC in side the smartform. In my requirement, i need some data from ECC system to display in the smartform of the CRM.
    currently i am trying to call outside the smartform and pass to the same, but smartform is triggered from actions and due to other constrints i am not able to to do so..
    hence kindly suggest me the other options  or is it possible to fetch the data from the ECC to CRM usinfg the RFC inside the smartform.
    Thanks in advance
    Pradeep

    Hi,
      I hope yes you can write the RFC fm code inside the layout of the smartforms, but the problem is if RFC could not able to fetch the data from R/3 some times, or if it could not able to find the right records then it will return with error / blank records. To avoid all this kind of problems its better to write the same code in your driver program. In case if you dont get the data from R/3 then you can control the layout set from triggering.
    Regards,
    Satya

  • How to display smartform in the payslip application of ESS

    Hi experts,
                        We developed a smartform for payslip .We want to use the smartform in the payslip application of ESS.Can anybody tell me how to do  this?
    Thanx in advance,
    Rajesh

    Hi,
    Under the salary statement node , theres a subnode of Provide salary statemnt as PDF file in Interent- Click there and select "Call SAP Smart Forms" - Here you set the smart form u created.
    Likewise, make sure all the corresponding nodes are properly set .
    Regards,
    NR

  • How to debug the smartform

    Hi,
    I want to debug the smartform, the form is not configured in nace.  still i want to test the form.
    How can we test it. please help me.
    thanks,
    Ravi

    hi,
    give me the function module name of the smartform in se37 & execute.
    but remember, you have to pass all the values manually here in the tables.
    to know the function module name of the smartform,
    Inside the smartform go thru this menu
    ENVIRONMENT->FUNCTION MODULE NAME.
    regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • Download the smartform in 4.6C  version

    Hi All,
    I want to download the smartform from the quality system to development system but I am not able to do it. I am working on 4.6C version and there is no option to download. Download option is in 4.7 version. Could aanybody help me out.
    Thanks,
    Rakesh

    You can't in 4.6c

  • Need the SMARTFORM name for Purchase Order in ECC 6.0

    Hi experts,
              I have been working on ECC 6.0 version and I need your help in finding out the name of the SMARTFORM for Purchase Order. Please let me know the SmartForm name if anybody knows. Waiting for your replies.
    Regards,
    Ravi

    HI,
    We have the Smartforms in the Service.sap.com, you need to download from this one. in our SAP we do not have these smartforms .
    smartform name is /smb40/mmpo_l. Look at the SAP Note 695891
    Look at the below link
    Re: PURCHASE ORDER SMARTFORM   IN ECC 6.0
    <i>Mark all the helpful answers</i>
    Regards
    Sudheer

Maybe you are looking for