How to check status of a spool request.

I need to check the status of the spool-id created by my smartform
Is there any function module to do so ??

Hi
Check the table TSP01 or other TSP* tables for the status of the spool related to your smartform
Reward points for useful Answers
Regards
Anji

Similar Messages

  • How do you preview using a spool request number

    How do you preview using a spool request number?
    I have an application in which I have accumulated the results from several smartforms into one spool request. I have the spool request number, and am printing it using function RSPO_RPRINT_SPOOLREQ.
    I need to be able to preview the contents of the spool request before printing. I can not preview when generating the smartforms, as that involves several previews, and I need to preview once only per spool request.
    I have been trying to use RSPO_RDISPLAY_OUTREQ but it dumps immediately (line 47) with field symbol <FTSP01> not assigned.
    Suggestions?

    *With no faction module "COM_SE_SPOOL_DISPLAY", try this simple code, you can display the form *type spool (you also can put the code in a function module):
    REPORT  ypl_test_display_spool MESSAGE-ID zm_print.
    PARAMETERS: rqident LIKE tsp01-rqident,
                            rqdocty LIKE tsp01-rqdoctype.
    *--- there may be more types need to separate..., so use case...
    CASE rqdocty.
      WHEN 'OTF' OR 'SMART'.
        PERFORM display_form.
      WHEN OTHERS.
        PERFORM display_others.
    ENDCASE.
    *&      Form  DISPLAY_FORM
          display form type spool...
    FORM display_form.
      DATA: wstr_otf_control TYPE itcpp.
      DATA: wtbl_buffer TYPE TABLE OF soli WITH HEADER LINE.
      DATA: wtbl_otf TYPE TABLE OF itcoo WITH HEADER LINE.
      DATA: wstr_retcode LIKE itcpp.
    *--- return spool raw data
      CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
        EXPORTING
          rqident              = rqident
        TABLES
          buffer               = wtbl_buffer
        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.
      IF sy-subrc <> 0.
        MESSAGE s013 WITH text-001.
        EXIT.
      ENDIF.
      LOOP AT wtbl_buffer .
        wtbl_otf-tdprintcom = wtbl_buffer(2).
        wtbl_otf-tdprintpar = wtbl_buffer+2.
        APPEND wtbl_otf.
      ENDLOOP.
    *--- some data to pass to this parameter, may not need...from SP01...
      wstr_otf_control-tdcopies = 1.
      wstr_otf_control-tdappl = 'TX'.
      wstr_otf_control-tddest = 'LOCL'.
      wstr_otf_control-tdpages = 0.
      wstr_otf_control-tdnoprint = 'X'.
      CALL FUNCTION 'DISPLAY_OTF'
        EXPORTING
          control = wstr_otf_control
        IMPORTING
          RESULT  = wstr_retcode
        TABLES
          otf     = wtbl_otf.
      IF wstr_retcode IS INITIAL.
    *--- message...
      ENDIF.
    ENDFORM.                    "DISPLAY_FORM
    *&      Form  display_others
          display other types, may more types needed to separate...
          you can refer current version of SAP report RSPOLST2
    FORM display_others.
      CALL FUNCTION 'RSPO_DISPLAY_SPOOLJOB'
        EXPORTING
          rqident              = rqident
        EXCEPTIONS
          no_such_job          = 1
          job_contains_no_data = 2
          selection_empty      = 3
          no_permission        = 4
          can_not_access       = 5
          read_error           = 6
          OTHERS               = 7.
      IF sy-subrc <> 0.
        MESSAGE s013 WITH text-001.
      ENDIF.
    ENDFORM.                    "display_others

  • Slow imac, how to check status and clean up disc?

    slow imac, how to check status and clean up disc?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to check status of a particular port by using netstat command?

    How to check status of a particular port by using netstat command?
    I want to check  port 443 in my server is open or not, is there any other way to check port via commandline?

    Hi,
    You can run the below command in an administrator command prompt on the server:
    netstat -ano|findstr ":443"
    -TP

  • How to control automatic deletion of spool requests while check printing

    hi friends
    When i do cheque payment run (F-58), my spool getting deleted after printing. In my User setting SU01,
    Delete after output is not selected, still it is getting deleted from spool. We have informed users to uncheck this option once the spool request is created at the end of this run. But our users feel there should be some way to disable/uncheck or save this option automatically rather than changing each spool request settings everytime the posting is run.
    Please could you suggest me how to disable/uncheck this option 'Delete after printing if no errors' permanently. I have done the necessary settings in user master record but still it's the same.
    please advice.
    Regards,

    Hi Nathan,
    Solution is only to maintain in SU01 , its picking from there only.
    May be your  user needs to log-off once status is changed in SU01, ask him to check what it is showing for him in SU3.
    So if you deactivate  option in SU01/SU3 , it should work as same is working in our environment.
    You can test yuorself using below steps
    1) Login with your ID , create one spool request
    2) check the status in SP01 and check if its ticked  or not
    3) change the tick mark in SU01 , logoff. and login again .
    4) create another spool request
    5) check status now for new spool request in SP01 and check if it is ticked.
    Regards,
    Edited by: Gagan Deep Kaushal on Oct 31, 2010 5:00 PM

  • How to get data from OTF spool request number

    Hi all,
            How to get OTF Data from the spool request number (OTF)?
            How to create spool request from the OTF Data?
    Regards,
    Sunil Kumar

    Hi,
    Check this links:
    http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm
    Sending Mail from SAP
    https://wiki.sdn.sap.com/wiki/display/sandbox/SendMailwithPDFAttachment?showChildren=false#children

  • How to check status of sent PO related IDOCS to XI...

    Hello Experts,
    I was just given a task to create a report wherein I need to check the status of
    all PO(purchase order) related IDOCS that are sent to XI. Please tell me the steps on how to
    check if those IDOCS are sent successfully or not.
    Hope you can help me guys. Thank you and take care!

    Hi,
    In TCode- WE05 or WE02 you can check the status of idocs.
    Status 03 says :'Data passed to port OK', it means Data has reached to ur Destination(In ur case its XI).
    So just explore the above Tcode and see how you can fetch the status.
    Thanks.
    Note:Reward points if you find useful.

  • Copying files from one to other location.. How to check status in run mode on front panel?

    Hi guys , can anyone tel me that how can I check the copying status in real time while VI is running.. e.g lets say I am coping files from location A to location B and the data is quite large so if somewhere in between there is an error I can not figure out when the problem occurred. Is this possible that I know while staying on the front panel about the amount of data copied and how much is left etc..because I think it will be easy to track error if there will be any..
    Naqqash

    Hi,
    I tried to do it, but from some reason I failed. Here are some links about function and how to do it:
    http://msdn.microsoft.com/en-us/library/bb762164%28v=vs.85%29.aspx
    http://msdn.microsoft.com/en-us/library/bb759795%28v=vs.85%29.aspx
    http://www.docstoc.com/docs/31464530/Passing-Labview-Cluster-to-C-Structure-in-DLL
    In the attachment is what I've been trying for the last half an hour. I did it before, but never using cluster -> structure casting.
    Paul
    Attachments:
    copyfile.vi ‏13 KB

  • Two JetDirects in one HP-5550dtn, how to check status of the card from the "other" network

    I have CLJ5550 connected to two distinct LAN.
    Card 1 is a J7934G installed in EIO1 slot connected to LAN1
    Card 2 is a J3113A installed in EIO2 slot connected to LAN2
    This setup seem to work, except I can not use the web interface on LAN2. (telnet is OK but network configured by DHCP so no porblem).
    Is it possible to check the status of card2 from  LAN1 some way?  I would prefer an snmp tool or just OID for the second interface from there I can figure. Or any scriptable (linux) probe. 
    What I have tried is snmpwalk (on a linux host) from LAN1 I only seem to get info on the first card no mention of either EIO or other interface, although there is info provided about storage RAM disk etc. And by the way, this is the same with the web interface I can only tell that Card2 installed but nothing about it's configuration. Before you ask, no I can not do the monitoring from LAN2 I do not "own" that part.
    Right now, I would be happy just to be able to know if the card2 connected and up... I am having problems related to LAN2 dropping off  (smart switch disabling port) We are trying to determine why. 
    If anyone have any suggestions, I can provide more detials as needed.
     Thanks,
    Gabor

    For ABAP case, ccBPM is required only for calling mapping (transform step). You can call method of standard message data retriver class in any custom ABAP mapping anywhere.

  • How to download the Contents of Spool Requests as one line into Local File

    Hello All,
    I am running a report (Tcode- MC40)in background and i want to download the output from Spool list .
    but the issue with me is, in spool the contents are displaying in 2 rows, where as i want to downlod the details in 1 row by filtering some fields as per my need. There is no option to download SINGLE LINE / DOUBLE LINE  as like if i run in foreground .
    If i run it In Foreground , there is option to see the ouput in SINGLE LINE/DOUBLE LINE ... Same way i want to downaload the spool in background , as the report takes much time , so it has to run in back ground...
    anyone please suggest any idea ??
    Thanks all.

    try :
        CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
          EXPORTING
            rqident              = i_spools-rqident
            first_line           = 1
            last_line            = 0
            desired_type         = ' '
          IMPORTING
            real_type            = real_type
            sp_lang              = sp_lang
          TABLES
            buffer               = so_ali
          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.

  • BackGround Job's Spool Request is having "Waiting" "Frontend unavailable"

    Hello Friends,
    I am facing one problem related to Spool Request, which is generated through Scheduled Background Jobs (scheduled by funcional people).
    The Background Job is having status "completed" when analyzing it. But, its associated Spool Request is showing "waiting" Status, with "Frontend unavailable" as Status Text.
    Here is the brief status of that Spool Request.
    28448     1      300 USER1 00:00 LP01 X_65_80      Frontend unavailable
    in Detail:
    Description          Value
    Status:              Frontend unavailable
    Last event:
    Message:             Request on hold
    Date:                01.07.2009
    Time:                00:00:27
    Job status:          On hold
    Error class:         Delayed
    Area:                Data transfer
    Printout:            Not printed
    The Setting of LP01 O/Device is as followed:
    Output Device        LP01
    Device Type        SWIN SWIN  : Windows printing via SAPlpd
    Device Class      Standard Printer
    Host Spool Access Method       F F: Printing on Front End Computer
    Host printer                     __DEFAULT
    Moreover, the SAP User USER1 is allocated LP01 as Output Device with "Output Immediately" & "Delete After Output" checked status.
    Some Background Jobs are showing the same status for this LP01.
    I have a doubt on allocated O/P Device LP01.
    Any Clue for this issue ?
    Regards,
    Bhavik G. Shroff

    Hello Markus,
    Here , in our Landscape , there is not Print Server. All are taking prints through, Networked Printer and their local connected Printers.
    Can i configure "send to SAP Spooler for now" instead of "Print Immediately "in the Print Specification of those Background Jobs ?
    Moreover, Some Background jobs are sending E-Mails with the processed Reports as an Attachments. They are showing sometime unexpected behavior, in sending emails,  although there is no relation is with this Printing related issue.
    When i am looking into "Overview of Send Orders" of SCOT, some Background Jobs are showing success for sending emails, and some are not showing success, even though All the recipients are same for the scheduled Background Jobs which are running on same time.
    Regards,
    Bhavik G. Shroff

  • Creating no. of spool requests based on data

    Hi all!
      I am preparing a smartform showing the schedule deliveries of purchase orders of all vendors within a specified period. A new spool request is to be generated for each vendor's schedule deliveries. How can I raise a new spool request when the vendor no. is changed? Is it possible? If yes,please suggest.
    Edited by: Jayasri P. on Apr 21, 2008 12:31 PM

    Hi Nehal!
      I have passed the parameter of type SSFCRESCL in the function module fm_name(i.e. 2nd f.module in my program).But it's throwing a dump when executing saying that parameter of specified type doesn't allow to pass through this function module an it allows only fields of a particular type .What is the type of LS_COMPOSER?
    I have declared the variable as : LS_COMPOSER TYPE SSFCRESCL .
    LS_COMPOSER-TDNEWID = 'X'.
    CALL FUNCTION FM_NAME
           Exporting
               t_lfa1 = t_lfa1
               OUTPUT_OPTIONS = LS_COMPOSER
           TABLES
               it_ekko =it_ekko
               it_ekpo = it_ekpo
               it_eket = it_eket.
    What's going wrong with this?

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

  • Massive change of "User name" of spool request

    HI all,
    someone knows a report that changes "User name" of all spool request of an user to another user?
    Thank you in advance.
    Pasquale

    Hi Pasquale,
    There's none in SAP standard. But maybe the note 158487 - How can one user view the spool requests of other users suits your needs.
    Br,
    Javier

  • How to send as an email the spool request?

    Dear Experts,
    My last post was Email background schedule report to gmail or yahoo mail .
    I got solution but it's work as a notification which we can say the after report run it triggers mail that report is completed as this time.
    But i required the thing how to send a spool request of a report  as an email attachment.
    it will be in .xls or .pdf or xyz format.
    It was the additional task which was required by my organization.
    I also want to know the following things.
    1. what is sap default configuration and system behind it.
    2. what the things abaper have to check.
    3. what is bcs_examples & where do i found these bcs_example8.
    Please guide me to explore my knowledge.
    Thanks & regards
    Nayan Lad
    Note for moderator : Sir, I will close request at 2:30 pm today onward, so please do not lock it.
    Moderator Message: All your questions can be answered by searching.
    Edited by: kishan P on Nov 13, 2010 3:29 PM

    need solution..

Maybe you are looking for

  • Dynamic Linking between Premiere pro cs6 CC and After Effects is shaded grey and not working.

    Hi, I currently have a CC membership with everything included in the package. I have already downloaded Premiere Pro CS6 and After Effects. However, I cannot figure out why , when I right click a video clip in Premiere, the dropdown menu has the 'rep

  • 5D Mark II THM files

    Is there any way to get Bridge to recognize THM files as the JPG source of EXIF information for the 5D Mark II's MOV files?  And, on that note, is there any way to get Bridge to manage the "sidecar" nature of these files (meaning, if you rename or co

  • NVL2 in Expression

    Hi All, Im facing a problem at a map when i use the NVL2 in the expression the following error appears Line 1,col 1 PLS-00201: idnetifier 'NVL2' must be declared it can be done through transformation, But i think its duable through the expression ple

  • Plants Abroad

    I have the following scenario: 1 There is a company situated in US and have two plants in Mexico. These two plants in Mx do the assembling job for back to back exports. There is a small local sales component from these two components. Appreciate whet

  • Old emails being resent

    I have been receiving email messages from August 7th that have been deleted. I have logged into my email on the computer and completely deleted them but I keep receiving them on my Blackberry. I get the same 4 messages about 5-6 times a day. I have t