Spool width in Background

Hi Experts,
I am running my ALV is background.
The display gets truuncated when I view the spool of it.
Can someone please advise how can I fit all my ALV columns in a single line.
I have tried " Display In maximum Width " option already.
Thanks and advance !!!!!

Hi ,
In your report increase the Line-Size parameter....
like this ...
REPORT  Z_XXX          LINE-SIZE 500 ....
Amitava

Similar Messages

  • Record width in background

    Hi Freinds,
    can anyone help me this below problem.
    i am executing  a program in forgroung the records are displaying fine.
    but when displaying same program with Back ground with spool the record width
    displaying very less.
    i want record width same in foreground and background
    regards,

    Hello Vijay,
    It is spool problem ,so check the below links and it may help you.
    Spool List output display > 255 char when the rpt is run in Background
    background job , how we set report width
    Spool report line width in background jobs
    List problem when run in background
    Thanks
    Seshu

  • Alv show in report but when see in spool (after run background job) there i

    my program have some error when i run result alv show in report but when see in spool (after run background job) there is no data, (other program can see result in spool)
    Please help
    here is some example of my program
    ********************************declare internal table*****************************
    internal table output for BDC
    data : begin of t_output occurs 0,
    bukrs type anla-bukrs,
    anln1 type anla-anln1,
    anln2 type anla-anln2,
    zugdt type anla-zugdt,
    result(70) type c,
    end of t_output.
    *****get data from loop********************************
      loop at t_anla.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln1
             IMPORTING
                  OUTPUT = t_anla-anln1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
             EXPORTING
                  INPUT  = t_anla-anln2
             IMPORTING
                  OUTPUT = t_anla-anln2.
    check record is correct or not
        select single bukrs anln1 anln2 zugdt
        into w_output
        from anla
        where bukrs = t_anla-bukrs and
        anln1 = t_anla-anln1 and
        anln2 = t_anla-anln2
       zugdt = '00000000'
    if record is correct
        if sy-subrc = 0 and w_output-zugdt = '00000000'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Yes : this asset can delete'.
          append w_output to t_output.
    if record is not correct
        elseif sy-subrc = 0 and w_output-zugdt <> '00000000'.
    there is error record  this asset have value already
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset have value already'.
          append w_output to t_output.
        else.
    there is error record this asset donot exist in table anla
          v_have_error = 'X'.
          w_output-bukrs = t_anla-bukrs.
          w_output-anln1 = t_anla-anln1.
          w_output-anln2 = t_anla-anln2.
          w_output-result = 'Error : this asset doest not exist'.
          append w_output to t_output.
        endif.
    *end of check record is correct or not
        clear w_output.
      endloop.
    ******************************show data in ALV***************************************************
    show data from file in ALV
      perform display_report_ALV.
    *&      Form  display_report_ALV
    form display_report_ALV.
      DATA: LT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
          LT_EVENTS TYPE SLIS_T_EVENT,
          LV_REPID LIKE SY-REPID.
      PERFORM ALV_DEFINE_FIELD_CAT USING LT_FIELD_CAT.
      PERFORM ALV_HEADER_BUILD USING T_LIST_TOP_OF_PAGE[].
      PERFORM ALV_EVENTTAB_BUILD USING LT_EVENTS[].
      LV_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = LV_REPID
                IT_FIELDCAT        = LT_FIELD_CAT
                I_SAVE             = 'A'
                IT_EVENTS          = LT_EVENTS[]
           TABLES
                T_OUTTAB           = t_output
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
      IF SY-SUBRC NE 0.
        WRITE: / 'Return Code : ', SY-SUBRC,
          'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    endform.
    *&      Form  alv_define_field_cat
          text
         -->P_LT_FIELD_CAT  text
    FORM ALV_DEFINE_FIELD_CAT USING  TB_FCAT TYPE SLIS_T_FIELDCAT_ALV.
      DATA: WA_FIELDCAT LIKE LINE OF TB_FCAT,
        LV_COL_POS TYPE I.
      DEFINE FIELD_CAT.
        CLEAR WA_FIELDCAT.
        ADD 1 TO LV_COL_POS.
        WA_FIELDCAT-FIELDNAME = &1.
        WA_FIELDCAT-REF_TABNAME = &2.
        WA_FIELDCAT-COL_POS = LV_COL_POS.
        WA_FIELDCAT-KEY = &3.
        WA_FIELDCAT-NO_OUT = &4.
        WA_FIELDCAT-REF_FIELDNAME = &5.
        WA_FIELDCAT-DDICTXT = 'M'.
        IF NOT &6 IS INITIAL.
          WA_FIELDCAT-SELTEXT_L = &6.
          WA_FIELDCAT-SELTEXT_M = &6.
          WA_FIELDCAT-SELTEXT_S = &6.
        ENDIF.
        WA_FIELDCAT-DO_SUM = &7.
        WA_FIELDCAT-OUTPUTLEN = &8.
        APPEND WA_FIELDCAT TO TB_FCAT.
      END-OF-DEFINITION.
      FIELD_CAT  'BUKRS'  'ANLA'     'X' '' 'BUKRS' 'Company Code' '' ''.
      FIELD_CAT  'ANLN1'  'ANLA'     'X' '' 'ANLN1' 'Asset Number' '' ''.
      FIELD_CAT  'ANLN2'  'ANLA'     'X' '' 'ANLN2' 'Asset Sub Number' '' ''.
    FIELD_CAT  'ATEXT'   'T5EAE'     'X' '' 'ATEXT' 'Result' '' ''.
      FIELD_CAT  'RESULT'  ''     'X' '' 'RESULT' 'RESULT' '' ''.
    ENDFORM.                    " alv_define_field_cat

    Hi,
    Check this code..
    FORM display_report_alv.
      DATA: lt_field_cat TYPE slis_t_fieldcat_alv,
      lt_events TYPE slis_t_event,
      lv_repid LIKE sy-repid.
      PERFORM alv_define_field_cat USING lt_field_cat.
      PERFORM alv_header_build USING t_list_top_of_page[].
      PERFORM alv_eventtab_build USING lt_events[].
      lv_repid = sy-repid.
      IF sy-batch EQ 'X'.  ----> " System Field for Backgroud..if Background use list display
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ELSE.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = lv_repid
            it_fieldcat        = lt_field_cat
            i_save             = 'A'
            it_events          = lt_events[]
          TABLES
            t_outtab           = t_output
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ENDIF.
      IF sy-subrc NE 0.
        WRITE: / 'Return Code : ', sy-subrc,
        'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
    ENDFORM.                    "display_report_ALV

  • Table component - column width and background color?

    Is there any way to set the column width on the table component?  And is there any way to set the background color.  I am using Xcelsius 2008.
    Thanks,
    Karen

    Column width and background can be set in the Excel range and then bind table component to display the range.
    If you change the Column width of background in the Excel range, you need to rebind the display range to update the format.
    Hope this can help!

  • Setting Spool Width for Version 4.6B

    Hi All,
    Can anyone please help me in increasing the Spool width to 300 for the SAP version 4.6B.     
    Thanks & Regards
    Ashish

    Hi Ashish,
    You may look at the OSS note 186603. It seems you have to create an entry in the table TSPOPTIONS as mentioned in the note.
    Also pls refer the following notes
    409339
    213382
    Cheers
    Vinod

  • Spool report line width in background jobs

    Hi All,
    I wrote a report and specified the line size in the report header:
    REPORT /sappssrm/option_handler
    NO STANDARD PAGE HEADING
    LINE-SIZE 185.
    I want to run this report as background job and get a spool list with results of the report. I expected the width of the spool output to be well defined and it works in one system. However, in another systen, the line / page width is much smaller, and the system inserts line breaks in the output splitting my lines into two which causes very ugly results.
    It seems that the LINE-SIZE specified in the report header doesn't affect the output width in every system.
    Can anyone advice?
    Regards
    Wolfgang

    Hi Siggi,
    thanks for your reply. Actually I changed that already yesterday...
    But I found out what it was:
    It seems, the background job keeps old versions of the program, even if you import a new program version. I created a new job with the same program and it worked.
    Thanks again and best regards
    Wolfgang

  • 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 list for Background job

    Dear all ,
    The background job is already scheduled daily (PR NOT PROCESSED BY PURCHASING) , isn't possible to check the list of users is assigned in the spool list recipiant, I have checked spool list , but its shows only one id ....
    how to check the list of Spool users ...any alternate option ?
    Kindly advise
    Regards

    Hi ,
    I have created a distribution list and i have included  the email ids also .
    any other activation is required for Distribution list ?
    how the background job is sending a report to Distribution list or i have to assign a distribution list to Background job .
    Kindly suggest
    Regards

  • Spool list in background

    Hii everybody,
    I am not able to generate the background spool list for this report. When executed in background, the job shows successful execution, but when I see spool status, it shows waiting and the spool has incomplete list. The bottom part of the spool list has all vertical lines... Any guesses what might be the problem? I am able to see the output when report ran in foreground. It is an ALV grid report.
    PLese reply me fast as it is urgent.
    M A

    Hope you have end spool writing with  new-page print off.
    form write_to_spool.
      data : l_params        type pri_params,          "new spool params
               l_destination type pri_params-pdest value 'LOCL'.      "printer name
    *Get the print parameters.
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          copies                 = 1
          department             = 'SYSTEM'
          destination            = l_destination
          expiration             = 2
          immediately            = ' '
          layout                 = 'X_65_255'
          line_count             = 65
          line_size              = 255
          list_name              = 'XYZ'
          list_text              = 'ABC'
          mode                   = ' '
          new_list_id            = 'X'
          no_dialog              = 'X'
          receiver               = 'SAP*'
          release                = 'X'
          sap_cover_page         = 'X'
          user                   = sy-uname
        IMPORTING
          out_parameters         = l_params
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
      case sy-subrc.
        when 1.
          raise get_print_info_not_found.
        when 2.
          raise get_print_invalid_prt_params.
        when 3.
          raise get_print_invalid_arch_params.
        when 4.
          raise get_print_others.
      endcase.
    *start spool writing.
      new-page print on parameters l_params no dialog.
      uline.
      skip.
    write  your contents
      uline.
    *end spool writing.
      new-page print off.
    endform.                    " write_to_spool

  • How to send Mailing Spool Details of Background jobin EXCEL format

    Dear All,
    Hope every one doing awesome.
    As per client requirement we need to send spool detail to user in EXCEL format.
    http://sapignite.com/sending-mail-for-background-job/
    As per the mentioned thread ABAPER created the code and we are getting mails in HTML format.
    Now the user wants the files in EXCEL format.
    I had checked in SCOT and doesn't found any useful setting that will make the required changes.
    Any other suggestion ?
    Tons of thanks for your support.
    Regards
    Nikhil

    need solution..

  • Spool error for background job

    Hi All,
    I have scheduled one job in sap for a report.I have made a distribution list via tcode SO01.
    I have given this distribution list to the SPOOL RECEPIENT section in SM 36.
    The job is running successfully but is giving the following error and not sending emails to the distribution list.
    The error is :-
    "Spool list of step 1 could not be sent due to error 7".
    Does anybody has any idea about this error?
    Please help its a production issue.
    Thanks in advance
    Vivekanand Meghmala

    Look at SAP note : 760838
    Symptom
    Background job spool lists are not sent.
    Other terms
    RSBTCRTE, RSPO_SPOOLJOB_TO_OFFICE, SO_DOCUMENT_SEND_API1
    Reason and Prerequisites
    1. The jobs in question have recipient references in table TBTCO but these have no equivalent in the Business Object Repository.
    2. An error occurs when sending in the spool or in the Sapconnect layer.
    Solution
    This note does not provide a direct solution to the problem but it does provide a source code enhancement that you can use to create more trace information about the cause of the error. When you copy and execute a job with spool list recipients, trace messages are output when errors occur.
    After implementing the correction instructions, use transaction SE91 to create the following message:
    Message class: BT
    Number: 347
    Text: Spool list of step &1 could not be sent due to error &2.
    In detail, the error numbers mean:
    1 = Spool request does not exist (or no longer exists)
    2 = Spool request does not contain any data
    3 = Empty page area selected
    4 = No authorization to send the request
    5 = Access to the spool request is not possible
    6 = Read error in the Temse layer
    7 = Spool request could not be sent (sending problem)
    8 = Incorrect request type
    9 = Other

  • Downloading spool to PDF background

    Hi friends
    How can i downlaod spool to PDF format in back gorund.
    i know we cna download background into server as we required in PDf format.
    i am able to downlaod but when i go to AL11 tcode and open i am not able to see in PDF format..
    is there any way to downlaod to front end PC through back ground ..
    if the file store in application server how user can view the PDF document.
    Please help

    Hi Ramesh,
    Check the Sample programs:
    RSTXPDFT4
    RSTXPDFT5
    The FM is: CONVERT_ABAPSPOOLJOB_2_PDF
    check this link as well.
    http://help.sap.com/saphelp_47x200/helpdata/en/85/54c73cee4fb55be10000000a114084/frameset.htm
    <b>Reward points if this helps.
    Manish</b>

  • How can I get spool result for background mode AFAB

    Dear experts,
    Could you help me? My users run AFAB without run that in test mode. Therefore sometimes I have a difference in ledger (main book) and FI-AA. I am wanting to write coat for AFAB where I am runing programme in test mode and then run that in workering mode. AFAB run in background.
    How can I get result first (test) run from spool? Could you tell me any solutions for that problem?
    Thanks and Best Regards

    You can create one warpper program which can submit the report in the background job with option to send the output to MEMORY. You can use the JOB_OPEN and JOB_CLOSE FMs to schedule a background job.
    Than you can use the FM 'LIST_FROM_MEMORY'  to get the results from the memory.
    Like:
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT report EXPORTING LIST TO MEMORY
                  AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    Regards,
    Naimesh Patel

  • Setting format for spool requests in background jobs, for emails

    Hi,
    Don't know if this is the correct forum, but I'll give it a go (will appricate info regarding what forum is applicable otherwise.)
    For some periodical background jobs that we run in ECC, we have in the job set up that a mail group of people to receives the spool request via mail. Vi have used this a few years now. When we recently uppgraded from R/3 to ECC, the format of the spool request sent as mail attachment changed from .txt to .htm. This is however not the problem for us.
    We now have a scenario with a daily mail report, i.e. delivered as an attachment (htm-format) in our email system (Lotus Notes).
    So far so good, and nothing really new about this, except the changed format.
    What the users want is to print this report. It can be done, but it is a wide report, so it cuts the report in three pieces, as there is no automatic sizing to landscape printout and/our automatic sizing to one page. The best solution would be if it automatically was set up to landscape + automatically fit page size. Which format (.txt .htm .xls .pdf...) we receive the file in, is not really important, as long as we can print it directly without having to reformat it. Now we have to save the file to excel manually after we receive it, and then format the excel sheet. Just for printout purpose, so it is annoying work.
    Any solution available? (preferrably without coding)
    BR,
    Niclas

    Hi NTR,
    If you are using FM REUSE_ALV_LIST_DISPLAY to print your ALV Report it has got a paramter IS_PRINT in which you can pass your format type. Below is the field name where you have to pass your format type.
    IS_PRINT-print_ctrl-PRI_PARAMS-PAART
    Regards
    Bala

  • Generating SP01 spool reports in background

    Good morning BASIS Gurus
    I have a quick question. I am required to generate a list of spool requests (SP01) every week, showing SP01 information for a selected group of printers. This is done for charge-backs (number of printouts for a specific unit).
    The problem is three-fold:
    1. I need to be able to run SP01 in the background.
    2. I need to create a variant to allow for the dates and the list of printers. The list of printers does not change week to week, so this is not a big deal.
    3. I need to be able to run the report and mail the resulting report to an SAP internal email. Once the report is generated I can do this part.
    The first two steps are the source of my headache.
    Any help/suggestions are greatly appreciated.
    I run ECC6.
    Thanks
    Juan

    Hola Juan,
    I think you can query the TSP01 table for those details... a simple program will do this job, talk to your abaper
    Regards
    Juan

Maybe you are looking for