Delete Spool in Smartform

Hi Gurus
I am using RSPO_R_RDELETE_SPOOLREQ to delete the spool after converting the spool from pdf and to email.
I am having a dump at
CALL 'RSPOARNS' ID 'ID' FIELD spoolid
                  ID 'FORCE' FIELD 'X'
                  ID 'RC'  FIELD rc.
code of the FM. It say POSTING_ILLEGAL_STATEMENT, I have authorizations to delete the spool but, I am not finding a solution to delete the spool.
Do we have any other option to delete the spool?
Thanks
J@Y..

Yes char10
DATA: delete_id TYPE tsp01_sp0r-rqid_char.
          CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
            EXPORTING
              spoolid = delete_id.
I am getting the spool id from Smartform Interface job_output_info-spoolids[]
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'  for OTF
  CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'  OTF to PDF
after sending the email
          CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
Edited by: J@Y on Oct 13, 2009 10:16 AM

Similar Messages

  • Creating Spool from Smartform??

    Hi
    Can anybody tell how to get the spool from smartform?
    Thanks in Advance
    Davinder Singh

    Hi Davinder,
    After the execution of smartform function module the import parameter JOB_OUTPUT_INFO is populated with data. This is of type SSFCRESCL.
    The component SPOOLIDS of JOB_OUTPUT_INFO contains list of spool id generated for smartform..
    This spool id can be used to read spool request generated using any standard func module like RSPO_RETURN_ABAP_SPOOLJOB.
    Hope this helps you....
    Enjoy SAP.
    Pankaj Singh.

  • How to delete spool number if is status is waiting?

    Seek helps. I use FUNCTION RSPO_R_RDELETE_SPOOLREQ to delete spool number. It works if this spool number's status is finished. But if its status is waiting, I find that the spool number is not deleted. Who can tell me how to delete such a spool number even though its status is waiting?
    Thanks a lot.
    Jack

    Hi Jack,
    TSP0E-RQIDENT is a spool number that you want to delete.
    Please ensure you have authorization/permission to delete.
    Regards,
    Ferry Lianto

  • SAP MTE Auto-Reaction to delete spool from satellite

    Hi,
    Please could anyone HELP me in setting up the SAP MTE Auto-Reaction to delete spool from satellite system with the threshold in CCMS reaches 80% using a event triggered background Job.
    Regards,
    Pramod

    Hi,
    Hav you ppl try to create your own Auto reaction method with te report RSPO0041, i guess we can proceed like this.
    and check this too [http://help.sap.com/saphelp_nw04/helpdata/en/27/cbdf3b8dc95136e10000000a114084/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/27/cbdf3b8dc95136e10000000a114084/frameset.htm]
    Thanks,
    Jansi

  • Delete Spools created by one background job

    Hi ,
    I have a background job which runs every now and then and it creates spools. My requirement is to delete all spools created by this one job only in regular intervals via another program.
    Regards,
    Arun.

    Hi J@Y,
    the spools that my background job is creating should stay in the system for a while for users to go and see it. After a specific interval, say every 30 minutes, i want all the spools created by that one job till that time to be deleted
    regards,
    Arun.

  • How to print multiple pages in single spool in smartforms

    Hi all,
      I have a issue on to print multiple pages in single spool,i can able to print multiple pages in multiple spool .I am doing Check Print smartforms in that i need to print Multiple pages in single spool.Currently i am using the below code please help to solve this issue.
    IF gv_tabix = 1.
    lwa_outp_option-tdnewid = 'X'.
    ELSE.
    lwa_outp_option-tdnewid = ' '.
    ENDIF.
    Thanks,
    Deesanth

    Hi
    TABLES: spfli.
    DATA:
      t_spfli type STANDARD TABLE OF spfli.
    DATA:
      fs_spfli TYPE spfli.
    DATA:
      w_form TYPE tdsfname,
      w_flag TYPE i,
      f_nam TYPE rs38l_fnam,
      w_input TYPE ssfcompin,
      w_control TYPE ssfctrlop.
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
    SELECT-OPTIONS s_carrid FOR spfli-carrid.
    SELECTION-SCREEN END OF BLOCK blk .
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
      p_single RADIOBUTTON GROUP rad1,
      p_ind RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
    PERFORM display_data.
    PERFORM ssf_function_module_name.
    PERFORM spool_request.
    *& Form display_data
    * text
    * --> p1 text
    * <-- p2 text
    FORM display_data .
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid IN s_carrid.
    ENDFORM. " display_data
    *& Form ssf_function_module_name
    * text
    * --> p1 text
    * <-- p2 text
    FORM ssf_function_module_name .
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING formname = ' '
    IMPORTING fm_name = f_nam
    EXCEPTIONS no_form = 1
    no_function_module = 2.
    * IF sy-subrc NE 0.
    * MESSAGE 'Form cannot be displayed' TYPE 'E' .
    * ENDIF. " IF sy-subrc eq 0
    ENDFORM. " ssf_function_module_name
    *& Form spool_request
    * text
    * --> p1 text
    * <-- p2 text
    FORM spool_request .
    w_input-dialog = 'X'.
    CALL FUNCTION 'SSFCOMP_OPEN'
    EXPORTING input = w_input
    EXCEPTIONS error = 1.
    *" LOOP AT t_spfli .....................................................
    LOOP AT t_spfli INTO fs_spfli.
    w_control-no_open = ' '.
    w_control-no_close = ' '.
    *"Single spool request..................................................
    IF p_single EQ 'X'.
    w_control-no_open = 'X'.
    w_control-no_close = 'X'.
    ELSE.
    *"Individual spool request.............................................
    IF w_flag NE '1'.
    w_control-no_open = 'X'.
    w_control-no_close = ' '.
    w_flag = 1.
    CALL FUNCTION ' '
    EXPORTING control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    endif. " IF w_flag ne '1'
    ENDIF. " IF p_single eq 'X'.
    CALL FUNCTION ' '
    EXPORTING
    control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    ENDLOOP. " LOOP at t_spfli into ...
    *&This function module close the spool request *
    CALL FUNCTION 'SSFCOMP_CLOSE'
    EXCEPTIONS error = 1.
    ENDFORM. " spool_request
    Regards,
    Sravanthi

  • SPOOL FOR SMARTFORMS

    Hi all,
      I m getting 2 spool requests for a smartform instead of 1. I hav developed my smartform in user exit of Standard program.In spool it is generating one for my smartform and another for std one.
    Please let me know what should i do so that only single spool comes.
    Regards
    Taranam

    The standard program issues a Smartform too?
    Try to force the non-generation for the spool order that you don't want.
    I supouse that you don't want the spool order generating by the std program. So, if this spool order comes after yours, try to force the parameters for the std funcion call...
    SSFCTRLOP-NO_OPEN = 'X'
    SSFCTRLOP-NO_CLOSE
    SSFCOMPOP-TDNEWID = ' '
    Hope this will help you.
    Regards,
    Andrés Sarcevic.

  • Retrieving Deleted Spool Request

    Hi,
    We are running R/3 45B on the iseries and we had the same problem from Note 1422843 - Wrong deletion date in spool request
    I ran the report RSPO2010 to change the deletion date in R/3 PRD excluding 9 users to keep their year end reports.
    I then ran RSPO0041.  I thought I read the note 1422843 correctly but I ended up deleting every spool request up the date 1/7/2010.  Ran with the variant delete all request with min age 8 days.
    Is there anyway of getting the spool request back that were deleted? 
    Is there a table with a deleting flag that I can just uncheck? 
    I do have a backup -  Are there just a couple of tables I can restore to my Q&A system - Can't do full DBcopy at this time.
    Regards,
    Brian

    Hi Brian,
    tja, the stuff is unfortunately deleted now ...
    There is no mark to unmark or similar.
    The most stuff of a spoolfile is in TST1 - but there should be a few more tables - I didn't investigate this by now -.in my mind, it is a solvable issue with the restore of "let's say 5 tables" to QAS ...
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.net - http://www.4soi.de - http://www.easymarketplace.de

  • Deleting spool requests automatically

    Hi
    We are on R/3 4.7 Enterprise Extn Set 110. I would like to ensure that spool jobs which have printed successfully be deleted automatically. I need some help in getting this done.
    There are some places where I could configure this however I was not sure which would work.
    SU01 / Defaults  / Spool Control / Delete After Output
    SPAD / Admin / Settings / Admin / Automatically delete old spool requests. This has a time limit whic I can set. For instance All .... h
    SP01 / Spool Requests / Select Spool Request / Request Attributes / Spool Attributes / Delete After printing after no errors.
    To me the third one (from SP01) seems just right. But SP01 would show up requests which only belong to me. I would like to ensure that this works for every spool request for every user. How do I go about this? Does this have to be done in IMG? if so how?
    thanks
    ravi

    You need read the Note 16083 - Standard jobs, reorganization jobs
    the SAP_REORG_SPOOL job, also read
    Note 130978 - RSPO1041 - Replacement for RSPO0041
    About :
    But SP01 would show up requests which only belong to me
    dear cleare your user name in Created By and after execute, you will see all in past day , or selected period (it works in ECC, i do not know how it works in 4.7, but i'm think it's are same).
    Regards.

  • Restoring an Deleted Spool Request.

    Hi
    Is there any way that we can restore a spool request which is deleted from System.
    Thanks
    Sivaram

    Once is deleted is gone to the heaven of the spool requests....
    You can always do a full restore if the spool existed by the time of the last backup.... but is it worthy???
    Also, have you chequed if you can recreate the request?
    Regards
    Juan

  • Spool Requst smartforms

    Hi all,
    I want to suppress the dialog box in smrtform i.e.printpreview.
    i want to create spool requst only and not smartform layout.
    so,can u help me in this.
    regareds.
    Priya.

    Hi Supriya.
    I would like to suggest a few references, as it is quite similar to your issue,
    [SDN - Reference to Supress page in print preview   |Need to supress page in print preview;
    [SDN - Reference for Creating Spool request in SMARTFORMS|Spool - restrict multiple sap script  layouts into a single spool;
    [SDN - Reference for Several smartform outputs are included in an output request|Several smartform outputs are included in an output request;
    [SDN - Reference for Single Spool Request for Script & SmartForms|Single Spool Request for Script & SmartForms;
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Smartform translations deleted when activating smartform

    I made some changes to a particular smartform. Problem is that when i activate these changes, all translations (done via SE63) are deleted. Is there any way to prevent this, cause i don't feel like translating the smartform every time i change something?
    thank you.

    Hi souji,
    Example: If you want to translate smartform then steps are:
    Step1 :
    T/Code > Smartform>Global Settings -->genreal attributes Tab > Set flag (Radio Button)transaltionTo all languages/ Restricted languages
    Please set this flag.
    STEP2:
    Translation:
    Use T/code SE63>Translation(Menubar)>R3 enterprise> Other Long Texts>select " SSF"-->Enter Smartform name and from language and destination language.
    STEP3:
    Transporting translations :
    Please execute the following program for transporting translations : RS_LXE_RECORD_TORDER
    Target language = * or Target transalation lang.
    Object type = SSF
    Then Press Create Transport Request button. Create Request.
    Then include all your translations to that request.
    I hope this will solve ur problem.
    Please check & Let me know.
    Regards,
    Raj.

  • SAP certified printers & deleting spool files

    Hello,
    Could you please tell me what does a SAP certified printer mean?
    Also I would like to ask you if is it possible to make settings in a job to delete the spoolfiles after the end of the job?
    (I have a job which creates large spool files and I do not need these files)
    Thank you in advance,
    Noemi

    Hi,
    For deletion of spool file, you can schedule job SAP_REORG_SPOOL.
    You can check below link:
    http://help.sap.com/saphelp_46b/helpdata/en/c4/3a7ede505211d189550000e829fbbd/content.htm
    Thanks
    Sunny

  • Spool issue -Smartforms

    Hi,
    Everytime I run my Print program in Background.
    Output pages are being appended to the existing spool number.
    How do I deactivate this? I need a new Spool each time I run the program.
    Here is my code.
    CALL FUNCTION fm_name
            EXPORTING
             archive_index        = toa_dara
             archive_index_tab    = arc_ind_tab
             archive_parameters   = arc_params
             control_parameters   = ls_control_param
             mail_appl_obj        = ls_recipient
             mail_recipient       = ls_recipient
             mail_sender          = ls_sender
             output_options       = ls_composer_param
             user_settings        = SPACE
             TDNEWID              = space
             wa_itab              = wa_header
            IMPORTING
             document_output_info     = document_output_info
             job_output_info          = job_output_info
             job_output_options       = job_output_options
            TABLES
              wa_dep              = item_itab
            EXCEPTIONS
              formatting_error = 1
              internal_error   = 2
              send_error       = 3
              user_canceled    = 4.
    Regards
    Vara
    Message was edited by: Vara K

    There is a parameter called TDNEWID in the CONTROL_PARAMETERS / OUTPUT_OPTIONS (I am not sure which one), set that to X and it triggers a new spool every time.
    Regards,
    Ravi
    NOte :Please mark the helpful answers

  • Stop generating spool in smartform.

    Hi All,
               I need to stop soopl generation in smart forms .Can any one give some suggestions . I have used TDDELETE = X  but it is not working . SAP Gurus give your suggetions .....
    Regards,
    Veera

    Hello,
    I propose 2 methods:
    Please follow the following logic:
    1. Create a New IntTab with unique Customers.
    2. Loop in this New IntTab.
    3. Initialize all the Fields/Structures.
    4. Get the details of the corresponding Customer.
    5. Call the SSF in the Loop.
    This would reinitialize the SSF Variable for Page number.
    .or.
    I understand that the PAGE numbers are written in separate window.
    You need additional global field in SSF to hold the Customer number, and one for Page Number.
    First, you initialise with the first customer number.
    Since, this window being called for every page make a comparison of the IntTab Customer Number with the New Field for Customer Number.
    If both does NOT match, you reinitialize the field for Page and if it matches you can increment the Page Number.
    Hope either of the above helps you.
    Best Regards, Murugesh AS

Maybe you are looking for