Spool Id

Hi,
I have done coding where I have to convert a Remittance advice into PDF and mail it to Vendors. The only problem is that I am not able to retrieve the spool id using Structure :
itcpp-tdspoolid and hlp_pdfspoolid...
One more thing is I am using BTE 2310 and 2040 for sending the mail but I want the spool output also...
What is the ideal way to go about this...
Raghav

Here is a sample code which may help you:
*& Report  ZSPOOLTOPDF                                                 *
*& Converts spool request into PDF document and emails it to           *
*& recipicant.                                                         *
*& Execution                                                           *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on      *
*& screen                                                              *
REPORT  zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
                                    DEFAULT 'abap@receiver,
           p_sender LIKE somlreci1-receiver
                                    DEFAULT 'abap@sender',
           p_delspl  AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
        INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
      wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
      gd_eventparm LIKE tbtcm-eventparm,
      gd_external_program_active LIKE tbtcm-xpgactive,
      gd_jobcount LIKE tbtcm-jobcount,
      gd_jobname LIKE tbtcm-jobname,
      gd_stepcount LIKE tbtcm-stepcount,
      gd_error    TYPE sy-subrc,
      gd_reciever TYPE sy-subrc.
DATA:  w_recsize TYPE i.
DATA: gd_subject   LIKE sodocchgi1-obj_descr,
      it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
      gd_sender_type     LIKE soextreci1-adr_typ,
      gd_attachment_desc TYPE so_obj_nam,
      gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
      gd_destination LIKE rlgrap-filename,
      gd_bytecount LIKE tst01-dsize,
      gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
           c_no(1)     TYPE c   VALUE ' ',
           c_device(4) TYPE c   VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
  WRITE 'Hello World'.
  new-page.
  commit work.
  new-page print off.
  IF sy-batch EQ 'X'.
    PERFORM get_job_details.
    PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
*        to sap-spool
*        spool parameters   %_print
*        archive parameters %_print
*        without spool dynpro
*        and return.
* Get spool id from program called above
*  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
    PERFORM convert_spool_to_pdf.
    PERFORM process_email.
    if p_delspl EQ 'X'.
      PERFORM delete_spool.
    endif.
    IF sy-sysid = c_dev.
      wait up to 5 seconds.
      SUBMIT rsconn01 WITH mode   = 'INT'
                      WITH output = 'X'
                      AND RETURN.
    ENDIF.
  ELSE.
    SKIP.
    WRITE:/ 'Program must be executed in background in-order for spool',
            'request to be created.'.
  ENDIF.
*       FORM obtain_spool_id                                          *
FORM obtain_spool_id.
  CHECK NOT ( gd_jobname IS INITIAL ).
  CHECK NOT ( gd_jobcount IS INITIAL ).
  SELECT * FROM  tbtcp
                 INTO TABLE it_tbtcp
                 WHERE      jobname     = gd_jobname
                 AND        jobcount    = gd_jobcount
                 AND        stepcount   = gd_stepcount
                 AND        listident   <> '0000000000'
                 ORDER BY   jobname
                            jobcount
                            stepcount.
  READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
  IF sy-subrc = 0.
    message s004(zdd) with gd_spool_nr.
    gd_spool_nr = wa_tbtcp-listident.
    MESSAGE s004(zdd) WITH gd_spool_nr.
  ELSE.
    MESSAGE s005(zdd).
  ENDIF.
ENDFORM.
*       FORM get_job_details                                          *
FORM get_job_details.
* Get current job details
  CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
       IMPORTING
            eventid                 = gd_eventid
            eventparm               = gd_eventparm
            external_program_active = gd_external_program_active
            jobcount                = gd_jobcount
            jobname                 = gd_jobname
            stepcount               = gd_stepcount
       EXCEPTIONS
            no_runtime_info         = 1
            OTHERS                  = 2.
