Spool file of a background job

Hello Friends,
In an SAP system, there is a background job which creates a spool file.
If there is no printer configuration done on the SAP server, how to find the location of this file in the filesystem?
Thanks & Regards,
Kunal Patel.

Hi,
Thanks for your reply.
I was able to locate the file in the filesystem.
Actually I changed a setting in the printer LOCL so that the spool is stored in Global directory.
But now there is a new problem.
The spool file in the filesystem is in a very different format as below:
Could you let me know how to change the format of the spool?
Command executed:       more : /usr/sap/DHS/SYS/global/100SPOOL/00010000026674 :
Target host:            unix0006
COL0N COL0H05.03.2008
4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
5
5      5Lene
5      5Gitte
5      5Orla Bech
5      5Janni                                    5We
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 -  P                                              COL0N COL0H05.03.2008
4 4 4 4 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
5 ú    5
5 ú    5
5 ú    5
Rgds,
Kunal.

Similar Messages

  • Create a Excel File in a Background Job

    Hi SAP Gurus,
    I am trying to create an Excel file using a background job but it is not possible.
    In foreground mode i get a file.
    Can someone give an explanation for that? Or someone have a workaround ??
                   Best Regards
                          João Fernandes

    João,
    If you have successfully demonstrated that SAP can write an output to an excel file, then it can do this in background as well as foreground.  The problem is probably not with the fact that it is 'Excel', but that it is trying to write a file in the background to a destination file location that is unknown to the system.
    Generally, without special setup, SAP software is unaware of most file locations that are outside of the SAP system itself.  When you log on through the SAP Gui, the SAP back end can "learn" about certain additional file locations through your PC setup and the SAPGUI session.  This 'knowledge' is lost as soon as you commit your program to a background process.
    Talk to your Basis person, and tell him what you wish to do.  This functionality is possible to do, but probably not in the way you are expecting.
    Best Regards,
    DB49

  • Problem in getting spool number of a background job.

    Hi all,
    In a Z program I am calling a standard program to run as background job. I need to get the report o/p of the standard program. For this I need the spool no of the background job. Now I am querying on table tbtcp by giving jobname. Program name and run date and getting the spool no. but the cache is that the table is not getting updated with the spool no as soon as the job finishes. It is taking some time to update the table ( The time depends on the no of background jobs scheduled. ). So of we query on the table immediately after the background job finishes we are getting spool no as 0. so I am unable to read the spool into Internal tables. Even the table tsp01 is also behaving in the same way. ( it is taking time to update ) .
    Any pointers to this will be appreciated .
    Regards,
    Shiva....

    This is some prototype that I put together from separate pieces, so it looks funky, but might be helpful. The first step is to SUBMIT the program with EXPORTING LIST TO MEMORY. The next FM reads the list from memory and the next one (optional) converts it to a text format. You might want to search for other FMs in SE37 by 'LIST*'.
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT RPR_TRIP_HEADER_DATA
    USING SELECTION-SET 'OLD_LIST'
    EXPORTING LIST TO MEMORY
                  AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    types : t_txt(1000) type c.
    DATA: i_txt2 type table of t_txt,
    i_txt type list_string_table.
    call function 'LIST_TO_ASCI'
    EXPORTING
    *   LIST_INDEX               = -1
       WITH_LINE_BREAK          = 'X'
    IMPORTING
       LIST_STRING_ASCII        = i_txt
    *   LIST_DYN_ASCII           =
    TABLES
       LISTASCI                 =  i_txt2
       LISTOBJECT               = list_tab
    EXCEPTIONS
       EMPTY_LIST               = 1
       LIST_INDEX_INVALID       = 2
       OTHERS                   = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Also check this links:
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/spool-number-of-previously-printed-abap-list-635173#

  • Urgent : Want to know table stores spools created by a background job

    Actually background job executed by me creates 2 spool requests
    table - tbtcpv holds only the 1 spool
    Can any one tell me the table which stores all the spool created by the background job ?
    Need urgent help.....

    Guru,
    Try with below tables
    TBTCO
    TBTCO
    TBTCP
    TBTCR
    TBTCS
    TBTCJSTEP
    TBTCO
    TBTCP
    Pls. reward if useful..

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

  • Spool not generated in BAckground Job

    Hi,
    I am trying to schedule RSNAST00 in a background job. My problem is that when the job gets finished i cannot see a spool for the output, any pointers to this issue will be appreciated.
    Regards,
    Sharadendu

    Go to transaction SM37 and check job log.
    It is possible that something is going wrong in your program. I would suggest you to debugg background job.
    To debugg just select job in SM37 and in command window(Where we type T codes) type JDBG and press enter. This will open debugger. Press F7 for approx 4-5 times. Now your program will be opened in debugg and you check why spool is not generated.
    let me know ig this helps.
    Regards,
    Jigar Thakkar.

  • WHICH TABLE STORES SPOOL REQUEST GENERATED BY BACKGROUND JOB ?

    Background job is generating multiple request.
    i am not able to find the table which stores all the spool request for a particular background job.

    i know the table for spool request :  TSP01
    But how should i link it to background job name ?
    i want the link between background job name and spool request generated by it......
    TBTCPV is the view but it stores only one spool request.....rather than multiple spoolreq generated by background job..

  • Not generating a spool output in the background job

    Hi Team,
    I have an alv report and If I schedule the program using SM36 transaction it is not generating the spool ouput.
    If I run the same program in background mode when we use se38 and select execute in background in program menu and it works successfully and generates alv grid list in the spool output.
    But, user wants to schedule the job in sm36 and check the same output in spool. Please advise why it is not generating.
    Note:I am using the cl_salv_table=>factory method to generate the output.
    Thanks in advance,
    Sunil Kumar.

    This is not really an ABAP question and you might want to ask your Basis admin for assistance. But I believe that spool will not be generated if you don't specify print parameters for a step. When you define the step in SM36, make sure to specify the print parameters.

  • Spool not generated for background job

    Hi all!
    I have a Zprogram that does some validation and submits the data to transaction ME59 using SUBMIT statement. The program is running fine in foreground.When it is scheduled for background, the spool is not getting generated. I know that if a program contains SUBMIT statement, the spool will not be generated when run in background. But is there a way to make it work? The client requires the exact output that we get in foreground.

    Hi,
      All spool requests will be stored in TSP01 table
    TSP01 - Spool Requests
    field name for Spool request number is RQIDENT
    Hi,
    Take a look at OSS Note 422136 which states:
    "2. You can only store one spool request even if a step generates several spool requests during processing. The application is responsible for a "spool overview" in this case. If a step generates several spool requests during processing, only one request can be stored. In this case, the application report should issue the number with a message when writing a spool request so that it is then displayed in the job log."
    Also take a look at OSS Note 519059 which further supports the case that you must capture the individual spool numbers as they are being created (i.e. within the job step's program). The note contains the following:
    8] Question: How are the spool requests assigned?
    Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview
    <b>Reward points</b>
    Regards

  • Uploading xml file in a background job .

    Hi Experts ,
    I am uploading a xml file from application server to internal table .
    While uploading from presentation server I get the value of stream as ( first few lines )
    Case 1 :
    ?<?xml version="1.0" encoding="utf-16" standalone=
    "yes"?><WPUBON01>##  <IDOC BEGIN="1">##    <EDI_DC
    40 SEGMENT="1">##      <TABNAM>EDI_DC40</TABNAM>##
    but while uploading from  application server , I get :
    Case 2 :
    <?xml version="1.0" standalone="yes"?>##<WPUBON01>##  <IDOC BEGIN="1">##    <EDI
    DC40 SEGMENT="1">##      <TABNAM>EDIDC40</TABNAM>##      <MANDT>108</MANDT>##
    Difference is of  unicode 16 as seen in file from presentation server .
    As a result File from Presentation server is getting uploaded in internal table , but not from Application Server . In this case internal table is coming blank .
    I am using :
          CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
              EXPORTING
                text   = stream
              IMPORTING
                buffer = xstring
              EXCEPTIONS
                failed = 1
                OTHERS = 2.
            IF sy-subrc  = 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    here xstring is coming blank when you use same file from application server .
    *Extract data from xsting to internal table
            CALL FUNCTION 'SMUM_XML_PARSE'
              EXPORTING
                xml_input = xstring
              TABLES
                xml_table = it_data
                return    = it_ret.
    I am getting error it it_ret as :
    line   1 col   1-unexpected symbol; expected '<', '</', entity reference, character data, CDATA section, processing instruction or comment
    How to get file like case 1 . or how to convert to utf-16 ?
    I am using :
    OPEN DATASET l_filename FOR INPUT IN  BINARY MODE    .
    DO.
    READ DATASET l_filename INTO l_xml_line.
    IF sy-subrc EQ 0.
    APPEND l_xml_line TO l_xml_table.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CLOSE DATASET l_filename.
    LOOP AT l_xml_table INTO l_xml_line.
    c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
    replacement
    = space ).
    c_conv->read( IMPORTING data = l_content len = l_len ).
    CONCATENATE l_str1 l_content INTO l_str1.
    ENDLOOP.
    Help please ......
    regards ,
    SA

    Hi Alpana ,
    Thanks for the reply .
    I already am uploading data in internal table . If you see through my question ,
    My problem is modify  the error in xml file uploaded in  l_xml_table through read dataset .
    My file has been uploaded   from application server as 
    <?xml version="1.0" standalone="yes"?>
    <WPUBON01>
      <IDOC BEGIN="1">
    This file is getting changed while uploading from presentation server as 
    ?<?xml version="1.0" encoding="utf-16" standalone=
    "yes"?><WPUBON01>##  <IDOC BEGIN="1">##    <EDI_DC
    40 SEGMENT="1">##      <TABNAM>EDI_DC40</TABNAM>##
          <MANDT>108</MANDT>##      <DOCNUM>3C10000001
    notice the addition   'encoding="utf-16" '  .
    How to achieve this addition .
    If i am uploading it frompresentation server it is getting uploaded in internal table successfully , but not from application server
    so that i can parse this xml file into xstring successfulyy to get it into internal table thru function module
    CALL FUNCTION 'SMUM_XML_PARSE'
              EXPORTING
                xml_input = xstring
                xml_input = l_string_output
              TABLES
                xml_table = it_data
                return    = it_ret.
    Please help me in hanging the file stream .
    Regards ,
    SA

  • Download ALV result list as excel-file in background job

    Dear Experts,
    I am looking for a possibily to download the result of an ALV based report as excel-file in a background job. Surely there is a standard function which can be used or at least some hints how to implement this. I searched the forum but couldn't find a thread which was covering this problem exactly.
    Thanks in advance
    Benjamin

    Dear Mr. Krapf,
    it is possible to output an ALV list to an Excel file in the background but there are some limitations.
    Please consider the following notes:
    #7925  Graphics, Upload, Download do not work in backgrnd
    #65050 Data types and file formats in files (DATASET) 
    #145073 - FAQ Report Writer: Excel download 
    #569537 - Incorrect data during import into Excel
    #590126  Sending CSV documents up to Release 4.6
    Please be aware that they are all Basis notes. So for more information you might ask in the Basis SDN Forum.
    Best regards, Christin Angus

  • Print spool requests by background job

    Hi,
    we want to print spool requests by a background job. Do you know any abap program to do this.? I search at the programs RSPO... , but i can't find anyone to do this.
    Can anybody help me.
    Regards Oliver

    Hi,
    i found a report for this issue. You can use the report RSPO0015

  • Different filesize for PDF files created in background vs. foreground?

    When I create a PDF file in a background job the filezise is more than 2 times bigger than created with same selection in the foreground?? Why is that? Any suggestions?

    Hi Sachin,
    Thanks for the thread. But it does not help us.
    We should explain the issue of these sizes in little more detail.
    We have a program created for PDF outputs. The PDF form is created in SFP transaction like smartform.
    As you might know that a fucntion module gets created internally for the PDF form similar to a smartform.
    Now during execution, the function modules(for PDF form) returns an parameter called /1bcdwb/formoutput, which has field called pdf. This field holds the entire PDF output in binery format. We use this to create a file on the appliction server. I hope you can guess why the size of the file is bigger to the file that I save the PDF output on desktop from print preview.
    We are looking for a solution on how to reduce this file that gets stored on the application server using the binery data of PDF form.
    Thanks and Regards,
    Kiran Chevuru

  • Export to MS Access in background job

    Hi,
    is it possible in ABAP to export data to MS Access file (.mdb) in background job?
    We have an idea to run external program in RFC mode in .NET - but it requires to have WIndows installed on external machine which is not good.
    /BR / Thank you

    >We have an idea to run external program in RFC mode in .NET - but it requires to >have WIndows installed on external machine which is not good.
    Seems to me the only viable solution.   Otherwise, create your output as a flat file written somewhere on the server (or where the server can see or ftp to), and have your Access app pick it up from there.
    matt

  • 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

