Spool data

Dear All,
I can able to retrieve the spool data using the function module RSPO_RETURN_ABAP_SPOOLJOB but this FM display only few columns in the list not all the columns. Please let me know what should I have to do to display all the columns.
Thanks and Regards
Jaiganesh Sekar

Hi,
     For the table Buffer you are using a data type with length 255 char  because of that you are not getting all the columns.
Sudheer. A

Similar Messages

  • How to restrict spool data in the next line in pdf print

    Hi Experts,
    i have spool data which is going to be print in PDF format.
    if line is extented..thenit is prining the in the next line..
    but that next line is not starting after one tab space.
    so how to remove that space.
    can anybody give me help.
    Regards,
    venkat

    Hi,
    output is displaying in pdf file in the give format..
    ex:-
    919   sub     00001      44445       testmater
             ial     final
    here test material is not coming fully in the first line..it is cutting and displaying in 2 lines.
    Regards,
    venkat

  • Spooling data with Header and trailer

    Hi everyone,
    I have a problem in spooling the data.
    I get a .dat file to load into db .That .dat file will be having header,records,trailer.While loading into the db i load only the records .
    I load the .dat file into table using sqlldr with direct= true and parallel=true.
    I load data into one table.header and trailer into one table(Loading into two different tables using three control file each for header,records,trailer to load from same .dat file).But while spooling the data out after some modifications to the table.i need to spool it with the header and trailer.I am able to spool only the records but not header and trailer.
    That header and trailer are in standard form,everytime i get the .dat file.
    Help me how to spool data from a table with the HEADER & TRAILER in the spool file.
    Thanks

    Some may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
    As I see it It depends on your spooling tool.
    Lets assume you are using sqlplus.
    I that case the sql prompt command may serve your purpose
    Alternatively
    select 'header' from dual
    union all
    select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
    union all
    select 'trailer' from dual;may suit.
    However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
    Edited by: bigdelboy on 19-Apr-2009 14:32

  • SAP spool data in PDF

    Hi Friends,
    I am using FM 'CONVERT_ABAPSPOOLJOB_2_PDF' to convert the ABAP spool into PDF data and I am calling FM 'SO_DOCUMENT_SEND_API1' to send the PDF as an attachment in eamil.
    Problem here is, my spool data is getting truncated in the PDF file. Could any one help on this siiue.
    Regards,
    Sasi

    Hello Sasi
    Try to test your spool request number in this standard program and check whether you can able to get the PDF in the right format. Program Name: RSTXPDFT4.
    Regards
    Veera

  • How to spool data into multiple Excel sheet if result is more then 65k rows

    Hi all,
    Wann spool data into multiple excel sheet bocz my resultant no of rows are more then 65k.
    Thanks to all in advance.....

    many choices
    1) migrate to a newer version of Excel
    2) split the files after spooling
    for instance with split
    split -l65000 file.txtor with perl, java, vb or what-so-ever
    3) do more than one report by using rownum
    spool f1
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r<6 ;
    spool off
    spool f2
    select empno,ename  from (select * from (select rownum r,empno,ename from emp order by empno) where r<11) where r>5 ;
    spool off
    spool f3
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r>10 ;
    spool off

  • What file format Oracle Database 11g can spool data w chinese characters?

    Hi,
    I have a batch job that spools data into a text file for further processing but now I have data that contains chinese characters.
    From what I know text file (.txt) cannot support chinese characters.
    Anyone has any idea what file format Oracle Database 11g can spool data with chinese characters?
    Thank you!
    Regards,
    Fel

    I'm not sure this can work with SQL*Plus in character mode on Windows DOS mode. But this should work with SQL Developer: see Re: How to display Chinese characters in Oracle?
    I can also make this work with Linux:
    $ locale
    LANG=fr_FR.UTF-8
    LC_CTYPE="fr_FR.UTF-8"
    LC_NUMERIC="fr_FR.UTF-8"
    LC_TIME="fr_FR.UTF-8"
    LC_COLLATE="fr_FR.UTF-8"
    LC_MONETARY="fr_FR.UTF-8"
    LC_MESSAGES="fr_FR.UTF-8"
    LC_PAPER="fr_FR.UTF-8"
    LC_NAME="fr_FR.UTF-8"
    LC_ADDRESS="fr_FR.UTF-8"
    LC_TELEPHONE="fr_FR.UTF-8"
    LC_MEASUREMENT="fr_FR.UTF-8"
    LC_IDENTIFICATION="fr_FR.UTF-8"
    LC_ALL=
    $ cat chinese.sql
    cat tchinese.sql
    set echo on
    spool tchinese.log
    select * from v$version;
    select unistr('\8349') from dual;
    exit
    $ cat tchinese.log
    SQL> select * from v$version;
    BANNER                                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod               
    PL/SQL Release 10.2.0.1.0 - Production                                         
    CORE     10.2.0.1.0     Production                                                     
    TNS for Linux: Version 10.2.0.1.0 - Production                                 
    NLSRTL Version 10.2.0.1.0 - Production                                         
    SQL> select unistr('\8349') from dual;
    UNIS                                                                           
    草                                                                              Edited by: P. Forstmann on May 27, 2009 10:30 AM
    Edited by: P. Forstmann on May 27, 2009 10:33 AM

  • Increse the size of font in abap spool data

    Hello all,
                   I searched on SDN but could not find the proper answer for the same.I have developed  a program which generates a spool (ALV report) and from spool it downloads data in PDF format.it is working fine.but when i see that PDF file,font size is very small.I need to increase it.If i can increase the font size in spool data then i think it will be possible.Can anyone suggest me how to do that?
    Regards,
    Soniya S.

    Hi,
    Font Size in Spool cannot be changed.
    Regards,
    Sakshi

  • What is an appropriate method to use spool data for further processing?

    Hello SCN!
    First of all, i am new to both: ABAP & SCN. So please be considerate
    I have a given spool and want to search for specific error lines in it to use the information for futher processing. I already serached for answers, but maybe with the wrong keywords. Therefore i have some questions:
    What is the basic principle spools are stored in the SAP-System? I already found the tables tsp01, tsp02... but i dont understand the basic concept. For example i dont know where the spool content itself is provided.
    What is the best way to get spool data in my ABAP program? I testet RSPO_RETURN_ABAP_SPOOLJOB with a positive result, but i am not sure if this is a good way for large spools. And maybe there are better ways i would be pleased to hear.
    Is it common to use spools in the way i plan it, or must i rethink my approach. Catch my lines in the spool generation process for example, but this would be pretty hard in my concrete case...
    I am looking foreward to your suggestions and i am thankful for every input.

    What is the basic principle spools are stored in the SAP-System? I already found the tables tsp01, tsp02... but i dont understand the basic concept. For example i dont know where the spool content itself is provided.
    Spools and information on those are stored in database and sometimes in file system (AL11)
    Header entry in table TST01 (TemSe objects)
    Object associated with the header entry; it can be stored in the file system or in the database table TST03 (TemSe data of the object)
    Entry in table TSP01 (spool requests)
    Entry in table TSP02, if output requests exist
    What is the best way to get spool data in my ABAP program? I testet RSPO_RETURN_ABAP_SPOOLJOB with a positive result, but i am not sure if this is a good way for large spools. And maybe there are better ways i would be pleased to hear.
    This FM will perform well for ABAP list, and you may get problem with spools generated by tools like Smartforms or Sap Script
    Is it common to use spools in the way i plan it, or must i rethink my approach. Catch my lines in the spool generation process for example, but this would be pretty hard in my concrete case...
    For error log processing, look at tools related to a transaction as SLG1, and documents like Create application log. Use of spool report if manual processing expected.
    Regards,
    Raymond

  • Download complete (!) spool data (cvs)

    Hello ABAP-community,
    i want to download the whole spool data (gt 10 pages) to excel. I executed an application in background task. When looking for the results via sm37, i find spool data. Opening the spool data i fined 'only' 10 pages of data. I know i can expand properties, but when extending to 1000 pages i receive a warning (Displaying &1 pages could cause a memory overflow) and risk a shortdump.
    When using the standard export to ms excel, the application only exports the data shown in spool viewer (e.g. page 1 to 10).
    Question is, is there a possibility to download the complete spool data (e.g. page 1 to n; n = 1000 or gt 1000)
    Answers will be rewarded.
    Thanks in advance!
    g

    Question 1 : 50 M records can be easily handled - we have taken dumps of about 7 Crore records - which is about 70 M ..
    Make sure you have the space available in the disk for the same.
    Moving such big files around even after they are zipped is a big task - plan for it if you intend to do anything with these files.
    The most reliable mentod to dump this file is using LISTCUBE.
    Question2 : Getting the delta alone out - preferably have a DSO inbetween that has only the latest request and dump that data out ..
    But what would you want this for ??

  • Read spool data and send it through e-mail as .txt or .xls attachment

    Hi All,
    I have to read the spool data and send it via e-mail as .txt or .xls attachment. I have used FMs LIST_TO_ASCI, RSPO_RETURN_SPOOLJOB and SO_SOLITAB_TO_SOLIXTAB. I am using FM SO_DOCUMENT_SEND_API1 to send e-mail.
    My problem is, the text file being sent is not showing entire data. It's getting truncated after 255 characters. Is this a standard? If yes, then is there any work around for it?
    Alternatively, I can send the file as excel attachment. How can this be done?
    Thanks,
    Ashwini

    You will have to convert string to Xstring and then to binary to acheive this.
    Check this wiki to send a mail attachment with more than 255 characters.
    [https://wiki.sdn.sap.com/wiki/display/Snippets/Tosendamailattachmentwithmorethan255charactersinaline]
    Vikranth

  • Cannot Spool Data to Host Spool

    Hi,
    I am getting the following CCMs Alert
    Cannot Spool Data to Host Spool
    I checked the RZ20, but that information in RZ20 is not much usefull
    SM21 is also not having information for the same
    Please let me know the path of whre i can see the log file of this error.Pls help

    SP12 for TEMSE...
    You can check the status of you SPO process in SM50
    Regards
    Juan

  • Sqlplus – spool data to a flat file

    Hi,
    Does any oracle expert here know why the sqlplus command could not spool all the data into a flat file at one time.
    I have tried below command. It seems like every time I will get different file size :(
    a) sqlplus -s $dbUser/$dbPass@$dbName <<EOF|gzip -c > ${TEMP_FILE_PATH}/${extract_file_prefix}.dat.Z
    b) sqlplus -s $dbUser/$dbPass@$dbName <<EOF>> spool.log
    set feedback off
    set trims on
    set trim on
    set feedback off
    set linesize 4000
    set pagesize 0
    whenever sqlerror exit 173;
    spool ${extract_file_prefix}.dat

    For me, this is working. What exactly are you getting and what exactly are you expecting?
    (t352104@svlipari[GEN]:/lem) $ cat test.ksh
    #!/bin/ksh
    TEMP_FILE_PATH=`pwd`
    extract_file_prefix=emp
    dbUser=t352104
    dbPass=t352104
    dbName=gen_dev
    dataFile=${TEMP_FILE_PATH}/${extract_file_prefix}.dat
    sqlplus -s $dbUser/$dbPass@$dbName <<EOF > $dataFile
    set trims on
    set trim on
    set tab off
    set linesize 7000
    SET HEAD off AUTOTRACE OFF FEEDBACK off VERIFY off ECHO off SERVEROUTPUT off term off;
    whenever sqlerror exit 173;
    SELECT *
    FROM emp ;
    exit
    EOF
    (t352104@svlipari[GEN]:/lem) $ ./test.ksh
    (t352104@svlipari[GEN]:/lem) $ echo $?
    0
    (t352104@svlipari[GEN]:/lem) $ cat emp.dat
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT      ANALYST         7566 09-DEC-82       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 12-JAN-83       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    (t352104@svlipari[GEN]:/lem) $

  • Extra space adding during spool data into text file

    I'm using sql developer to query oracle tables. I can export data using GUI of sql developer, but I wish to use spool query to export the data. Using below query, I was able to export the data to specified location, but my final text file consist of additional spaces after each line. These additional spaces between each line is causing an error to upload the text file in different location.
    Did any one face have this issue? Below is my query
    set head off
    SET FEEDBACK OFF
    SET ECHO    OFF
    SET TRIMSPOOL ON
    SET TRIMOUT ON
    spool c:\test.txt
    select cast(memberid||',12'as varchar2(20))
    from abc;
    spool off
    set head on
    set ECHO on
    i'm using trimspool, and trimout, but it is not removing any blank spaces.

    Sorry, I changed my export.sql to the query you provided.
    SET HEAD OFF FEED OFF ECHO OFF
    SET LIN 120 PAGES 0 TRIMS ON
    SPOOL c:\test.txt
    SELECT memberid || ',12' FROM abc;
    SPOOL OFF
    But,the spool query is still adding additional spaces making length of each line 43 characters in final text file output.

  • Problem in collecting Spool data into internal table

    Hi ,
    i need to download  spool request data into internal table,
    after collecting i need to loop it and delete some records,
    for this i am using  Fm  RSPO_RETURN_ABAP_SPOOLJOB
    but getting some extra spaces and lines,unable to get right format.
    please help me in this issue to prepare internal table like normal internal table with spool id.
    Regards
    sarath

    Hi ,
    Thanks for the reply,
    My requirement is like i need to collect all the records from the spool to Internal table and
    after that based on one field in the internal table i have to separate error records by deleting sucess records from that internal table(from spool),
    for that i have to loop the internal table and need to count the error records, after that download to excel and mail functionalities
    required for that .
    so please help me in this.
    Regards
    sarath

  • How to write stored procedure to spool data into file

    Hi ,
    We get differnt excel sheets of differnt products.
    We upload data from excel sheet to database . After uploading data , I run Preprossor (sql script) to check the data
    This preprocessor script contains several select statements that query different tables in database .the output is spooled into a cvs file .
    I need to change this script into a stored procedure and spool the output to cvs file.
    File spooling should be done inside the stored procedure so that if I call this stored procedure from java program ,or any concurrent program,its output is .cvs file and in parameter should be productname.
    But inside the stored procedure , we cannot spool the data to some .cvs file . Is any way.I do not want to spool to file when calling.It should be inside stored procedure.
    Or do I need to create a table and insert all the select statements output into it .
    Here is the sample preprocessor script.
    spool Graco_Product.csv
    set head off
    set feedback off
    set Pagesize 100
    SELECT '1. EVERY ASSEMBLY GROUP ADDED IN sys_PRODUCT TABLE MUST HAVE AT LEAST ONE ITEM IN WOC_ASSEMBLY_ITEM'
         FROM DUAL;
    SELECT 'ASSEMBLY_GROUP_NAME'
         FROM DUAL;
    SELECT
         assembly_group_name
         FROM association
         WHERE product_model_name = 'Graco_Product'
         AND assembly_group_name NOT IN (SELECT DISTINCT assembly_group_name FROM woc_assembly_item);
    SELECT '2. A RULE SHOULD HAVE AT LEAST ONE EXPRESSION FOR ITS ACTION SIDE.'
         FROM DUAL;
    SELECT 'RELATION_ID , RELATION_TYPE'
         FROM DUAL;
    SELECT wr.Relation_ID                    ||','||
         wr.Relation_Type                    
         FROM WOC_Relation wr
         WHERE NOT EXISTS (SELECT 'X' FROM WOC_Relation_Expression wre
    WHERE wre.Relation_Side = 'Action'
    AND wr.Relation_ID = wre.Relation_ID)
         AND wr.Relation_Type NOT IN ( 'Rule Warning','Rule Resource','Rule Default');
    SELECT '3. PROPERTIES USED IN RULES SHOULD EXIST IN WOC_PROPERTY_MASTER -- EXP_LHS_VALUE'
         FROM DUAL;
    SELECT
         'RELATION_OWNER,EXP_LHS_OPERAND,RELATION_SIDE,RELATION_ID,EXP_LHS_VALUE,RELATION_TYPE'     
         FROM DUAL;
    SELECT
         b.relation_owner               ||','||
         a.exp_lhs_operand               ||','||
         a.relation_side                    ||','||
         a.relation_id                    ||','||
         a.exp_lhs_value                    ||','||
         b.relation_type
         FROM woc_relation_expression a, woc_relation b
         WHERE a.exp_lhs_value IS NOT NULL
         AND a.exp_lhs_value_type = 'Property'
         AND a.exp_lhs_value NOT IN (SELECT property_name FROM woc_property)
         AND b.product_model_name = 'Graco_Product'
         AND a.relation_id = b.relation_id;
    SELECT '--------------------------------------------------------------------------------'
    from dual;
    spool off
    set head on
    set feedback on

    High level description
    Full documentation
    Note that the UTL_ and DBMS_ packages are all covered in the PL/SQL Packages and Types Reference.
    You may also want to read up on the CREATE DIRECTORY statement, which lets you refer to an actual OS directory (which you create separately) via a database object.

Maybe you are looking for

  • SuPM home page getting stuck and couldnt able to enter

    Dear All, Greetings.... we are not able to enter into SuPM home page and getting stuck while its loading.. due this cause, we have installed flashplayer_10_ax_debug (No flash player exist earlier). Now while loading SuPM home page in Portal, its disp

  • How do I Take All my music from one computer to another

    I need to take all my music from my home computer and put it on my laptop. I think I have copies all the correct files to an external hard drive and now need to put them on my laptop so that they are in my library in iTunes on my laptop. How do I do

  • Copy and paste of images still broken?

    I use Firefox 14 and Windows XP, and I can't copy and paste images from the web into, say, a Word document. I used to do this all the time for knitting patterns, and it's very frustrating to have lost this function. I see from the knowledge database

  • Possible to get variable name?

    Is it possible to get the name that you have used in your code of a variable? ie. procedure main_procedure is    l_var varchar2(10) := 'Hello'; begin    dbms_output.put_line(get_var_name(l_var)); end; function get_var_name(p_var in varchar2) return v

  • Finding field name

    Hi friends, I have to add two fields in a customer based report , i know only the description of field name 'Customer comments' and 'contact notes'. in which table i have to search for getting SAP database field. i have searched in customer master da