SPOOL Output in back ground

Hi experts ,
Hi have 70 fields in my ALV output. When the data is huge the output format in back ground is destorted ( overlapping).
When the data is less i could able to see alla colums appearing fine and can able to down load well?
I wanna know is there any limitation of spool capacity or number of coulumns * rows in ALV format .
Your help is highly rewarded.
Thanks n Regards,
Vamsi

Hi,
Well then did you try to increase the line-size in the report statement of the program?
report ztest line-size 1023.
Regards,
Vikranth

Similar Messages

  • Reduce out put field length of alv output in back ground

    Hi all,
    Is there a way to reduce the output length of the field in back groundfor ALV out put
    Its back ground
    I have thsi things in my field catalog
    wa_fieldcat-outputlen = 10.
    wa_fieldcat-ddic_outputlen = 10.
    If the field has value of length 10 characters its ok
    but when the field has lenth of more than 10 characters
    (say 20 char). in fore ground it displays 10 characters and then we can move the column to see full thing , but in back ground it displays 20 char.
    In fact that is what i have to see because in background you cannot drag the column to see entire thing , but i want to cut short to 12 char even if i don't see the remaining thing its ok
    Thanks

    Hi Vasu,
    WHAT EXACTLY SY-BATCH DOES .
    I tried reducing wa_fieldcat-outputlen = 10. and then i tried
    wa_fieldcat-outputlen = 5., but it doesnot really changed anything in back ground but it did in fore ground . I haven't used any called sy-batch
    Let me know
    This is how my field catalog looks for mATNR
    clear wa_fieldcat.
      wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-seltext_l = ' Material #'.
      wa_fieldcat-seltext_m = 'Material #'.
      wa_fieldcat-seltext_s = ' Material #'.
      wa_fieldcat-reptext_ddic   = 'Material #'.
      wa_fieldcat-ddictxt   = 'L'.
      wa_fieldcat-col_pos   = 4.
      wa_fieldcat-outputlen = 18.
      wa_fieldcat-intlen    = 18.
      wa_fieldcat-ddic_outputlen = 18.
      wa_fieldcat-tabname   = '1'.
      append wa_fieldcat to fieldcat.
    NEXT TIME I COMMENTED THIS AND HAD
    wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-seltext_l = ' Material #'.
      wa_fieldcat-seltext_m = 'Material #'.
      wa_fieldcat-seltext_s = ' Material #'.
      wa_fieldcat-reptext_ddic   = 'Material #'.
      wa_fieldcat-ddictxt   = 'L'.
      wa_fieldcat-col_pos   = 4.
      wa_fieldcat-outputlen = 10.
      wa_fieldcat-intlen    = 10.
      wa_fieldcat-ddic_outputlen = 10.
      wa_fieldcat-tabname   = '1'.
      append wa_fieldcat to fieldcat.
    BUT I DID SEE DIFFERENCE IN FOREBROUND BUT NOT IN BACK GROUND
    Let me know
    Thanks

  • Am unable to see all COLUMNS of my_ALV in SPOOL from a BACK GROUND JOB, Why

    hi experts,
    pls. clarify m ysimple doubt that,
    Am running a ALV report in my_BACK GROUND..........this ALV contains 16 comuns...........I ´got the SPOOL from the scheduled my_BACK GROUND.......I noticed that, ONLY 9 columns are showing up?????????????
    so,
    1 - If I take print, all the columns will come show up?
    2 - If I/user waanna to see totla columns, than How to get it done?
    3 - Why SAP is so?
    thanq

    Hi Srini,
      I do faced the same problem and struggle a lot. I have done two things and My problem is resolve .
    1. First my Report autom mail come in PDF format that we have change to HTML view. (Basis people can do it.)
    2. Page format previously it was X_44_120  we have change it to  X_58_170 and the problem is resolve.
    hope it will be help full for you.
    Regards
    Swati....

  • Execute in Back ground when push button clicked on alv output

    Hi Friends,
    I have a alv list display report with check boxes and a 'Detail' Push button in output
    when i check the check boxes and click on the 'Detail' Push button detail report is
    displayed using 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. My requirement is if I click on 'Detail'
    push button the code should also execute in back ground creating the spool. Request you
    to help with sample code. I tried with below but not working.
    WHEN 'DETAIL'.
          call function 'START_OF_BACKGROUNDTASK'
          exporting
           startdate = sy-datum
           starttime = sy-uzeit
          exceptions
          others    = 1.
          if sy-subrc = 1.
           exit.
          ELSE.
           PERFORM determine_table_from_output CHANGING rs_selfield.
           PERFORM call_alv_detail.
          endif.
         commit work.
    Thanks,
    Neetha.

    You could encapsulate the detail display in a separate report and call it in your 'DETAIL'-section like this:
    DATA: lv_number TYPE tbtcjob-jobcount,
               lv_name   TYPE tbtcjob-jobname,
               ls_rsparams TYPE rsparams,
               lt_rsparams LIKE STANDARD TABLE OF ls_rsparams.
    *           Get free job number
                 CALL FUNCTION 'JOB_OPEN'
                   EXPORTING
                     jobname          = lv_name
                   IMPORTING
                     jobcount         = lv_number
                   EXCEPTIONS
                     cant_create_job  = 1
                     invalid_job_data = 2
                     jobname_missing  = 3
                     OTHERS           = 4.
                 IF sy-subrc = 0.
                   SUBMIT 'ZDISPLAY_DETAIL'
                   VIA JOB lv_name NUMBER lv_number
                   WITH SELECTION-TABLE lt_rsparams
                   AND RETURN.
                   IF sy-subrc = 0.
    *                Submit
                     CALL FUNCTION 'JOB_CLOSE'
                       EXPORTING
                         jobcount             = lv_number
                         jobname              = lv_name
                         strtimmed            = 'X'
                       EXCEPTIONS
                         cant_start_immediate = 1
                         invalid_startdate    = 2
                         jobname_missing      = 3
                         job_close_failed     = 4
                         job_nosteps          = 5
                         job_notex            = 6
                         lock_failed          = 7
                         OTHERS               = 8.
                  ENDIF.
    Regards,
    Ulrich

  • How to set Back ground job & get my desired output layout in sm36 & sm37 ?

    Hai SAP ABAP/BASIS Gurus,
    I am currently taking ME2N PO Pending value Report by setting variant in input screen & setting my own output layout  ie only four field ie.Plant, Material,Currency,Still to be delivered value will be visible in output screen
    I set Back ground in sm36 using my variant & i saw my output in sm37.. But I cant get output as my desired field..
    This is my problem..
    1) I Cant Get the Same output in shedule job [sm36 & sm37] like When i run in foreground for ME2n.
        I am using ALV Scope of list..
    2) If I use BEST Layout in Scope of list means i get the desired Output field layout as same as my foreground output field..
    I want to get the output layout as desired & also in ALV format[ Useful for excel work]
    Kindly guide me.
    Thanks in advance..
    swetha
    Edited by: Swetha SAP Girl on Jul 2, 2009 5:06 PM

    Hi Swetha,
    To get the missed fields in the spool, while creating the background job(execute in background option) you can see the printer setting block at the end of the background job settings window, in that check the 'Spool Request Max. Width 255 char' check box and then continue. It will generate the spool list with maximum width and you can see all the fields in the spool output.
    Thanks,
    Muthu
    Edited by: Muthu Prabakaran Selvam on Jul 3, 2009 2:35 PM

  • Output should be in Text format from Back ground job

    Hi friends,
    I have scheduleda back ground job. In the receipent i ahve put my user mail ID. when the job was finished the output came as HTML file. where as my user wants a Text file or excel file.
    We are in ECC 5.0 and i am just scheduling standard ABAP program( costing run
    Is it possible , if yes then, please let me know where to change the setting.
    Cheers
    PK

    Hi,
    I tried the same , it did not work for me. But when i contacted my Basis Guy through SCOT he changed. Now the text file has started coming.
    But now next problem is my spool request is of 215 pages but system is sending the text file for only first 10 pages..
    I have changed the setting for display from 10 pages 215 pages . and belwo even changed the seeting to permanenet between logons..Still system did not send the file to email Id.
    can you help mein this regards
    cheers
    PK

  • Submit statemet not creating spool in back ground

    Hi,
    My program works perfectly fine(creates spool) when I execute in foreground. But it doesn't create the spool when I execute in back ground. Pls help...
            SUBMIT rkaep000
                   WITH p_tcode = 'KOB2'
                   WITH aufnr   IN r_aufnr
                   WITH r_budat IN r_date
                   WITH p_disvar = '/SCORP 1404'
                   TO SAP-SPOOL SPOOL PARAMETERS params
                   WITHOUT SPOOL DYNPRO
                   AND RETURN .

    Hi Chesat bs,
    check demo program DEMO_LIST_SUBMIT_TO_SPOOL.
    Hope this helps.
    Thanks
    Lakshman

  • Scheduling Back Ground job

    Hi All,
    I need to schedule a daily background job for MB52 transaction and need to save the output of MB52 in a specified directory .
    Can any one tell me whether it is possible to save back ground job output in specified directory?
    Thanks & Regards
    k.Nirmala

    Hi Nirmala,
    Set up variant at MB52 transaction and use SM37 and Sm36 transaction to schedule job.
    Define job at Sm36 and use program - RM07MLBS and use your variant.
    schedule job and set up time and date for periodcally.
    and it will run and you can see the status at SM37 Transaction .
    the background job will create spool and which will contain your output.
    if you want to download your output ,then you need to write custom program to get spool information from TSP01 table and use open dataset command to down load specifi directory.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Background job - Spool output screwed up.

    Hi Friends,
    i am running a report in background and i have 40 to 50 columns as a result the output of the back ground job spool output does not show in one lone but as soon as it reaches to the certain point it splits the line and shows one line as as two...
    what could be the problem?
    thank you,
    pasala.

    Check
    In your report
    -  [REPORT - list_options|http://help.sap.com/abapdocu_70/de/ABAPREPORT_LIST_OPTIONS.htm] [LINE-SIZE width|http://help.sap.com/abapdocu_70/de/ABAPREPORT_LIST_OPTIONS.htm#&ABAP_ADDITION_2@2@]
    - [NEW-PAGE|http://help.sap.com/abapdocu_70/en/ABAPNEW-PAGE.htm] [LINE-SIZE width |http://help.sap.com/abapdocu_70/en/ABAPNEW-PAGE_OPTIONS.htm#&ABAP_ADDITION_4@4@]
    In print parameter of the step/job
    - [SUBMIT - spool_options |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_PRINT_PARAMETERS.htm] [SPOOL PARAMETERS pri_params|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_PRINT_PARAMETERS.htm#&ABAP_ADDITION_1@1@] or [LINE-SIZE width |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_LIST_OPTIONS.htm#&ABAP_ADDITION_1@1@]
    Also read [Printing Lists |http://help.sap.com/abapdocu_70/en/ABENPRINT.htm] and [SET_PRINT_PARAMETER|http://www.sdn.sap.com/irj/scn/advancedsearch?query=set_print_parameters] for LAYOUT and LINE_SIZE parameters.
    Regards,
    Raymond

  • Problem when printing Alv Tree Report in back ground

    Hi,
    I am using SUBMIT ...TO SAP-SPOOL WITHOUT SPOOL DYNPRO with GET_PRINT_PARAMETERS FM.Its working fine.
    My problem is that my SUBMIT report have TREE STRUCTURE as output so when i am running my program one blank screen is coming with heading DISPLAY LOG TREE because of TREE STRUCTURE.when i click on back button then only further processing happens.
    How to avoid this TREE STRUCTURE SCREEN ???
    Is there any other way to pass your list o/p to SPOOL other than .....TO SAP-SPOOL..?
    Thanks in advance.

    in foreground when u run ALV report it holds maximum fields and displays in 1 single row, but the case is not in back ground...When any report is run in background, the default size for a line is 255 chars...So, if it more it gets splitted into 2 line item....This is how back ground job works for a report  though it is a normal report or alv report.

  • ALV Grid in back ground

    Hi friends,  i got some problem in alv grid while i am running it in back ground.
      my report contains some currency(amount)  field in out put. when i am removing the amount field it is good result in back ground. but when it consist of amount field it is giving error. it indicating some string length problem. and error analysis as follows.
    Error analysis
    In statement
       "STRLEN( obj )..."
    the argument "obj" can only take a character-type data object.
    In this case, the operand "obj" has the non-character type "P".
      pls tell me can't we run amount field in back ground. if  s  how to solve my error. pls give me some ideas.
                                      Kumar.

    Hi
    Many a times there is a requirement to display ALV Grid (not ALV List) in the background Job. I have checked the SDN Forum for the same and it has been mentioned that ALV Grid cannot be displayed in Background, but the list output of ALV is possible. So user won’t have the actual Grid interface but the List interface.
    There is a workaround to display ALV Grid in Background Job. The only restriction is you can’t schedule the job through SM36. You need to execute the transaction of the report program, fill in the selection screen data and hit Execute.
    The job would be executed in background. User will be able to see the Job Log and Job Status after executing the program. User doesn’t have to go to SM37 to view the job status/log. Once the Job Status is changed to “COMPLETED”, user can click on “DISPLAY SPOOL” to view the ALV Grid.
    /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

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

  • Back ground job scheduling

    hi,
    question regarding back ground scheduling, one program consists of a selection screen having some input field and program calling SMARTFORMS in the program. When I shedule it in back ground I am not seeing output in the spool, and job is not completed sucessfully, so what is the problem??

    Hi Rajesh,
    probably the report is not designed to work properly in background.
    Give some details.
    Regards,
    Clemens

  • Convert spool output of ABAP list into excel and send email

    Hello All,
      I have a requirement where we need to
    1. schedule a background job programtically
    2. moniter backround job (if complete or not)
    3. once its complete take spool output ,convert into excel and email.
    I have following difficulties.
      1. i have reached upto stage 3. However, i am not getting proper ouput of excel via mail. it contains junk characters. I searched SDN and tried various option but not successful.
    2. AT last i have submited report and collected output in memory rather than submiting back ground job. Now excel out put is coming somewhat as required but while sending mail , i am getting limitation of 255 chars . My excel row has more than 255 line size.
    Please suggest.
    Thanks in advance,
    jigs.
    <<text removed>>
    Edited by: Matt on Jul 1, 2009 3:52 PM - removed point offer

    I've edited your post.  Please take the time to read the Rules of Engagement of these forums.  Offering points is not permitted for reasons outline in the Rules of Engagement.
    matt

  • Back ground

    Hi Friends ,
    I have got a clasical report to display it in back ground , when i look at the output length in back ground the is not exceeding more than 255 charecters ,
    My out put length is more than 255 charecters due to which few colums are not displayed in back ground .
    Can any body help me displaying the whole out put in back ground mode.
    It is urgent ,
    Full points awarded
    Anil

    Anil,
    I understand your problem. As long as i understand, when you execute a report in background the list goes to the spool output. The maximum width of the spool output is only 255 chars even though the list output can have a maximum of 1023 chars.
    NB: Reward points if found useful.
    I have heard that you can read those spool output with length > 255 chars... you can try using this system call....
    CALL 'C_RSTS_OPEN_READ' ID 'HANDLE' FIELD HAND4
                           ID 'CLIENT' FIELD HIDE_CLIENT
                           ID 'NAME'   FIELD HIDE_NAME
                           ID 'PART'   FIELD HIDE_PART
                           ID 'RC'     FIELD RSTSRC
                           ID 'ERRMSG' FIELD ERRMSG.
    CALL 'C_RSTS_READ' ID 'HANDLE' FIELD HAND4
                       ID 'BUFTAB' FIELD BUFTAB-SYS
                       ID 'MAXIX'  FIELD 10000
                       ID 'RC'     FIELD RSTSRC
                       ID 'ERRMSG' FIELD ERRMSG
    I am not sure how to use them actually.
    Regards
    Balaji

Maybe you are looking for