Maybe you are looking for

  • I cal crashed. reason: cmd K ("New to do")

    Please help me! my i cal crashed because I wanted to add a note! cmd K ="New to do" I am using it since 1,5 years like a diary. there is much info in it, but it can not be, that this software is not able to take that much info - it is created to do t

  • Is Paragon's "HFS+  for Windows" safe to use in Boot Camp Windows &/or Parallel 8 Windows?

    Is Paragon's "HFS+ for WIndows" safe to use for read+write access to HFS+ drives when running Windows [8] via Boot Camp? Drivers that came with Apple Boot Camp (or maybe Parallels [8]) enable "read-only" access to HFS+ formatted drives from Boot Camp

  • How to keep my place in a list when on shuffle? [iOS]

    I don't really know a way to succintly state my question so I may ramble a bit. Basically, I have a 400+ song, 24+ hour playlist I made for a week-long roadtrip, thinking that since we had less than 24 hours of driving to do we wouldn't hear any song

  • How change change the hue?

    Hello, i make textures for game, and i need change a hue this image: http://prntscr.com/6cmwhx for something like that: http://prntscr.com/6cn1f5(maybe darker a bit) I mean color of this. I tried Layer Blend Modes, Channel Mixer, and Hue/Saturation,

  • Data slice not locking the data for input

    Hi Experts, I have an input ready query and have created a dataslice to lock the data the user will enter in the query, Now when activate the dataslice, the input ready query still allows the user to enter the data and save it. But we dont want the i