ENDFORM.
*       FORM convert_spool_to_pdf                                     *
FORM convert_spool_to_pdf.
  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
       EXPORTING
            src_spoolid              = gd_spool_nr
            no_dialog                = c_no
            dst_device               = c_device
       IMPORTING
            pdf_bytecount            = gd_bytecount
       TABLES
            pdf                      = it_pdf_output
       EXCEPTIONS
            err_no_abap_spooljob     = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_destdevice       = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
  CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
  LOOP AT it_pdf_output.
    TRANSLATE it_pdf_output USING ' ~'.
    CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
  ENDLOOP.
  TRANSLATE gd_buffer USING '~ '.
  DO.
    it_mess_att = gd_buffer.
    APPEND it_mess_att.
    SHIFT gd_buffer LEFT BY 255 PLACES.
    IF gd_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.
ENDFORM.
*       FORM process_email                                            *
FORM process_email.
  DESCRIBE TABLE it_mess_att LINES gd_recsize.
  CHECK gd_recsize > 0.
  PERFORM send_email USING p_email1.
*  perform send_email using p_email2.
ENDFORM.
*       FORM send_email                                               *
*  -->  p_email                                                       *
FORM send_email USING p_email.
  CHECK NOT ( p_email IS INITIAL ).
  REFRESH it_mess_bod.
* Default subject matter
  gd_subject         = 'Subject'.
  gd_attachment_desc = 'Attachname'.
*  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
  it_mess_bod        = 'Message Body text, line 1'.
  APPEND it_mess_bod.
  it_mess_bod        = 'Message Body text, line 2...'.
  APPEND it_mess_bod.
* If no sender specified - default blank
  IF p_sender EQ space.
    gd_sender_type  = space.
  ELSE.
    gd_sender_type  = 'INT'.
  ENDIF.
* Send file by email as .xls speadsheet
  PERFORM send_file_as_email_attachment
                               tables it_mess_bod
                                      it_mess_att
                                using p_email
                                      'Example .xls documnet attachment'
                                      'PDF'
                                      gd_attachment_name
                                      gd_attachment_desc
                                      p_sender
                                      gd_sender_type
                             changing gd_error
                                      gd_reciever.
ENDFORM.
*       FORM delete_spool                                             *
FORM delete_spool.
  DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
  ld_spool_nr = gd_spool_nr.
  CHECK p_delspl <> c_no.
  CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
       EXPORTING
            spoolid = ld_spool_nr.
ENDFORM.
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
*       Send email
FORM send_file_as_email_attachment tables it_message
                                          it_attach
                                    using p_email
                                          p_mtitle
                                          p_format
                                          p_filename
                                          p_attdescription
                                          p_sender_address
                                          p_sender_addres_type
                                 changing p_error
                                          p_reciever.
  DATA: ld_error    TYPE sy-subrc,
        ld_reciever TYPE sy-subrc,
        ld_mtitle LIKE sodocchgi1-obj_descr,
        ld_email LIKE  somlreci1-receiver,
        ld_format TYPE  so_obj_tp ,
        ld_attdescription TYPE  so_obj_nam ,
        ld_attfilename TYPE  so_obj_des ,
        ld_sender_address LIKE  soextreci1-receiver,
        ld_sender_address_type LIKE  soextreci1-adr_typ,
        ld_receiver LIKE  sy-subrc.
data:   t_packing_list like sopcklsti1 occurs 0 with header line,
        t_contents like solisti1 occurs 0 with header line,
        t_receivers like somlreci1 occurs 0 with header line,
        t_attachment like solisti1 occurs 0 with header line,
        t_object_header like solisti1 occurs 0 with header line,
        w_cnt type i,
        w_sent_all(1) type c,
        w_doc_data like sodocchgi1.
  ld_email   = p_email.
  ld_mtitle = p_mtitle.
  ld_format              = p_format.
  ld_attdescription      = p_attdescription.
  ld_attfilename         = p_filename.
  ld_sender_address      = p_sender_address.
  ld_sender_address_type = p_sender_addres_type.
* Fill the document data.
  w_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
  w_doc_data-obj_langu = sy-langu.
  w_doc_data-obj_name  = 'SAPRPT'.
  w_doc_data-obj_descr = ld_mtitle .
  w_doc_data-sensitivty = 'F'.
* Fill the document data and get size of attachment
  CLEAR w_doc_data.
  READ TABLE it_attach INDEX w_cnt.
  w_doc_data-doc_size =
     ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
  w_doc_data-obj_langu  = sy-langu.
  w_doc_data-obj_name   = 'SAPRPT'.
  w_doc_data-obj_descr  = ld_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR t_attachment.
  REFRESH t_attachment.
  t_attachment[] = it_attach[].
* Describe the body of the message
  CLEAR t_packing_list.
  REFRESH t_packing_list.
  t_packing_list-transf_bin = space.
  t_packing_list-head_start = 1.
  t_packing_list-head_num = 0.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE it_message LINES t_packing_list-body_num.
  t_packing_list-doc_type = 'RAW'.
  APPEND t_packing_list.
* Create attachment notification
  t_packing_list-transf_bin = 'X'.
  t_packing_list-head_start = 1.
  t_packing_list-head_num   = 1.
  t_packing_list-body_start = 1.
  DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
  t_packing_list-doc_type   =  ld_format.
  t_packing_list-obj_descr  =  ld_attdescription.
  t_packing_list-obj_name   =  ld_attfilename.
  t_packing_list-doc_size   =  t_packing_list-body_num * 255.
  APPEND t_packing_list.
* Add the recipients email address
  CLEAR t_receivers.
  REFRESH t_receivers.
  t_receivers-receiver = ld_email.
  t_receivers-rec_type = 'U'.
  t_receivers-com_type = 'INT'.
  t_receivers-notif_del = 'X'.
  t_receivers-notif_ndel = 'X'.
  APPEND t_receivers.
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
            document_data              = w_doc_data
            put_in_outbox              = 'X'
            sender_address             = ld_sender_address
            sender_address_type        = ld_sender_address_type
            commit_work                = 'X'
       IMPORTING
            sent_to_all                = w_sent_all
       TABLES
            packing_list               = t_packing_list
            contents_bin               = t_attachment
            contents_txt               = it_message
            receivers                  = t_receivers
       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.
* Populate zerror return code
  ld_error = sy-subrc.
* Populate zreceiver return code
  LOOP AT t_receivers.
    ld_receiver = t_receivers-retrn_code.
  ENDLOOP.
ENDFORM.

