Long time for generating spool request for smartforms

Hi,
I'm have designed a  smartforms for printing a Receipt form. It takes about 1 minute for generating spool request after pressing the PRINT button in PRODUCTION Server only.
The Code i used is below
CALL FUNCTION lv_fname
  EXPORTING
      p_belnr                    = p_belnr
      p_bukrs                    = p_bukrs
      p_gjahr                    = p_gjahr
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.
  Please help me out to sort this issue.
Thanks,
Ramesh
Edited by: Rameshkumar Raamasamy on Mar 4, 2012 6:21 AM

Hi Rameshkumar,
you may look at the code sections of your smartform: If you have a lot more data in production than you have in development, it is especially important to use a fully specified primary key for any SELECTs.
You may also ask your basis people to check if any performance warnings have been recorded with database system. This happens quite frequently that growing database tables cause problems when table spaces are not properly assigned or table sizes are not maintained adequately.
Regards
Clemens

Similar Messages

  • Is there any FM to generate spool request for error log of a background job

    Hi,
        I am going to create a program to create deliveries and do PGI. This program will be assigned to periodic background job.Now whatever  errors are generated in program i have to send the error log to spool request.Is there any FM for generating spool request with this error log  or how can this be done? Kindly provide sample code if possible.
    Thanks.
    Nimish Dongare.

    Hi Nimish,
    How are you doing, This is Shreekant working as ABAP developer, I sow your post in sdn forum, I have a similar requirement like I am changing the delivery taking some data from a flat file which is coming from other system and do PGI. If any error occurs during this process I need to capture it and present it as a report or create log file.. whichever is easier.
    Please can u help me how did u achieved this functionality for your requirement?.. pls. can u share some details.
    If u don mind, can u give me ur email id to communicate.
    Thanks,
    Shreekant

  • How To Generate Spool request for a SAP-Script form

    How To Generate Spool request for a SAP-Script form

    Hai   Rahaman,
    After getting the print preview of the SCRIPT.
    Click On  PRINT.
    Buttom of the page one spool request will be generated by system.
    Go to  SP01.
    You Can Find  SPOOL Reqest Number.
    Regards.
    Eshwar.

  • Submit for a spool request

    Hi friends,
      i have three programs Y, Y1& Y2.
         in 'Y' program i have a submit statement
                SUBMIT 'Y1' TO SAP-SPOOL
                  AND RETURN
                  WITH SELECTION-TABLE SELTAB
                  IMMEDIATELY ' '
                  SAP COVER PAGE ' '
                  COVER TEXT 'xxxx - Auto Payment Summary'.
        in 'Y1' program i have a submit statement
              SUBMIT 'Y2' TO SAP-SPOOL
                    AND RETURN
                    WITH SELECTION-TABLE SELTAB
                    IMMEDIATELY ' '
                    SAP COVER PAGE ' '
                    COVER TEXT 'YYYY - Auto Payment Checksum'
    SUBMIT (PAYPROG) WITH SELECTION-TABLE SELTAB
           WITH PAYDET = PAYDET
           EXPORTING LIST TO MEMORY
           AND RETURN.
    SUBMIT (WTXPROG) WITH SELECTION-TABLE SELTAB
          EXPORTING LIST TO MEMORY
          AND RETURN.
    if i need to skip the first spool request and the file should not be generatedfor first spool is it possible, how please reply soon.
    advance thanks to all.

    Just refer:
    HOw to generate spool request for alv report

  • Application Diagnostics takes long long time to generate output report

    Hello All
    Please give me suggestion how can I improve performance of Application Diagnostics. It takes long long time to generate output report for a single transaction, i.e. Invoice.
    Thanks
    Makshud

    Do you have the statistics collected up to date?
    Please make sure you have applied the latest patch as per these docs.
    E-Business Suite Diagnostics Installation Guide [ID 167000.1]
    E-Business Suite Diagnostic Tools FAQ and Troubleshooting Guide for Release 11i and R12 [ID 235307.1]
    If you still have any performance issues when running the tool, I would suggest you log a SR.
    Thanks,
    Hussein

  • REQUIRE One spool request for n copies in one print command in smartform

    Hii Friends,
              I created a smartform..I require 5 copies of that form..There is a text which needs to be changed in evry copies...eg Original in first copy
                            Duplicate in second copy
                            Triplicate in third copy....n so on
    So i used a loop n i am calling smartform 5 times....The problem is i need one spool request to be created..
    Note: By default sometimes it create one spool request and sometimes 3 spool request...
    Pls share your inputs ............
    Thanks,
    Regards,
    Sujit.

    hi,
    this is more complicated see below description from help
    regards,darek
    Printing Several Forms in One Print Request
    Use
    You want to bundle several forms into one print job.
    Print Request vs. Spool Request
    SAP Smart Forms allows you to bundle several forms to form one output unit. This output unit is called a print request. A print request is different from a spool request:
    Whether a new spool job is created in the spool depends on the settings in the spool dialog.
    Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
    This means that a print request gathers several forms before submitting them to spool processing. Thus they cannot be spread over several spool requests. Vice versa however, you can include several print requests into one spool request.
    Procedure
    Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
    Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
    Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
    If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
    For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
    To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
    Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
    Result
    The forms you called in the steps described above are included into one print request. If in the first step you started a new spool request, you can now view its status in the spool request overview (transaction SP01 ).

  • SPOOL REQUEST FOR SMARTFORM

    HI experts,
    how to create the spool request for smartform. can anyone help me. give me the complete procedure.
    thanks in advance for ur responce.

    The user which send the smartform to the spool (probably wf-batch) needs an output device. You can maintain this in SU01.
    Just look at sample code:
    1.Send Smart Form output to spool using the FM <ws_formname> (FM name derived from the export parameters of SSF_FUNCTION_MODULE_NAME).
    //Start of Code Sample
    DATA : ws_formname TYPE rs38l_fnam.
    TYPES: BEGIN OF ty_script,
    trans_ref LIKE eanl-anlage,
    cont_ref TYPE e_edmideservprovcontractid,
    trans_code TYPE char05,
    trans_reason TYPE char05,
    market_sect LIKE eanl-zzmktscode,
    efffrm_date LIKE sy-datum,
    mprn LIKE iflot-zzmprn,
    mlc TYPE char01,
    subbuild_no(40) TYPE c,
    build_no LIKE adrc-str_suppl1,
    dep_fare LIKE adrc-str_suppl3,
    post_town LIKE adrc-city1,
    post_code LIKE adrc-post_code1,
    asset_code LIKE egerh-kombinat,
    paymnt_code(2) TYPE c,
    model_code LIKE equi-typbz,
    manuf_code LIKE equi-herst,
    year_manuf LIKE equi-baujj,
    serial_no LIKE equi-sernr,
    meter_code TYPE char01,
    meter_mech(2) TYPE c,
    meas_cap TYPE zmeasur_cap,
    role_code TYPE char03,
    market_name LIKE eservice-serviceid,
    status TYPE char01,
    END OF ty_script.
    DATA: i_scriptdata TYPE STANDARD TABLE OF ty_script
    WITH HEADER LINE.
    DATA: wa_output_options TYPE ssfcompop,
    wa_control_params TYPE ssfctrlop,
    wa_spoolnum TYPE rspoid,
    wa_printdata TYPE efg_strn_printdata.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'Your Form Name'
    IMPORTING
    fm_name = ws_formname
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    CALL FUNCTION ws_formname
    EXPORTING
    control_parameters = wa_control_params
    c = wa_printdata
    IMPORTING
    job_output_info = wa_job_output_info
    TABLES
    i_scriptdata_input = i_scriptdata(Your Script Data)
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    MOVE wa_job_output_info-spoolids] TO wa_spoolids[.
    READ TABLE wa_spoolids INTO wa_spoolnum INDEX 1.
    IF sy-subrc = 0.
    DATA :id LIKE tsp01-rqident.
    MOVE wa_spoolnum TO id.
    ENDIF. .
    Comments-Id Contains the Spool Request for the given smart form
    //End of Code Sample
    Convert Smart Form Output to Raw
    Format
    2.Convert the Spool Output to OTF using the FM RSPO_RETURN_SPOOLJOB.
    //Start of Code Sample
    data i_soli LIKE soli occurs 0 with header line.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
    rqident = id
    desired_type = 'OTF'
    TABLES
    buffer = i_soli
    EXCEPTIONS
    no_such_job = 1
    job_contains_no_data = 2
    selection_empty = 3
    no_permission = 4
    can_not_access = 5
    read_error = 6
    type_no_match = 7
    OTHERS = 8.
    Comments- i_soli contains the OTF data
    //End of Code Sample
    3.Convert the OTF using FM
    SX_OBJECT_CONVERT_OTF_RAW.
    DATA content_bin TYPE solix_tab.
    DATA objhead TYPE soli_tab.
    DATA i_soli_tab TYPE soli_tab.
    DATA boolean TYPE sx_boolean.
    DATA length TYPE so_obj_len.
    LOOP AT i_soli.
    APPEND i_soli TO i_soli_tab[].
    ENDLOOP.
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_RAW'
    EXPORTING
    format_src = 'OTF'
    format_dst = 'RAW'
    CHANGING
    transfer_bin = boolean
    content_txt = i_soli_tab
    content_bin = content_bin
    objhead = objhead
    len = length
    Convert Smart Form Output to Raw
    Format
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    REward points if useful.

  • RFFOEDI1 how to generate a single spool request for payment advices

    Hello,
    We are using RFFOEDI1 to create payment idocs to send to the bank and also create payment advices.  We have multiple payment methods that we using during a single payment run.  When we run F110, the system creates the payment advices as a separate spool request for each payment method in the payment run.  The users would like to see all the payment advices in a single spool request, regardless of the payment method.  Does anyone know if SAP is capable of this?
    Thanks,
    Mark

    We are on ECC 6.0, patch level 14.
    Thanks,
    Mark

  • SSF_OPEN generating spool only for LOCL Device

    Hello all,
    I am using SSF_OPEN and SSF_CLOSE function module and in between i am calling two function modules.
    I have to generate a spool request for the smartform output (No preview) with the output device mentioned through selection-parameter.
    The problem i am getting is , the spool is always generating for device 'LOCL' , no matter what device i give in the selction parameter.
    Please help me solve this issue.
    Here is the code snippet i have used:
      lw_control-no_open   = 'X'.
      lw_control-no_close  = 'X'.
        lw_control-no_dialog = 'X'.
        lw_option-tdnewid   = 'X'.
        lw_option-tdimmed   = 'X'.
        lw_option-tddest    = p_ldest.
        lw_option-tddelete  = space.            "Delete After Printing
    *Opens an internal session of smartform,
    * call all smartforms in this sessions
      CALL FUNCTION 'SSF_OPEN'
        EXPORTING
          control_parameters = lw_control
          output_options     = lw_option
        IMPORTING
          job_output_options = lw_job_output
        EXCEPTIONS
          exceptions
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    What are the parameters to be passed to the  smartform? is it sufficient if passed control parameters here only on SSF_OPEN Fm ?
    Regards,
    Giri

    Kindly use in this way to generate spool as per your required output device
    data : tspoolid1 type ssfcrespd,
            tspoolid2 type ssfcrescl,
            tspoolid3 type ssfcresop,
            spool type ssfcrescl-spoolids,
            control_parameters type ssfctrlop,
            output_options     type ssfcompop.
      output_options-tdnoprev = 'X'.
       output_options-tdnewid = 'X'.
       output_options-tdimmed = 'X'.
       output_options-tddelete = 'X'.
       control_parameters-no_dialog = 'X'.
        output_options-tddest = 'LP02'.
    call function fm_name
         exporting
           control_parameters   = control_parameters
           output_options       = output_options
           user_settings        = ''
           goodsmvt_header      = goodsmvt_header
           poheader             = poheader
           ch1                  = ch1
           head                 = ch2
         importing
           document_output_info = tspoolid1
           job_output_info      = tspoolid2
           job_output_options   = tspoolid3
      *   tables
    *   EXCEPTIONS
    *     FORMATTING_ERROR           = 1
    *     INTERNAL_ERROR             = 2
    *     SEND_ERROR                 = 3
    *     USER_CANCELED              = 4
    *     OTHERS                     = 5.
    if tspoolid2-spoolids is not initial.
    * To hold the value of tab index
         spool = tspoolid2-spoolids.
         read table spool into wa_spool index 1.
         concatenate 'GRN_NOTE_' v_mblnr into v_npdf.
    **  v_npdf = v_mblnr.
         submit rstxpdft4 using selection-screen '1000'
                          with spoolno eq wa_spool
                          with p_file  eq v_npdf
                          and return.
       endif.
    Many Thanks / HImanshu Gupta

  • Handle not valid for open spool request

    Hello everyone,
    i am facing an error while clicking the print preview option in change PO (me22n).
    i have given the dispatch time in further data of o/p as 'Send with application own transaction'.
    now, when i save and click print preview button i get an error as
    "Handle not valid for open spool request"
    Kindly give me some idea how to tackle this.
    Thanks
    gaurav

    Gaurav,
    I am having a similar issue and would appreciate if you could let us know how your problem was solved?
    What control parameters did you change to make this work?
    Thanks,
    Jay

  • How to print Spool requests for cheque printing sequentially

    Dear All,
    I am making vendor payments and printing cheques using F-58. It automatically creates a spool requests at the end of the transaction. When i complete all my payments and go to SP01 for viewing spool requests, the last request appears at the top of the list.
    If i select 3 consecutive requests and print them at a time, the last request gets printed first on the first cheque number and the first request gets printed on the last cheque number.
    This results in anomaly in the cheque number assigned in the system and the printed cheque as the last payment is printed on the first cheque.
    I am using dot matrix printer with  page format fixed for cheque specifications. The cheques are printed properly as per the format except the order of printing.
    Kindly let me know how to print multiple requests sequentially from the spool requests list such that the spool request number printed matches with the serial cheque numbers.
    Regards,
    SAP_2009

    Hi,
    I understod your issue.
    Whenever you posted multiple payment documents, and after that if you want to take cheque printouts sequentially by using more spool requests.........there is a way to sort out this issue.
    1) Select all of your spool requests and click on Sort in ascending Order (CtrlShiftF5) and click on Print directly (CtrlShiftF8). By doing this you will get the cheque printouts sequentially according to your payment document sequence.
    Hope this will help you
    Assign ********, if it solved your problem.
    Thanks,
    Srinu

  • New Spool Request for each purchase order

    Hi all,
    Whenever i create Purchase Order, spool is generated. But when i create one more purcahse Order new spool is not getting generated.
    It is goind inside the same pool.
    I want the spool number, so i can generate the pdf for the PO form and send it through mail through workflow.
    Kindly adivce me how to generate new spool evertime when new PO is created.
    Regards,
    Rahul.

    Hi,
    Generated Spool request number is in table TSP01.
    Retrieve that number and pass to function module CONVERT_ABAPSPOOLJOB_2_PDF to generate PDF.
    SO_DOCUMENT_SEND_API1
    This function module enables you send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.
    Regards,
    Supriya.

  • Differnet spool request for different costomers

    Hi folks,
    I am using f.27 to create a monthly customer statement. But i need differnet spool request for different costomers. so that i can mail the reports for costomers differently. now single spool request is generating.
    regards
    Vijay

    Hi,
    thanks for  reply. Yup we can do that if there are many costumers. then it will be a hectic job to retrieve for all of them and sending mail. so is ther any possible way to generate spool in a breakup way..
    please try...
    Regards
    Viajy

  • Creating single spool request for printing all shop floor papers

    Hello PP Gurus,
    We are printing shop floor papers at the time of releasing production order using txn CO02. It creates individual spool request for printing different shop floor papers in the same orders . eg Pick list, goods receipt list etc.
    Is it possible to do the cofiguration setting to create only one spool request for all the different SF papers belong to same order.? If yes, please let me know the steps for customising this.
    Thanks for your help in advance.
    Regards & Thanks
    Rajesh D.

    In transaction OPK8, in forms uncheck the 'New List' check box for the List.
    Regards
    Ramanujan

  • FM to release the spool  request for printing

    I have requirement one of my program generate the spool request.
    now i need to schedule the print job in background.
    can any one help in specifing the Funtion modulde that can be used to releasing the spool request for printing

    Hi ,
    Please can one specify what are the parameters to be populated to make it run in the back ground
    right know i'm populating these fields.
    In SP01 it showing status as "Frontend Unavaliable".
    if i schedule the program in back ground.
    CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
      EXPORTING
       COPIES                         = 1
       DEVICE                         = 'LOCL'
      DIVISION                       = '*'
       ENDPAGE                        = 0
       PRIO                           = 1
      RECEIVER                       = '*'
      REQEST_TITLE                   = '*'
        spool_request_id               = '9817'
      STARTPAGE                      = 0
      TELELAN                        = '*'
      TELENUM                        = '*'
      POSNAME                        =
      ACTTIME                        =
    TABLES
      ATTRIBUTES                     =
    EXCEPTIONS
       ARCHIVE_DEST_INVALID           = 1
       ARCHIVE_DEST_NOT_FOUND         = 2
       ARCHIVE_DEST_NO_RIGHT          = 3
       CANNOT_ARCHIVE                 = 4
       CHANGE_ARCHDEST_NO_RIGHT       = 5
       CHANGE_COPIES_NO_RIGHT         = 6
       CHANGE_DEST_NO_RIGHT           = 7
       CHANGE_DEVTYPE_NO_RIGHT        = 8
       CHANGE_PRIO_NO_RIGHT           = 9
       CHANGE_TELENUM_NO_RIGHT        = 10
       CHANGE_TITLE_NO_RIGHT          = 11
       DEST_INVALID                   = 12
       DEST_NOT_FOUND                 = 13
       DEST_NO_RIGHT                  = 14
       INTERNAL_PROBLEM               = 15
       INVALID_FAX_ATTRIBUTE          = 16
       INVALID_PARAMETERS             = 17
       NON_OWNER_NO_RIGHT             = 18
       NO_LAYOUT                      = 19
       NO_SPOOL_REQUEST               = 20
       OUT_AGAIN_NO_RIGHT             = 21
       SPOOLER_PROBLEM                = 22
       OTHERS                         = 23

