2010 Sep 23 4:02 PM
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
2010 Sep 23 5:18 PM
2010 Sep 24 6:02 AM
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.
2010 Sep 23 11:50 PM
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
list_name = <> " Pass List Name
2010 Oct 27 8:27 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |