Skip to Content
author's profile photo Former Member
Former Member

Display spool output i.e a single row in a single line

hello All,

I have report that outputs many columns is single row , when run in the background.

The problem that I am facing that the the single row of columns is wrapped into second line when certain limit of chararcters is reached. That is the single row of data is placed into two lines.

While running the job in the background I choose the LOCL or LP01 printer with format X_65_255.

Also note that I have other SAP systems but in that systems when I use the same procedure(printer and format also the same) for the same report the outputf for single row is not warpped into 2 lines but appears in the same line.

Please provide your input. Points will be rewrded for helpful answers



Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Apr 17, 2008 at 02:48 PM

    Use a layout that ha s more width.

    If no such layout exist, create one in SPAD transaction.


    Ravi kanth talagana

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ravikanth Talagana

      Hello ravi,

      Thanks for the link, very helpful.

      The link aslo talks about BASIS setting for graphical display of spol that can be done to display the spool output in single

      line .

      Could you please let me know of this becasue in all the other systems we haven't any setting done as susggeted in the link as I have checked this.



  • author's profile photo Former Member
    Former Member
    Posted on Apr 18, 2008 at 01:24 PM

    How wide is your report output? Is it more that 255 characters?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Excuse my earlier ignorance 😉

      Here is a solution that I tested and worked for me in a background job. The key is to pass the print parameters...

         data: w_print TYPE lvc_s_prnt ,
                 w_valid_for_spool_creation(1) type c,
                 w_valid(1) type c.
              mode                     = 'PARAMSEL'
              no_dialog                = 'X'
              out_archive_parameters   = w_print-print_ctrl-arc_params
              out_parameters           = w_print-print_ctrl-pri_params
              valid                    = w_valid
              valid_for_spool_creation = w_valid_for_spool_creation
              archive_info_not_found   = 1
              invalid_print_params     = 2
              invalid_archive_params   = 3
              OTHERS                   = 4.
          CREATE OBJECT grid1
                 EXPORTING i_parent = custom_container1.
          CALL METHOD grid1->set_table_for_first_display
              i_structure_name = 'MARA'
              is_print         = w_print
              it_outtab        = i_mara[].