Error in output Spool

Hi:
I need help, I'd like send spool of program as attachment PDF file,
so, my solution is...
1.Get Spool Number
   I get the Spool Number from table:TSP01, to get the last one.
2.Get Spool Data, useing function 'RSPO_RETURN_SPOOLJOB'
3.Sendmail use function 'SO_DOCUMENT_SEND_API1'
Let the program running at background job, then I checked the job,
result as below...
Status:            Frontend unavailable
Message:           Request on hold
Time:              2007/08/20 15:52:58
Job status:        On hold
Error class:       Delayed
Area:              Data transfer
Printout:          Not printed
can anybody know about it?  plz help me, thanks a lot!...
following is my code (partial of parameters)
Get Spool Number (get the spool last one)
  select tsp01~rqident into v_spool
  from   tsp01
  where  tsp01~rqowner = 'SAPMIS'
  order by tsp01~rqident descending.
    exit.
  endselect.
Get the spool data.
  call function 'RSPO_RETURN_SPOOLJOB'
    exporting
      rqident = v_spool
      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.
    if sy-subrc <> 0.
      message s208(00) with 'Error'.
      leave list-processing.
    endif.
  Prepare the data.
    plist-transf_bin = 'X'.
    plist-head_start = 0.
    plist-head_num = 0.
    plist-body_start = 0.
    plist-body_num = 0.
    plist-doc_type = 'RAW'.
    plist-obj_descr = 'ReadMe'.
    append plist.
    plist-transf_bin = 'X'.
    plist-head_start = 0.
    plist-head_num = 0.
    plist-body_start = 1.
    describe table so_ali lines plist-body_num.
    plist-doc_type = real_type.
  Get the size.
    read table so_ali index plist-body_num.
    plist-doc_size = ( plist-body_num - 1 ) * line_size
    + strlen( so_ali ).
    append plist.
Send the email.
  call function 'SO_DOCUMENT_SEND_API1'
    exporting
      document_data  = document_data
      sender_address = v_name
      sender_address_type = 'B'
    tables
      packing_list = plist
      contents_bin = so_ali
      receivers    = rec_tab
    exceptions
      too_many_receivers          = 1
      document_not_sent           = 2
      document_type_not_exist     = 3
      operation_no_authorization  = 4
      parameter_error             = 5
      x_error                     = 6
      enqueue_error               = 7
      others                      = 8.
    if sy-subrc <> 0.
      message e208(00) with 'Error'.
    endif.
    commit work.
  Send the email immediately.
    submit rsconn01
    with mode = 'INT'
    and return.

hi
chk this statement
if sy-subrc <> 0.
message s208(00) with 'Error'. --> where will the status bar msg. occur in bground
leave list-processing.
endif.
maybe the subrc might be false, and triggering this condition, which i believe will not work in background
if helpful, reward
Sathish. R

Similar Messages

  • No output Spool for my Z-program in Background

    Hi All,
    The custom program which I developed giving the following Error message
    (The program getting executed successfully in Background but without the Output Spool ) :
    ' There is no list
    No. BT175 message
    diagnosis
    Spool No order has been found for the job or job step to choose. Possible causes:
    The job has not yet been executed.
    The job was terminated without transmitting the print spool system SAP.
    The order was created with spool "Delete when editing" and has already been removed.
    system activities
    No action.
    procedure
    If you think the job was interrupted before the creation of data editing, see the protocol job. If the job was completed abnormally, you will find a corresponding message in the system log ' .
    Please explain me what this Error is all about and also How to correct this error.
    Many thanks in Advance.

    Hi Burak,
    The program has been completely successfully (not Interrupted ),but the output spool is not appearing in the Transaction SM37 and as i said I have given all the Informations regarding that.
    I debugged the code and checked the Output file its generating. It has the Records (Entries) in Transaction AL11 which we are looking for.
    But the problem is its not generating the Spool Report in Background.
    Also, I couldn't debug the entire code ( it takes hours ) since we are fetching 4.5 million entries from DB tables.

  • Error "Screen output are too small" when looping through internal table!

    Hello All:
         I have a huge internal table with some 79000 records and while looping through them and doing some other processing inside the loop, I am getting an error "Screen output are too small"! Could someone please help mw how to fix this issue? I can send the all the code if anyone wants to look at the code. Thanks in advance and rewards are assured.
    Mithun

    Hi,
    Check this
    new-page print off.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    destination = v_dest
    IMPORTING
    out_parameters = params
    valid = valid.
    * params-linct = '58'.
    * params-linsz = '170'.
    * params-paart = 'X_58_170'.
    * params-prtxt = v_spool_text.
    * params-primm = 'X'.
    * params-prrel = 'X'.
    NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
    After the call fm GET_PRINT_PARAMETERS params internal table contains all the values for generating spool.
    aRs

  • Getting error "Screen output area too small"! Please help!

    I am getting an error "Screen output area too small" when looping through some huge internal table and sending to spool "on change of some value" in my internal table. Could someone please help me in correcting this? Rewards assured.
    Thanks.
    Mithun

    Check the simple program and have tested ,it works great( IN ECC 6 Version)
    REPORT  ztestspool.
    DATA : arc_params TYPE arc_params,
    v_print_parms TYPE pri_params,
    w_valid TYPE char1,
    w_valid_spool TYPE char1.
    CONSTANTS : lc_paart LIKE sy-paart VALUE 'X_65_132', " Paper Format
    lc_locl TYPE sypdest VALUE 'LOCL', " Destination
    c_x TYPE char1 VALUE 'X'.
    Setup the Print Parmaters
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        authority              = space
        immediately            = space
        new_list_id            = c_x
        no_dialog              = c_x
        user                   = sy-uname
      IMPORTING
        out_parameters         = v_print_parms
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    IF sy-subrc NE 0.
      CLEAR : v_print_parms.
    ENDIF.
    The printer destination has to be set up
    IF v_print_parms-pdest = space.
      v_print_parms-pdest = lc_locl.
    ENDIF.
    Explicitly set line width, and output format so that
    the PDF conversion comes out OK
    *v_print_parms-linsz = c_linsz.
    v_print_parms-paart = lc_paart.
    NEW-PAGE PRINT ON PARAMETERS v_print_parms NO DIALOG.
    *PERFORM display_output.
    write :/ 'This is test for spool generation'.
    NEW-PAGE PRINT OFF.
    Thanks
    Seshu

  • Error in printing Spools

    Dear Experts,
    While printing Cheques in SAP my user is getting error in
    OUTPUT CONTROLLER LIST OF SPOOL REQUESTS
      Spool no.  Type User     Date       Time  Status Pages Title                                                                               
    12767      GJAILANI 15.10.2009 15:23 Compl.    1  Error log 
           12764      GJAILANI 15.10.2009 15:19 Compl.    1  Error log 
           12762      GJAILANI 15.10.2009 15:17    -      1  Error log 
    Onclicking "Type" Icons
    It gives error i.e.
    Error log                                                                               
    F2371                    No authorization to display general data                                                                               
    =============================
    While checking Authorization check ie through SU53 it shows no authorization error.
    Please help
    Regards

    On Further research it is found that backgroud job which is sending spool is giving error logs are
    Date       Time     Message text                                                                           Mes
                                                                                    15.10.2009 15:23:24 Job started                                                                               
    15.10.2009 15:23:24 Step 001 started (program SAPFPAYM_SCHEDULE, variant &0000000000593, user ID GJAILANI)   
    15.10.2009 15:23:25 Step 002 started (program RFFOUS_C, variant &0000000000591, user ID GJAILANI)            
    15.10.2009 15:23:25 Check number status at beginning of processing: 0000002761997                            
    15.10.2009 15:23:25 Program RFFOUS_C: No records selected                                                    
    15.10.2009 15:23:25                                                                               
    15.10.2009 15:23:25 No authorization to display general data                                                 
    15.10.2009 15:23:25 >                                                                               
    15.10.2009 15:23:25 > Overview of the lists generated                                                        
    15.10.2009 15:23:25 > Name / Dataset / Spool number                                                          
    15.10.2009 15:23:25 >                                                                               
    15.10.2009 15:23:25 > Error log / LISTFS / 0000012767                                                        
    15.10.2009 15:23:25 Job finished                                                                               
    Program RFFOUS_C: No records selected
    How can this be resolved?
    Edited by: Waqas Ahmad on Oct 15, 2009 1:17 PM

  • Message received "error initializing output device"

    I receive a message "error initializing output device" even after downloading the driver from HP that HP recommended.  I had this error when I first bought Windows 7 and ended taking it off line and putting my old one with Windows XP back on line.  My old printer (a Dell printer)  worked with it.  I bought a new HP printer and was sure it would work with Windows 7, but it doesn't.  How can I fix Windows 7 so I can get rid of this frustrating error and make the printer work?

    Hey jack0501, I see you are having an issue of device being busy and will not respond to print commands.  There are a few steps I would advise performing to see if this can be resolved. First,  I would advise performing a Hard Reset to the printer, restart the PC, and power cycle the network if this printer is network connected. Follow these steps to reset your HP printer, your wireless router, and your computer.Press the Power button on the HP printer to turn it off.Disconnect the power cord from the rear of the HP printer.Disconnect the power cord from the wireless router.Turn off the computer.Wait 30 seconds.Reconnect the power cord to the wireless router.Wait 30 seconds, or until the router is fully on and ready.Turn the computer back on.Wait for the computer to reload.Reconnect the power cord to the rear of the HP printer.Turn the printer back on.**Subsitute unplugging the USB cable for power cycling the Router if it is USB connected. Second, I would advise restarting the Print Spooler service on your PC after everything is power cycled and logged back in.  Below is a link to a thread on restarting the print spooler service. http://h30434.www3.hp.com/t5/Printing-Issues-Troubleshooting/Restarting-the-Print-Spooler/td-p/2447413   Try to print again after performing these steps and let me know how it goes. Jason  

  • Quicktime Export Error: "An output module stopped responding."

    I'm experiencing an odd export error whenever I use any Quicktime codecs:
    "After Effects error: An output module stopped responding. The file may be damaged or corrupted. You may need to restart After Effects."
    Similarly, Adobe Media Encoder hangs when outputting to Quicktime codecs. Neither program makes any progress at all before the hang occurs. At that point, I have to manually "end task" to exit. Also, it doesn't seem to matter what I try to export. In AME, for example, I can simply try to convert one video format to another and have it hang, so I don't think the problem is due to a problem with the source settings or effects. Also, I'm not attempting any multiprocessing since I don't really have enough RAM for that. Other output modules work, so I'm just exporting image sequences for the time being.
    System specs:
    Windows 7 64-bit
    Intel i7-2600k processor
    8 GB RAM
    GTX 580 GPU
    Software:
    Adobe CS6
    AE Plugins include Tracode Suite 12 and Optical Flares
    Quicktime 7.7.3
    Any thoughts on this? I've seen very few references to this error in other places, and not really found a solution that seems to apply to my situation. Thanks in advance for your help.
    Josh

    Thanks for setting me in the right direction. Clicking through to the 25 :: 101 error page (http://myleniumerrors.com/2013/01/06/25-101-4/) led me to a reference about other software, such as remote access software, using the same ports that AE needs for communication with its various processes. In my case, LogMeIn was the culprit. I had no idea that AE even used TCP for these types of operations, so that's very helpful to know.
    *EDIT*
    That worked temporarily, and now it doesn't work. I ran into a similar effect when I first disabled the Windows Firewall. But of course, as I type this and piddle around, it works again. It SEEMS like if I open AME and click into the output settings and scrub through the video preview, it makes everything work when I go to actually export. That's exactly the type of thing I would say is completely unrelated under normal circumstances, but at the moment all I know is that it is currently working and I don't want to test anything else until I finish the rendering I need to accomplish today. I'll work on it more later and post an update at that time.
    Thanks,
    Josh

  • Internal error in the spool system., error key: RFC_ERROR_SYSTEM_FAILURE

    Hi All,
    I am getting Error when i am viewing my salary slip in ESS.
    The Error i am getting is :
    Internal error in the spool system., error key: RFC_ERROR_SYSTEM_FAILURE
    So can anybody help me out in this.
    Regards,
    Dhruv Shah

    Solved the Error by deleting the spool in the Backend.
    Spool was overflow.
    Regards,
    Dhruv Shah

  • Request xy in system xy: internal error 0000000040/ in spooler ()

    Hi SAP community,
    when I am running a customized COPA report in background I got the following error message when I am trying to access the spool (job itself finished successfully):
    <b>Request xy in system xy: internal error 0000000040/ in spooler ()
    Message no. SP01R 042
    Diagnosis
    An unexpected error occurred in the spooler.
    Procedure
    Write down the exact message text and notify your system administrator.
    A message of this type contains three variables:
    Internal error x/y in spooler: z
    x is the SY-SUBRC of the CALL module.
    y is the error number of the C library of the spooler. See also "RSPOE..." in "rspo.h".
    z is a more detailed description of the error and may contain information about what the user can do (for example: try again later, end session, and so on).</b>
    Thanks in advance for your support.
    Best regards,
    Chris

    Hi SAP community,
    It appears that certain spool requests can not be displayed because of format restrictions. 
    OSS note 186603

  • Error while executing SSIS package - Error: 4014, Severity:20, State: 11. A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)

    Hi,
    We are getting the following error when running our SSIS packages on Microsoft SQL Server 2012 R2 on Windows Server 2008 R2 SP1:
    Error: 4014, Severity:20, State: 11.   A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)
    SQL Server Data Tools and SQL Server Database Engine reside on the same server.
    We tried the following:
    Disabling TCP Chimney Offload
    Installed Windows Server 2008 SP1
    Splitting our SSIS code into multiple steps so it is not all one large continuous operation
    The error occurs during a BulkDataLoad task.
    Other options we are investigating with the engineering team (out-sourced, so delayed responses):
    Firewall configurations (everything is local, so this should not make a difference)
    Disabling the anti-virus scanner
    Are there other things we can try?
    Any insight is greatly appreciated.
    Thanks!

    Hi HenryKwan,
    Based on the current information, the issue can be caused by many reasons. Please refer to the following tips:
    Install the latest hotfix based on your SQL Server version. Ps: there is no SQL Server 2012 R2 version.
    Change the MaxConcurrentExecutables property from -1 to another one based on the MAXDOP. For example, 8.
    Set "RetainSameConnection" Property to FALSE on the all the connection managers.
    Reference:
    https://connect.microsoft.com/SQLServer/feedback/details/774370/ssis-packages-abort-with-unexpected-termination-message
    If the issue is still existed, as Jakub suggested, please provide us more information about this issue.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • RFC system error: Screen output without connection to user

    After running transaction SMWP, we nagivate to the "Parameters for object load management" node using the following path:
    Runtime Information -> Adapter Status Information -> Parameters in R/3 Backend(s) -> ECC -> Parameters for object load management
    Under the node “Parameters for object load management”, when we double click any of the entries we receive the following error message in the form of a pop-up: “RFC system error: Screen output without connection to user”.
    Has anyone encountered the aforementioned error?

    Hi,
    while creating the syncbo you have to give the RFC destination for corresponding Bapi wrappers
    so plz check that.
    and can you please explain the exact error in detail and add the trace..
    Regards
    Manohar

  • Error  Screen output without connection to user  DYNPRO_SEND_IN_BACKGROUND

    Hi Experts
    I am  trying to debbug a BADI (for shc)  in SRM 7.0 with external debugger.
    I placed a breakpoint in the BADI, and logged into the portal screen,it is  independent portal.
    when i start to create the shc i get the error:     Screen output without connection to user
    if i delete the breakpoint it work well.
    the user i work with, has a developer key and SAP_ALL.
    Runtime Errors      DYNPRO_SEND_IN_BACKGROUND
    Exception              CX_SY_SEND_DYNPRO_NO_RECEIVER
    Thanks
    Almog
    Edited by: almog126 on Jul 14, 2010 3:00 PM
    Edited by: almog126 on Jul 14, 2010 3:00 PM

    did you solve this?
    We have now the same problem with any external debugging (WebServices/WebDynpro).

  • External Drive Disk Erase Failed with the Error Input/Output Error

    I have 2 hard drives in an external FW800 enclosure that I am unable to format. When I go to initialize the drives in Disk Utility, I get the following error message: "Disk Erase failed with the error: Input/output error."
    The drives show up in Disk Utility, but I can't repair them (that option is grayed out). Disk Utility correctly ID's the manufacturer of the drives (Maxtor), their size (200gb each), so it's obviously seeing that the drives are there. But it won't let me format them.
    The drives are new, by the way; they don't have any data/files on them. I have Disk Warrior, but the drives don't show up there to be repaired -- probably because they aren't formatted yet.
    After looking at other posts, I tried switching the jumper settings around on the drives -- from Master/Slave to cable select and back again, but it didn't help. I also tried doing a zero erase (even though the drives are new), zapping the PRAM -- again, no help.
    One question I had is whether this could be a bad FW800 cable? The cable is new -- it came with the enclosure, which is an OWC Dual FW 800 enclosure. Other than that, does anyone have any other thoughts about what's causing this? Any help would be greatly appreciated.
    Matthew

    SOLUTION!!!!
    I had the exact same problem. I have the original 20 GB hard drive that came in my Powerbook G4 550MHz and a couple of years ago I traded up for a 60 GB drive and bought a FW/USB enclosure for my original drive to use it to backup my important files. I hadn't backed up in over a year (shame on me!) and I decided maybe I should erase the drive and start from scratch. It was connected via USB.
    At that point DiskUtility gave me the exact same Input/Output error. I tried partitioning the drive into 1 or more partitions but came up with the same error. I couldn't figure out what was wrong so I decided to startup in OS 9.2.2, I did that and let it start up, then plugged in the hard drive and it gave me the standard "This disk is unrecognizable, do you want to eject or erase?" so I clicked Initalize. It worked!
    Just make sure you choose the MacOS Extended option when initializing out of OS 9 (instead of the MacOS Standard option) so it can be read and viewed in OS X.
    If your computer is too new to be able to boot from an OS 9 folder on your drive or an OS 9 CD, then see if a friend or a local library has older computers that are running OS 9 or can boot from it. If not let me know and you can send me your drive and I'll reformat it.
    Kind of crazy...I haven't used the OS 9 partition on my HD in YEARS...was even thinking about erasing it since I don't use any Classic applications anymore...good thing I didn't!
    Nick
    Powerbook G4 550Mhz   Mac OS X (10.4.6)  

  • App-V PowerShell: Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results

    Please Vote if you find this to be helpful!
    App-V PowerShell:  Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results
    Just posted this to the wiki:
    http://social.technet.microsoft.com/wiki/contents/articles/25323.app-v-powershell-script-to-query-xenapp-servers-for-app-v-publishing-errors-and-output-an-excel-document-with-the-results.aspx

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • How to set an output spool file size

    hi experts,
    now i am run a output spool file transaction, if i run in a small volumn, it is only give one output spool file which is ok for me, but if in a full volumn run, it will give a multiple output spool file which is not what i want, so i was wondering if the output spool file size can be set somewhere and only give me only one output spool file when in the full volum run.
    thanks.

    Hi,
    Have you tried transaction SP01O.
    Regards,
    Atish

Maybe you are looking for