Similar Messages

  • SPOOL_INTERNAL_ERROR spool overflow when submitting the same program

    I am submitting the same program via job with different seletion screen values after JOB_OPEN, and then SUBMIT statement and JOB_CLOSE FM. But this job get cancelled with message "ABAP/4 processor: SPOOL_INTERNAL_ERROR" . The submit is as follows:
    SUBMIT (sy-repid) USER sy-uname
             VIA JOB 'ZTP_SAl_REG_MONITOR_JOBS'
             NUMBER l_jobcount
             TO SAP-SPOOL
             SPOOL PARAMETERS fp_user_print_params
              NEW LIST IDENTIFICATION 'X'
             WITHOUT SPOOL DYNPRO
             WITH rb_monit EQ 'X'
             WITH s_jobcnt IN s_jobcnt
             WITH p_date EQ p_date
             WITH rb_row EQ rb_row
             WITH rb_col EQ rb_col
             AND RETURN.
    Is it possible to use the same program to be scheduled....Let me include that the submit is happening with rb_monit = X and it has separate branch...so infinite looping can not happen.

    Hi Sumit,
    I hope that the flag is ensuring that it doesnt go into infinite loop. You may wish to check that once bcz Spool overflow seems to be bcz of infinite loop or bcz of layout issue.
    Goto SP01 in the same client where you have scheduled the job.
    Check the spool no. which was generated bcz of the job.
    Double click on the STATUS of the spool ( it should be in red background color).
    System will give a popup with status details.
    Again double click on the status. System will again give a popup.
    The popup will give the details of why the spool ran into errors.
    Also check the layout.
    Thanks,
    Best regards,
    Prashant

  • Spool request

    Hi experts,
    I have created an error log in the background using JOB_OPEN  JOB_SUBMIT and  JOB_CLOSE. A job is being processed successfully and a spool is also being created with the job and all the records that are being read in the report are being displayed in the spool. this should not happenas it will affect the performance only the messages encountered in the report should be displayed. can you please help me put with this?
    Thanks in advance,
    Nishitha Reddy
    Moderator message: please use more descriptive subject lines from now on.
    Edited by: Thomas Zloch on Nov 9, 2010 3:02 PM

    Hi Experts,
    I have tried by checking SY-BATCH = 'X' the data is being displayed in the output screen. i want the messages to be displayed in the spool and all the records that are being written to the output should not be displayed in the spool. can you please help me.
    Thanks in advance.
    Nishitha Reddy

  • Spool list recipient in SM36

    Hi All,
    I am using the FM's JOB_OPEN, JOB_SUBMIT and JOB_CLOSE in a report program to create batch jobs.
    Now some of the batch jobs have DL's  to which spools of the batch jobs are sent and are maintained in 'SPOOL LIST RECIPIENT' button of SM36.
    In the report which uses the above FM's to create batch job, is it possible to include this functionality.
    That is when a batch job is created from my report program, the spool list recipient should have the DL provided in my report program.

    Hi Arun,
    Refer This Link
    http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    Thanks.

  • How to get spool no created when a job is created

    Hi,
    I am creating a Job using Job_Open,Job_Submit and Job_Close FM's
    The job created will have a spool associated.
    How can i programmatically find out spool number created ?
    Pls Help!!
    Answers will be rewarded.
    Rohan

    hi,
    use the below fm
    GET_JOB_RUNTIME_INFO Get the current job number from a program. Also returns other useful info about the current job.
    regards,
    pavan t

  • Display title in spool generated in background processing of report

    Hi All,
    I am working on a report which uses splitter container to display report details as title in one part of the container and ALV report (using OOPS ALV) in the other part when executed in foreground.
    I have referred the following links and added code accordingly to execute the report in background.
    OOps ALV in background
    CNTL_ERROR while running a report in background mode
    But in the spool that is generated, I am able to see only the ALV output in the form of classical report without the report details as title. To add the tilte I have tried using "top_of_page" event, but it is not working. Please let me know how this can be achieved.
    Thanks & Regards,
    Ankit

    Hi Sandeep,
    Check if you can create batch job to run for S_ALR_87013558 using SM36
    The Program name is GP8YTY7TBR1TYRPCIPKAC6X9GZG
    Please check with ABAP.
    Regards,
    Nitin

  • Spool file problem,Can't see the query in output file.

    Hello ,
    I am facing a very old school kind of problem .....about spool file ....
    The scenario -
    I have made a script by name DB_Status_checkup.sql which i want to fire on the database to check the database status. In this script their are many queries regarding the data dictionary views to know about the database. It consist of nearly 25-30 different select queries..
    The problem is i want to make a spool file of the output of that query....i want to see the SQL query & the output below in the spool file, so it will be easy for me to judge the result. But i can't see the SQL query , i can only see the output , & in so many queries it all gets jumbled up....even i can't understand where the next output starts ...
    Sample of my SQL Script ....
    clear buffer
    spool D:\DB_status.txt
    /*To check the database startup time*/
    Select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
    from v$instance
    .........next query n so on....
    spool off;
    In the output pf the spool file at D:\db_status.txt..
    Startup time
    08:25 16-JUL-10It shows only the output of the query in the spool file not the query,
    What should i do to get the SQL query as well as the output of that query just below it in the spool file ???
    Please suggest if you have anymore ideas , regarding this .....
    ORACLE 10g R2
    Windows Server 2008
    Thanks in advance ...

    Why don't you just use database control, instead of re-inventing the wheel?
    Apart from that, SQL*Plus has it's own reference manual, which you apparently refuse to read.
    The answer to your quiz/doc question is
    set echo on
    Sybrand Bakker
    Senior Oracle DBA

  • How to find Spool number for a 2 steps background job.

    Hi All,
    How to find spool number (and also the background job name ) for a 2 steps background job.
    in the table TBTCO i can see step numbers but i dont get the spool number. Is there any link between TBTCO and TSP01.
    Also after getting the spool number i need to drill down on ALV report. I hard coded the spool number and was able to drill down using BDC and call transaction but when i press back button it is not returning to the ALV report.
    Thanks,
    Shiva.

    Which one creates the spool? (first one I guess)
    What kind of spool? (WRITE, sapscript, smartform, pdf...)
    Do you use special statements like NEW-PAGE, or other things?
    Are you sure that the spools are generated by these jobs? (did you compare the spool generation times and job run dates to be sure...)

  • GLM - Spool management - Slow printing standard  - High Volume Printing??

    I've seen a couple OSS notes referencing performance on Spool management for GLM, but I need to ask about HVP.. I was told this was the only way to allow the printing of sequence or serial number processing to print quicker..
    Here is my issue.  We have used serial numbers symbols on our labels with the following configuration to allow the label to print in sequential order based on the number of labels needed.
    Meaning if we have 10 labels to print, we use this serial number symbol to print 1 of 10, 2 of 10, 3 of 10, etc...
    Here is the symbol code we have on our template.
    @TD_LBLSRN(ID=02EHS_SERNO1)  of @TD_SRNEND(ID=02EHS_SERNO1)
    Now by doing this, it slows the printing of the label considerably. Without this, labels print 1 every 2 seconds or so, but with the serial number sequence, it prints 1 label every 20-30 second and we print thousand of labels at a time.  So it takes a really long time.. The issue is the labels and the serial number sequence is being spooled up and basically printing a label after WWI process the 1 of 10, then processes 2 of 10, then etc...
    How can we speed this up?  I heard HVP, but this solution is extremely expensive.. Is there any other solution?

    Hello Keith,
    GLM replicates the static part of the label and adds after wards the sequence number to each generated page. This is needed; because GLM uses the MS Windows standard print technology which does not foresee optimized sequence numbering. The advantage is that it will work for all printer types with a MS Windows printer driver but the disadvantage is the increasing data volume and the longer processing times.
    The HVP functionality is available for thermo transfer printers of Zebra, Pago, Tec or printers which can understand the ZPL printer language. The HVP is part of the GLM pre-defined service from SAP since January.
    The HVP functionality will pass the sequence number parameters to a special printer driver which uses special functionality of the printer hardware to do the sequence numbering. The printer driver load the static part of the label to the printer first and send then only the sequence number as a dynamic part for each copy. So finally this will reduce the data volume nearly to one copy of your label.
    I donu2019t think that there is really a good technical alternative to HVP at the moment but some MS Windows printer drivers have the possibility to send hardware commands in advance of a print job. This might be an option to initiate a sequence number counter on the printer hardware an doing the numbering in that way. I never tried it in this way but this is the only option without HVP I see at the moment.
    Best regards
    Michael Veit

  • SQL*Plus - how to suppress the SQL in a spool file

    This is my SQL*Plus script. I thought I had solved the problem, but it is back now and I don't know what I am missing. But I don't want the query at the top of the file.
    SET SERVEROUTPUT ON
    SET MARKUP HTML ON -SILENT
    SET ECHO OFF
    SET PAGESIZE 33
    SET TERMOUT OFF
    Spool C:\DuaneWilson.xls
    SELECT *
    FROM RPT_DS1_CNT_CAT_vw
    WHERE ROWNUM <=100
    ORDER BY CVBI_KEY;
    SET MARKUP HTML OFF
    SET ECHO ON
    SET PAGESIZE 20
    SET TERMOUT ON
    SET SERVEROUTPUT OFF

    It turns out when I run the script with the @ or Start with the file name, there is no SQL put out to the file. But when I just copy the text out of the file and run it at the prompt, the SQL appears in the output file. In reference to the -SILENT, I put that in after the MARKUP statement and got an error. Maybe I don't know where that goes. And I am not sure why there is a difference if it is run as a script or just pasted to the buffer. At least it should be the same in the output file, I would think.

  • Spool not getting generated in OO ALV report

    Hi,
    I developed a report in which we are giving output in same selection screen through OO ALV.
    But,when we are scheduling that report in background,spool is not getting generated.
    Waiting for your reply.
    BR,
    Praveen

    Hi Aparna,
    I tried NEW-PAGE PRINT ON.
    I am pasting source code extract below:
       IMPORT DATA = ME->IT_FINAL2 FROM MEMORY ID SY-CPROG.
        FREE MEMORY ID SY-CPROG.
        CHECK ME->IT_FINAL2 IS NOT INITIAL.
        CHECK LO_DOCK IS INITIAL.
        CREATE OBJECT LO_DOCK
          EXPORTING
            REPID = SY-REPID
            DYNNR = SY-DYNNR
            RATIO = 70
            SIDE  = CL_GUI_DOCKING_CONTAINER=>DOCK_AT_BOTTOM
            NAME  = 'DOCK_CONT'.
        IF SY-SUBRC NE 0.
          MESSAGE 'Error in Docking Control' TYPE 'S'.
        ENDIF.
        IF LO_ALV IS INITIAL.
          TRY.
              LO_CONT ?= LO_DOCK.
              CALL METHOD CL_SALV_TABLE=>FACTORY
                EXPORTING
                  LIST_DISPLAY   = IF_SALV_C_BOOL_SAP=>FALSE
                  R_CONTAINER    = LO_CONT
                  CONTAINER_NAME = 'DOCK_CONT'
                IMPORTING
                  R_SALV_TABLE   = LO_ALV
                CHANGING
                  T_TABLE        = ME->IT_FINAL2.
            CATCH CX_SALV_MSG.
          ENDTRY.
      CLEAR LR_COLUMN.
          TRY.
              LR_COLUMNS = LO_ALV->GET_COLUMNS( ).
              LR_COLUMN = LR_COLUMNS->GET_COLUMN( 'KSCHL' ).
              LR_COLUMN->SET_LONG_TEXT( 'Cond.Type' ).
    CATCH CX_SALV_NOT_FOUND.
          ENDTRY.
    NEW-PAGE PRINT ON.
            LO_ALV->DISPLAY( ).
            NEW-PAGE PRINT OFF.
    I am not getting spool list while executing it in background.
    BR,
    Praveen

  • MC.9 - spool is not getting generated

    Hi Experts,
    When i execute MC.9 transaction in foreground i am able to view the report output. but when i execute it in background spool is not getting generated.
    Please provide me any solution for this issue.
    Thanks
    Pallavi

    Hi
    I have checked list of versions in the 'select version' button.  But my question is when i select 'execute in background', it is not generated spool. Is there any relation between spool and version. If there is, please explain me what it mean and how it relates.
    As i am new to this module i wanted to know it, in brief detailed.
    Thanks
    Pallavi

  • Is it possible to have Multiple Spool requests in one batch job overview?

    Hi,
    While running one of my z program in back ground, there are two spools generated (one by write statement and one by OPEN_FORM statement and both the spools are available in SP01 Transaction), but when i see the job overview in transaction SM37, I only see one spool request (that of the last spool request). Can any body in the group please tell me is it possible to see multiple spool requests in the job overview of one Abap program and if yes, how?
    Thank you.
    Abinash

    Hi Jayanthi,
    Thank you for the link. But probably that discussion was also an unsolved one.
    Anyway, does any one in the group think that display of multiple spools per one step job is dependent on client / SAP Server setting? Because as evident from the chain of mails in the link provided by Jayanthi, some people say that they see multiple spool requests for one program in batch mode job overview (SM37)? If yes, can some body tell me the required configuration?

  • HP P1606dn network printer spools jobs but won't print without a "form feed"

    I recently changed by HP P1606dn printer from a USB connection to my HP desktop running Windows 7 (64bit) to a network connection.  The objective was to allow my Mac (OS 10.6.8) to print to this printers as well via the network. 
    When I first installed the printer it worked fine.  Then I installed the HP drivers on the Mac, and it too worked fine and continues to work fine.  However, my Windows 8 desktop stopped printing.  It appears to spool the print jobs correctly and they show up in the queue as actively printing.  However, the only way to get them out is to go over to the printer and press the "form feed" button (button showing page with down arrow).  Then the HP test page will come out followed by the desired print job.
    I've tried disabling "bi-directional support" in the "ports" tab under "printer properties" but that did not help.
    Any helpful advice appreciated!
    Brent

    Did you connect the USB cable when doing the firmware update?
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • Acrobat XI Pro update / print spooler problem

    Running Acrobat XI Pro on Windows XP Pro 5.1 sp 3..
    -- Acrobat tries to update 11.0.02. I see the icon in the Windows tray for a long time. I open the Acrobat Updater, and it is stuck on "Service to stop:  Print Spooler."
    -- It was like that for about a day ... maybe two... then it gave the 'Install Failed" error, and, if I remember correctly, gave the error message 1602.
    -- When I looked up the error, the stated remedy was to try again but using the Help --> Check for Updates menu item inside Acrobat (instead of letting automatic updater do it).
    -- So I did that yesterday evening, about 10 hours ago, and currently, the install is still stuck on "Service to stop: Print Spooler."
    This actually happened once before some months ago, and I forget what I did to fix or end the situation... but whatever that was, I'm not finding it now.
    Help?

    Please follow the steps mentioned here: http://helpx.adobe.com/acrobat/kb/error-1602-update-acrobat-reader.html
    ~Deepak

  • HP Laserjet Pro CM 1415fn crashes and spooler service stops

    Hi Guys, 
    Please assist. I have an HP Laserjet Pro CM1415fn multifunction printer installed on an XP OS. Recently the printer started to print giberish when I tried to print from any application (word, notepad, wordpad, image and fax viewer etc). I also noticed a popoup error message - Run a DLL as an App error. I unistalled the printer software and drivers and restarted, this after running a scan with malware bytes (no detections), and I was unable to get the printer to re-installed after. I keep getting a RPC service not found and Spooler subsystem App has encountered a problem and needs to close. I have checked that all services are running, but nothing is working. After much prodding and poking, I eventually noticed that all errors are directly associated with hppccompio.dll. Even explorer crashes when I try to access printer properties. What should I do? I hope ifnormation was sufficient enough. Also, printer is connected via USB.

    Hi Opp1,
    Welcome to the HP Forums, I hope you enjoy your experience!
    I understand you are unable to reinstall the printer software.
    I will be happy to help you.
    The print spooler is part of the Windows operating system and if it doesn't stay running the printer software won't install or print.
    You could try the following steps to see if this will resolve the issue.
    Normally with spooler problems the first thing to do is to clear the print queue.
    Open a Run window (Windows Logo key+R), type cmd and press Enter.
    Now type these commands, which are in capitals for clarity:
    NET STOP SPOOLER and press Enter
    DEL %SYSTEMROOT%\SYSTEM32\SPOOL\PRINTERS\*.* and press Enter
    NET START SPOOLER and press Enter
    EXIT and press Enter
    If you are still having issues with the print spooler stopped then right click on the start button, left click on explore, open the windows folder, open system32 folder, open the spool folder, open the printer's folder, then delete everything on the right window.
    Then go back and try and start the print spooler again.
    Run a full uninstall of the printer software. Disconnect the USB cable.
    To uninstall from CD:
    Go start and select computer.
    Right click on the CD for the printer and left click open in a new window.
    Double click on uninstall.
    Uninstall printer from the C Drive.
    Go to start, computer, c:, windows, program files or program files x86, HP, printer name. Double click uninstall. Restart the computer.
    Check to make sure the print spooler is running.
    Ran the installation again. Don't connect the USB cable until prompted.
    If the print spooler stops again you will need to contact the computer manufacturer to resolve this issue.
    Hope this helps.
    Thank you for posting on the HP Forums.
    Have a great weekend!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for

  • Recording audio from iPad to Mac

    I have an iPad app that allows you to download different audio presentations.  However, the audio is trapped in the iPad app, which means I can't listen to it anywhere but the iPad.  I'd like to transfer this audio to an MP3 so I can listen to it on

  • Which MacBook Pro is best for an online MBA program and face to face classes?

    I'm going back to school for an MBA and going to pick up some certifications first.  I'll be attending online classes and some face to face classes.  How much MacBook Pro do I need?  I'm in the HR community, and my MBA is in Global Managment if that

  • Checking multiple conditions in a standard if clause

    Greetings all, I have a PO Template that I want to print a Note at the bottom of each Line (inside the table having the group_by) when the CANCEL_FLAG=Y. But I want to print one Note if the QUANTITY>0 and a different Note if the QUANTITY=0. My curren

  • Trackball not working on N5901

    Hi, trackball suddenly died on my mini wireless keyboard N5901 (probably grease from hands), but everything else works fine, so I was wondering is there a way to disassemble keyboard and clean the trackball? Ps So far I have found 3 screws, one behin

  • Copy vs. Download Cloud App Files

    I live in the boonies and have very limited bandwidth (my ISP is an T-Mobile hotspot). I have an MacBook Pro Laptop and a iMac desktop. Both running Mountain Lion. I recently subscribed to the Adobe Creative Cloud. I took my laptop to a friends house