Skip to Content
avatar image
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

regards

Sachin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

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

    Regards,

    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.

      Regards

      Sachin

  • avatar image
    Former Member
    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

      Yean,

      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.
      
      
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              mode                     = 'PARAMSEL'
              no_dialog                = 'X'
            IMPORTING
              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
            EXCEPTIONS
              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
            EXPORTING
              i_structure_name = 'MARA'
              is_print         = w_print
            CHANGING
              it_outtab        = i_mara[].
      

      Regards

      Ken