Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Spool request name or title

Former Member
0 Likes
1,379

Hi,

I am using a Z program to fill the spool details and then calling a ALV.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            copies                   = '001'
            cover_page               = ''
            department               = sy-prabt
            layout                   = 'X_58_170'
            destination              = l_dest
            no_dialog                = 'X'
            receiver                 = sy-uname
            report                   = sy-repid
            sap_cover_page           = ''
          IMPORTING
            out_parameters           = l_params
            valid                    = l_valid
            valid_for_spool_creation = l_valid_spool
          EXCEPTIONS
            archive_info_not_found   = 1
            invalid_print_params     = 2
            invalid_archive_params   = 3
            OTHERS                   = 4.
        IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
       * CONCATENATE s_werks-low text-014 INTO l_params-prtxt SEPARATED BY space..*
        l_params-prbig = ''.
        ls_print-print_ctrl-pri_params = l_params.
        ls_print-print = 'X'.
        ls_print-no_print_selinfos = ''.  " display no selection infos
        ls_print-no_coverpage = con_x.       " no_new_page(1) type c,                             "
        ls_print-no_print_listinfos = con_x. " display no listinfos
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program     = sy-repid
            i_callback_top_of_page = 'TOP_OF_PAGE_ALLO'
            is_layout              = st_layout
            it_fieldcat            = i_fcat
            is_print               = ls_print
          TABLES
            t_outtab               = it_details.
      ENDIF.

However the Spool title is not getting filled as populated from the above code .

This was working until last saturday and have stopped since then.What could be the reason for this.

Please use code tags.

Edited by: Rob Burbank on Sep 23, 2010 11:06 AM

Hi,

I am using a Z program to fill the spool details and then calling a ALV.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            copies                   = '001'
            cover_page               = ''
            department               = sy-prabt
            layout                   = 'X_58_170'
            destination              = l_dest
            no_dialog                = 'X'
            receiver                 = sy-uname
            report                   = sy-repid
            sap_cover_page           = ''
          IMPORTING
            out_parameters           = l_params
            valid                    = l_valid
            valid_for_spool_creation = l_valid_spool
          EXCEPTIONS
            archive_info_not_found   = 1
            invalid_print_params     = 2
            invalid_archive_params   = 3
            OTHERS                   = 4.
        IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
       * CONCATENATE s_werks-low text-014 INTO l_params-prtxt SEPARATED BY space..*
        l_params-prbig = ''.
        ls_print-print_ctrl-pri_params = l_params.
        ls_print-print = 'X'.
        ls_print-no_print_selinfos = ''.  " display no selection infos
        ls_print-no_coverpage = con_x.       " no_new_page(1) type c,                             "
        ls_print-no_print_listinfos = con_x. " display no listinfos
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program     = sy-repid
            i_callback_top_of_page = 'TOP_OF_PAGE_ALLO'
            is_layout              = st_layout
            it_fieldcat            = i_fcat
            is_print               = ls_print
          TABLES
            t_outtab               = it_details.
      ENDIF.

However the Spool title is not getting filled as populated from the above code .

This was working until last saturday and have stopped since then.What could be the reason for this.

Please use code tags.

Edited by: Rob Burbank on Sep 23, 2010 11:06 AM

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
912

In debug mode is ths fm GET_PRINT_PARAMETERS successfull ?

Read only

0 Likes
912

Function Get_print_parameters is succesful in debug mode.

And populating the list in this function fills the passed value in PLIST.However earlier it was working with PRTXT.

The code has not been changed and instaed of tile SAP request name is displayed.

Read only

Kanagaraja_L
Active Contributor
0 Likes
912
 CALL FUNCTION 'GET_PRINT_PARAMETERS'
         EXPORTING
              list_name      = <> " Pass List Name   
Read only

Former Member
0 Likes
912

Solved.