Widthwise line in my spool

Hello experts,
When i  execute my report , i get the ALV report , after this i print this ALV to my spool,
I want to create in my report of the spool , Widthwise line after each of rows ,
How can i to do this ?
Thanks for the help.
Avi.

Hi,
try this way...
    CONCATENATE 'NS'
                 sy-datum+4(4)
                 sy-uzeit INTO
                 wa_pri_params-plist.
* Creating Spool request ...
  NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
  WRITE : / text-s32.
  ULINE.
  LOOP AT t_error INTO wa_error.         "ALV output table write to spool using format options and lines..
    WRITE : / wa_error-text.
  ENDLOOP.
Prabhudas

Similar Messages

  • Blank line in the spool file

    Good day,
    I was trying to retrive data from the table and save the results in the spool file, but I find blank lines in the spool file. What can be the couses of that? I am using oracle 9i.
    regards
    Talifhani

    SET SHOWMODE off
    SET FEEDBACK OFF
    SET VERIFY off
    SET RECSEP off
    SET TRIMSPOOL on
    SET LINESIZE 20000
    SET HEADING OFF
    SET PAGESIZE 0
    SET PAGES 0
    ==>Select the spool file
    ==>Run you query
    ==>Spool off.
    Now check the spool file.
    Good luck!!!
    Bhagat

  • Line size in Spool output

    Hi
    in spool, wen i get the out put only upto line 255 is getting printed.Rest are getting truncated.How can I change the line size.Can it be done through the programmimg.In report if we define line size then it is valid only for the foreground job and not reflected in the back ground report.Please suggest the needful.

    Hi Rudra Prasanna ... 
    When u r select print button for printing a report.In output device give the output Device and then click on properties button below .
    It will take u to Spool request attributes.
    Now double click on format and press F4 on format
    Differt formats are available now select the format which gives Maximum coloums for printing.Then u can get the Maxi
    Fields at output.
    Hope this solves u r problem.
    Reward points if found helpful.
    Rajesh.

  • Double print in one line,when convert spool to PDF

    Dear Expert:
    I have a problem to solve when convert spool to PDF,there is one line will double imaged.
    The form is created by smartforms.
    I have tryed many ways,retype the text or start a new line,all didn't works.
    So could any one tell me how to solve this problem.
    Many thanks.
    [Picture of the PDF|http://picasaweb.google.com/nika.wei/SAP#5274740000941172338]
    Edited by: Nika Wei on Dec 1, 2008 9:50 AM

    Thanks for your quick response.
    I used the program you mentioned to download spool to PDF.The download file is like the link picture.
    And the form will not overlap when I print it immediately.But it will overlap the first line when preview or convert to PDF. My user don't want to print it immediately they want to save it to PDF.
    I know maybe there is something wrong with the format, I tryed retype the text but it didn't works.

  • Line break when spooling file

    Say if you create a spool file and your going to execute a
    select statement to write data to this file.
    Is it possible to get a select statement to automatically put a
    line break and go to the next line in the file it is spooling
    to??
    Say for example:
    Select 'DROP TABLE'||table_name||';'||
    'CREATE TABLE'||table_name||';'
    from user_tables;
    I apologize if this is confusing. Thanks.
    Troy

    I tried what you suggested for a unix system and I still have a
    problem. Sometimes there is a line break in between my insert
    and select statement when i try to run to the spooled script
    afterwards.
    For example:
    select 'INSERT INTO temp_table (name, height, numrows) '||chr(10)
    ||'SELECT name, height, 0 from index_stats;' from dba_indexes
    where owner = 'USER1' and index_name NOT LIKE 'SYS%';
    It will be like:
    INSERT INTO temp_table (name, height, numrows)
    SELECT name, height, 0 from index_stats;
    This only returns the record but doesn't insert it in the table.
    Any other suggestions on how to fix this would be greatly
    appreciated?? Thanks.

  • SmartForm Spool: Line missing: ?xml version="1.0" encoding="utf-8" ? sf

    Hello all,
    The spools of a SmartForm that I developed are missing the line:
    <?xml version="1.0" encoding="utf-8" ?><sf>
    The spool starts with:
    <smartxsf xmlns="urn:sap-com:SmartForms:2000:xsf"><header><general><version>1.14.2<  (so on...)
    The Functional Counsultant wants the spool to look like:
    <?xml version="1.0" encoding="utf-8" ?><sf><smartxsf xmlns="urn:sap-com:SmartForms:2000:xsf"><header><general><version>1.14.2<  (so on...)
    Only such a spool can be printed successfully. If the line is missing, no print out can be taken.
    Could you please tell me what settings need to be done in order to see the missing line in the spools?
    Thanks and regards,
    Ameya
    Edited by: Ameya_Tulpule on Mar 9, 2011 8:58 AM

    hii,
    http://help.sap.com/saphelp_nw70/helpdata/en/a5/28d3b6d26211d4b646006094192fe3/content.htm
    Go to this link click under Activating XSF Output
    statically
    dynamically
    Overriding the Output Format
    Desired Output Format
    Settings for Overriding
    Standard output
    (OTF)
    XSFCMODE = 'X'.
    XSF = SPACE.
    XDFCMODE = 'X'.
    XDF = SPACE.
    XSF
    XSFCMODE = 'X'.
    XSF = 'X'.
    XDFCMODE = SPACE.
    XSF+HTML
    XSFCMODE = 'X'.
    XSF = 'X'.
    XSFFORMAT = 'X'.
    XDFCMODE = SPACE.
    XDF
    XDFCMODE = 'X'.
    XDF = 'X'.
    XSFCMODE = SPACE.
    Matching Parameters for Static Attributes
    Output Format
    Input Field in Form
    Parameter of Structure SSFCOMPOP
    (possible settings)
    XSF
    Output mode
    (for XDFOUTMODE='S')
    XSFOUTMODE ('S'|'A')
      Output device
    XSFOUTDEV
    XSF+HTML
    Output mode
    XSFOUTMODE ('A')
      BSP page/URL
    XSFACTION
    XDF
    Output mode
    XDFOUTMODE ('S'|'A')
      Output mode
    (for XDFOUTMODE='S')
    XDFOUTDEV
    regards,
    Sridhar.V

  • Spooling via DBMS_OUTPUT.PUT_LINE without new lines

    Is there a way to spool output to a file using DBMS_OUTPUT.PUT_LINE so that each line is placed on a same line? ie spool all output to one line?
    I guess this probably goes against design of PUT_LINE as it is mean to put a line.
    What I am trying to do is build a DOS command via a SQL script that spools to a file all on one line. this is so that when the spool file is run (either as a .bat or .sh file) the command can execute correctly since it is all on one line.
    Any ideas?
    Leigh.

    You can try below code.
    create or replace procedure p1(P_AMU varchar2) as
    cursor cu_get_workbooks is
    select '/workbook "'||doc_created_by||'.'||doc_name||'"' workbook
    from (
    SELECT EUL4_DOCUMENTS.DOC_NAME,
    DOC_CREATED_BY
    FROM EUL4_DOCUMENTS EUL4_DOCUMENTS
    WHERE DOC_CREATED_BY=P_AMU;
    str varchar2(4000);
    begin
    for cu_rec in cu_get_workbooks loop
    str := cu_rec.workbook;
    end loop;
    insert into temp values (str);
    end;
    And then you can write a sql script:
    exec p1(&&AMU);
    select * from temp;
    Regards,
    Vidyadhar Singh.

  • How to get the number of rows written to the header of the spool file.

    Hi
    I need to create a header line for the spool file .
    the header line should include fixed length values .
    The header should include the number of records found in the table with a maximum begin date (begin_date is the column of the table)
    To get the header in the spool file , i wrote a select query has :-
    --SPOOL 'C:\Documents and Settings\abc\Desktop\output.TXT'
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
    rpad(' ',76,' ')
    from dad.school
    group by sysdate;
    SPOOL OFF
    which gets me all the rows in the table , but i only want the rows with the latest school_begin_date .
    how can i achieve that ...
    I know that a subquery should be written in the from clause to get the number of rows found with a maximum school_begin_date.
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
    rpad(' ',76,' ')
    from dad.school where
    select rownum from dad.school
    where school_begin_date = max(school_begin_date) ;
    the error i get is
    ORA-00934: group function is not allowed here
    I NEED HELP ..IN GETTING THE ROWNUM JUST FOR THE LATEST BEGIN_DATE ?
    PLS HELP ME IN WRITING THE QUERY .
    THANKS IN ADVANCE .

    Try this:
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000')||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) || rpad(' ',76,' ')
      from dad.school
    where school_begin_date = (select max(school_begin_date)
                                  from dad.school);

  • Adding field names to spool file?

    I'd love to add the field names and "AS" labels as a header row to a spool file...here's a few lines from the spool script:
    --SET heading on
    --SET echo off
    --SET space 0
    SET trimspool on
    set feedback off
    set termout off
    set heading off
    set pagesize 0
    set linesize 2000
    SPOOL C:\spools\Prod\files\test\profile_2003.txt
    SELECT
    a.ZIP
    ||'|'||a.STATE
    ||'|'||a.COUNTY
    ||'|'||a.ZIPNAME
    ||'|'||a.STATENAME
    ||'|'||a.COUNTYNAME
    ||'|'||a.POPCY
    ||'|'||a.SEXCYMAL-- AS POPMALE
    ||'|'||a.SEXCYFEM-- AS POPFEMALE
    ||'|'||a.AGECYMED-- AS MEDIANAGE
    something to do with the SET parameters perhaps?
    this will be a huge help to me if someone can point me in the right direction...
    Thanks!
    - Pete

    Try:
    SPOOL C:\spools\Prod\files\test\profile_2003.txt
    SELECT
         'ZIP'           ||'|'||
         'STATE'               ||'|'||
         'COUNTY'               ||'|'||
         'ZIPNAME'      ||'|'||
         'STATENAME'      ||'|'||
         'COUNTYNAME'      ||'|'||
         'POPCY'               ||'|'||
         'POPMALE'              ||'|'||
         'POPFEMALE'     ||'|'||
         'MEDIANAGE'
    FROM
         dual
    SELECT
         a.ZIP           ||'|'||
         a.STATE               ||'|'||
         a.COUNTY               ||'|'||
         a.ZIPNAME      ||'|'||
         a.STATENAME      ||'|'||
         a.COUNTYNAME      ||'|'||
         a.POPCY               ||'|'||
         a.SEXCYMAL     ||'|'||
         a.SEXCYFEM     ||'|'||
         a.AGECYMED
    FROM
         your_table a
    SPOOL OFF     

  • Spooling unwanted output

    Hi i have script as below
    SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF;
    set linesize 125
    set numwidth 20
    set pagesize 50
    col TEXT FOR A30
    col ELAPSED_TIME_SEC for 99999999
    set serveroutput off;
    SET ECHO OFF;
    undefine MAX_SNAP
    undefine MIN_SNAP
    SELECT MAX(SNAP_ID) MAX_SNAP,MIN(SNAP_ID) MIN_SNAP FROM DBA_HIST_SNAPSHOt
    WHERE BEGIN_INTERVAL_TIME > (SYSDATE - 1) - 4/ 24
    AND END_INTERVAL_TIME <= (SYSDATE) - 3/ 24 ORDER BY 1;
    SET TERMOUT ON;
    SPOOL MY_TEST_FILE.xls;
    SELECT SQL_ID FROM dba_hist_sqltext
    WHERE SNAP_ID > &&MIN_SNAP AND SNAP_ID<= &&MAX_SNAP;
    SPOOL OFF;
    but in my spool file
    it appear like this .
    old 1: SELECT SNAP_ID, BEGIN_INTERVAL_TIME,END_INTERVAL_TIME FROM DBA_HIST_SNAPSHOt WHERE SNAP_ID=&&MIN_SNAP                    
    new 1: SELECT SNAP_ID, BEGIN_INTERVAL_TIME,END_INTERVAL_TIME FROM DBA_HIST_SNAPSHOt WHERE SNAP_ID= 20805                    
    and
    old 20: WHERE SNAP_ID > &&MIN_SNAP AND SNAP_ID<= &&MAX_SNAP)          
    new 20: WHERE SNAP_ID > 20805 AND SNAP_ID<= 20853)          
    what if i dont want this lines in my spool file.
    is there anything which dont spool this in output.
    thanks.

    Hi,
    Add
    SET   VERIFY  OFFto the SET commands.

  • 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

  • Any FM available in SAP to combined 2 spools in one spool

    Hi All
    Is there Any FM available in SAP to combined 2 spools in one spool ????????
    My requirement is such that In Dunning form printing we need to combined the line items of the two different company code in to one spools....
    I looking forward for your replies.
    cheers
    Anup

    Hi,
    I don't think you can combine them ... but please try these combination FM RSPO_RETURN_ABAP_SPOOLJOB, RSPO_SR_OPEN and FM RSPO_SR_WRITE.
    The first one extracts lines from a spool request. The second one creates a new spool request. The last one write lines into a spool request.
    Regards,
    Raj.

  • Merge spool from two SAP Scripts

    In a report using two separate forms for output. On report execution first output is displayed & then it display the second one. Thus two separate spools are generated.
    Is there any way to merge these two spools in one spool list through program.
    Kindly advise.
    Thanks
    anu

    Hi,
    Glad to let you know, it is <b>possible</b>.
    Have a look at the function modeules <b>RSPO_RETURN_ABAP_SPOOLJOB</b>, <b>RSPO_SR_OPEN</b> and <b>RSPO_SR_WRITE</b>.
    The first one extracts lines from a spool request. The second one creates a new spool request. The last one write lines into a spool request.
    you can use these three to split up small parts or combine into single
    Feel free to revert back.
    --Ragu

  • Spool Command not found error

    Dear friends,
    I am trying to get the list of active and inactive sessions for some users and created a script for this but getting some error message.
    Could you please check why I am getting this error while running from the putty. The same sql command I run from sql developer and get the output with no errors.
    Script:
    set pagesize 0
    set feedback off
    set echo off
    sqlplus '/as sysdba'
    spool kill_session_list.sql;
    select 'ALTER SYSTEM KILL SESSION '''||sid||','||serial#||''';'
    from v$session
    where type!='BACKGROUND'
    and username in('RO_USER','KHALIED','INFAREP','DAC','DMUSER_PROD','LAND_PROD','STAGE_PROD','BIUSER_PROD','OLAPDW','DWRO');
    spool off;
    exit
    Error msg:
    ./kill_session_generate.sql: line 5: spool: command not found
    ./kill_session_generate.sql: line 6: syntax error near unexpected token `||'
    ./kill_session_generate.sql: line 6: `select 'ALTER SYSTEM KILL SESSION '''||sid||','||serial#||''';''
    Thanks.

    877938 wrote:
    Dear friends,
    I am trying to get the list of active and inactive sessions for some users and created a script for this but getting some error message.
    ./kill_session_generate.sql: line 5: spool: command not found
    ./kill_session_generate.sql: line 6: syntax error near unexpected token `||'
    ./kill_session_generate.sql: line 6: `select 'ALTER SYSTEM KILL SESSION '''||sid||','||serial#||''';''Odd.
    Look at the script kill_session_generate.sql very carefully, especially the lines before and after the SPOOL command as well as the spool command itself. Consider deleting and retyping the line with the SPOOL command in case invisible special characters are causing problems
    Good luck!

  • Setting the Spool Title from Information Broadcaster

    I have a BI 7.0 SP 15 environment. We are trying to use the Information Broadcaster to setup a schedule of a few hundred reports to be sent to the printer. The problem is we need to be able to set the title line of the spooler, but I can seem to find any parameters directly in the Information Broadcaster that will set the title line. Every time I send a report to the printer the title line of the spool is blank. Does anyone know of a way to set this parameter? Is there a way of modifying an ABAP program to set this parameter? I know there are way of programmatically setting this parameter, I just dont know which program to modify to get this to work.
    Thanks for any assistance,
    Tim

    It was output_options-TDCOVTITLE and not output_options-tdtitle,
    But thanks any way!!

Maybe you are looking for

  • Decrypt HP Client Security / HP Drive Encryption - or clone encrypted drive...

    Hi, I'm trying to clone my boot drive over to an SSD.  I have a 1tb boot drive and I just purchased a 512mb SSD (MSata Interface in Sata to MSata adapter in bay 2). I get an error in Acronis Clone Disk and I assume it is due to my boot drive and my 3

  • 5800's new and old homescreen changes with v40 FW

    After upgrading to v40, I've compared the new homescreen to the old homescreen and to the old homescreen with v21-31, these are my findings. - The old homescreen on v40 does not have the email notification that Nokia introduced a short while ago and

  • Connector for OUTLOOK (vista)

    hi all, i am using the sun java system connector for microsoft outlook version 7.3.10.2 and created the exe , that exe works with XP but do not execute properly on vista , can any one suggest me regards Adeel

  • Showing all rows in updatable report

    Hi everyone, the users of my application have requested the option of showing all records, even though the updatable report has pagination turned on. How can this be achieved at run time? Thanks a lot, Henrik

  • Taxes and table T5UTZ

    We have noticed that recently when BSI tubs are applied, table T5UTZ only gets updated in client 000.  If our basis team tries to manually push it to DEV, QAS or PRD, they get an error saying it is only supposed to be put in 000.  How can we get the