<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic spool error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215195#M1007208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a report which generates a spool file when executed in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is that the in one of the fields (Delivery No.) the last digit is getting truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It displays like '12345678...'.&lt;/P&gt;&lt;P&gt;The value should have been '123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field length has been specified as 15 which very well coverys the delivery no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to know the error and how it can be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: David D on Jul 25, 2008 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2008 12:09:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-25T12:09:11Z</dc:date>
    <item>
      <title>spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215195#M1007208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a report which generates a spool file when executed in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is that the in one of the fields (Delivery No.) the last digit is getting truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It displays like '12345678...'.&lt;/P&gt;&lt;P&gt;The value should have been '123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field length has been specified as 15 which very well coverys the delivery no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to know the error and how it can be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: David D on Jul 25, 2008 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215195#M1007208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215196#M1007209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a Field Labels printed...&lt;/P&gt;&lt;P&gt;Delivery is of length 8&lt;/P&gt;&lt;P&gt;so is your display check if thats affecting your output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215196#M1007209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215197#M1007210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when i run in foreground, the ALV displays the delivery number correctly. This error occurs only in spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215197#M1007210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215198#M1007211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You specify the output length for the field and see..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDCAT-OUTPUTLEN = '15'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It happens in some cases. when you don't specify the Outputlength or Specifying less Length then you will get the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215198#M1007211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215199#M1007212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;This is exactly what I have done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the ALV displays correct output.&lt;/P&gt;&lt;P&gt;The error is only in spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215199#M1007212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215200#M1007213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you by chance passed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colwidth_optimize = 'X'. in Layout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not while populating the SELTEXT_L, SELTEXT_M and SELTEXT_S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to give "Delivery Number" in FULL and try...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215200#M1007213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215201#M1007214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Problem is with this&lt;/P&gt;&lt;P&gt;NO_ZERO = 'X'. set it for the field/column which you want in the fieldcatalog.&lt;/P&gt;&lt;P&gt;you set this and see the Background spool .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_field-no_zero = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215201#M1007214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215202#M1007215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this one in Foreground and Background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_alv.

TYPE-POOLS:slis.
DATA:it_fieldcat  TYPE  slis_t_fieldcat_alv,
     wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
       vbeln TYPE likp-vbeln,
      END OF it_likp.
DATA: layout TYPE slis_layout_alv.

wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.

SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_callback_program      = sy-repid
    is_layout               = layout
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat             = it_fieldcat
  TABLES
    t_outtab                = it_likp
  EXCEPTIONS
    program_error           = 1.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  user_Command
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;UCOMM      text
*      --&amp;gt;SELFIELD   text
*----------------------------------------------------------------------*
FORM user_command USING ucomm TYPE sy-ucomm
                    selfield TYPE slis_selfield.

  CASE ucomm.

    WHEN '&amp;amp;IC1'.

      SET PARAMETER ID 'VL'  FIELD selfield-value.
      CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
  ENDCASE.

ENDFORM.                    "user_Command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay Babu Dudla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 12:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215202#M1007215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T12:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: spool error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215203#M1007216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vijay,&lt;/P&gt;&lt;P&gt;The issue is resolved.&lt;/P&gt;&lt;P&gt;Your solution was of great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 07:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-error/m-p/4215203#M1007216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T07:31:56Z</dc:date>
    </item>
  </channel>
</rss>