Maybe you are looking for

  • How do I move all of the control points at the same time at the Path Text preset?

    I'm doing motion typography, I used the Bezier Shape Type, it has 4 control points, I saved the custom preset I made, but the problem is, is it possible to move them at the same time? I'm animating per letter to form a word. Additional Question: Is i

  • How to block negative cash balance ?

    Dear Experts, I want to block -ve balance to all of my cash accounts i.e. no credit balances to cash accounts. How can i achieve this? What i am thinking is about a stored procedure on outgoing payment and journal entry. Please help me out. Thanks in

  • Short dump in delta extract  using bgRFC in NW 2004s

    Short dump in delta extract after Support Pack install, using bgRFC.  InfoSet Query extractor from Z-table residing on BW system into ODS.  Init and Full loads load successfully, delta loads short dump. "MESSAGE_TYPE_X"         "SAPLARFC" or "LARFCU2

  • Anyone can help me to fix my exit problem?

    Anyone can help me please? The case 8 I don't know how to make it work. public class TestAnnualHireRevenue      public static void main(String[] args)           int opt,sale;           double first,second;           boolean exit = true;           dou

  • Where can I find an article on how to publish CI as Web Services in PT 8.46

    We have PeopleTools 8.46, and we want to integrate it to a customized application that we are building using ADF, we are considering the option the above option, of publishing the needed components interfaces to web services and consuming them from t