‎2009 Feb 02 6:23 AM
Hi Experts,
How to send internal table data to Spool. I have an internal table which contains binary data of archived images , want to send it to spool to create printouts. Can anybody help me .
Regards,
Ratheesh BS
‎2009 Feb 02 6:30 AM
Check below Demo program,
DEMO_LIST_SUBMIT_TO_SPOOL
will be helpful.
Regards,
‎2009 Feb 02 6:40 AM
Hi Chandra,
I checked the demo program , there Get_print_parameters FM is used . In the documentation it is mentioned that this FM is used to define, modify and display the print and archive parameters.Can you please tell me what this FM is actualy doing ?
Regards,
Ratheesh BS
‎2009 Feb 02 6:51 AM
‎2009 Feb 02 7:00 AM
Hello ,
Please find the sample code for u r req:
DATA : l_f_list_name LIKE pri_params-plist,
l_f_destination LIKE pri_params-pdest,
l_f_spld LIKE usr01-spld,
l_f_layout LIKE pri_params-paart,
l_f_line_count LIKE pri_params-linct,
l_f_line_size LIKE pri_params-linsz,
l_f_out_parameters LIKE pri_params,
l_days TYPE PRI_PARAMS-PEXPI ,
l_f_valid.
l_f_line_size = 255.
l_f_line_count = 65.
l_f_layout = 'X_65_255'.
l_f_list_name = sy-repid.
to get defult spool device for the user
SELECT SINGLE spld INTO l_f_spld FROM usr01 WHERE bname = sy-uname.
IF sy-subrc = 0.
MOVE l_f_spld TO l_f_destination.
ENDIF.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
COPIES = C_NUM3_UNKNOWN
COVER_PAGE = C_CHAR_UNKNOWN
DATA_SET = C_CHAR_UNKNOWN
DEPARTMENT = ' '
destination = l_f_destination
EXPIRATION = l_days
immediately = ' '
layout = l_f_layout
line_count = l_f_line_count
line_size = l_f_line_size
list_name = l_f_list_name
LIST_TEXT = C_CHAR_UNKNOWN
MODE = ' '
NEW_LIST_ID = C_CHAR_UNKNOWN
NO_DIALOG = 'X'
RECEIVER = C_CHAR_UNKNOWN
RELEASE = 'X'
USER = SY-UNAME
IMPORTING
out_parameters = l_f_out_parameters
valid = l_f_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4
.
IF l_f_valid NE space.
NEW-PAGE PRINT ON PARAMETERS l_f_out_parameters NO DIALOG.
WRITE : /5 'Scheduling Agreement No.',
25 'Message Type',
40 'Message Issued'.
ULINE.
LOOP AT g_t_err_log. " WHERE msgtyp = 'E'.
WRITE : / g_t_err_log-vbeln UNDER 'Scheduling Agreement No.',
g_t_err_log-status UNDER 'Message Issued',
g_t_err_log-msgtyp UNDER 'Message Type'.
ENDLOOP.
NEW-PAGE PRINT OFF.
ENDIF.
Regards
‎2009 Feb 02 8:16 AM
Hi,
This code help me to create the spool data. Actualy my internal table contains binary data of archived images stored in SAP ArchiveLink , My intention is to take printouts of this images using my report .
Do you think storing binary data of images in Spool as mentioned by you will help me,Please advise.
Ratheesh