2008 Mar 31 7:31 PM
Hello everyone:
I am using FM "get_print_parameters" to send data to spool and when I open the spool I see the report in "landscape format" but when I give to to Qa persion for testing it seems like it is displaying in "portrait" format! Here is my code:
DATA: params LIKE pri_params,
valid(1),
valid_spool(1),
l_wa TYPE T_RULE.
READ TABLE P_ITAB INTO l_wa INDEX 1.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
immediately = space
new_list_id = 'X'
no_dialog = 'X'
user = sy-uname
IMPORTING
out_parameters = params
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
CLEAR : params.
ELSE.
"params-pdest = v_dest.
params-prtxt = 'ZCFIGL10020'.
"params-paart = 'X_58_170'.
params-primm = space.
params-prrel = space.
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
FORMAT INTENSIFIED ON.
WRITE: / 'Template:', l_wa-TEMPLATE,
30 'Reference:', l_wa-sref.
SKIP.
WRITE: /20 'Sender',
95 'Receiver'.
ULINE.
*-----Sender header
WRITE: / 'Seq',
10 'Ln',
20'CCntr',
33'CoCd',
40'GL Acct',
53'D/H',
59'Rate',
71'Assignment'.
*-----Receiver Header
WRITE: 95'CCntr',
108'CoCd',
115'GL Acct',
128'D/H',
134'Rate',
146'Assignment'.
FORMAT INTENSIFIED OFF.
LOOP AT P_ITAB .
*-----Sender Data
WRITE: / P_ITAB-SEQNUM,
10 P_ITAB-SUBSEQ,
20 P_ITAB-SKOSTL,
33 P_ITAB-SBUKRS,
40 P_ITAB-SHKONT,
53 P_ITAB-SZHKZG,
59 P_ITAB-SRATE,
71 P_ITAB-SASSIGN.
*-----Receiver data
WRITE:95 P_ITAB-RKOSTL,
108 P_ITAB-RBUKRS,
115 P_ITAB-RHKONT,
128 P_ITAB-RZHKZG,
134 P_ITAB-RRATE,
146 P_ITAB-RASSIGN.
ENDLOOP.
NEW-PAGE PRINT OFF.
clear: l_wa, params.
How should I resolve this issue?
Thanks.
Mithun
Hello everyone:
I am using FM "get_print_parameters" to send data to spool and when I open the spool I see the report in "landscape format" but when I give to to Qa persion for testing it seems like it is displaying in "portrait" format! Here is my code:
DATA: params LIKE pri_params,
valid(1),
valid_spool(1),
l_wa TYPE T_RULE.
READ TABLE P_ITAB INTO l_wa INDEX 1.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
immediately = space
new_list_id = 'X'
no_dialog = 'X'
user = sy-uname
IMPORTING
out_parameters = params
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
CLEAR : params.
ELSE.
"params-pdest = v_dest.
params-prtxt = 'ZCFIGL10020'.
"params-paart = 'X_58_170'.
params-primm = space.
params-prrel = space.
NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
FORMAT INTENSIFIED ON.
WRITE: / 'Template:', l_wa-TEMPLATE,
30 'Reference:', l_wa-sref.
SKIP.
WRITE: /20 'Sender',
95 'Receiver'.
ULINE.
*-----Sender header
WRITE: / 'Seq',
10 'Ln',
20'CCntr',
33'CoCd',
40'GL Acct',
53'D/H',
59'Rate',
71'Assignment'.
*-----Receiver Header
WRITE: 95'CCntr',
108'CoCd',
115'GL Acct',
128'D/H',
134'Rate',
146'Assignment'.
FORMAT INTENSIFIED OFF.
LOOP AT P_ITAB .
*-----Sender Data
WRITE: / P_ITAB-SEQNUM,
10 P_ITAB-SUBSEQ,
20 P_ITAB-SKOSTL,
33 P_ITAB-SBUKRS,
40 P_ITAB-SHKONT,
53 P_ITAB-SZHKZG,
59 P_ITAB-SRATE,
71 P_ITAB-SASSIGN.
*-----Receiver data
WRITE:95 P_ITAB-RKOSTL,
108 P_ITAB-RBUKRS,
115 P_ITAB-RHKONT,
128 P_ITAB-RZHKZG,
134 P_ITAB-RRATE,
146 P_ITAB-RASSIGN.
ENDLOOP.
NEW-PAGE PRINT OFF.
clear: l_wa, params.
How should I resolve this issue?
Thanks.
Mithun
2008 Mar 31 8:18 PM
Hi Mithun Dha ,
Try to pass the "LAYOUT" parameter when calling the FM "GET_PRINT_PARAMETERS" for framing the Printout parameters. The reason teh QA person is seeing in patraiot layout is maight be bacause of hus user id default value. If you pass it in the print parameters then it will override the default.Try it out and let me know if you have issues still.
Thanks,
Greetson
2008 May 02 9:18 AM
hi i had a report and the requirement is i had to send the data directly to the printer and not to spool even any help regarding tht
pls help
2008 May 08 3:21 PM
Hi,
I want to print the report output to multiple printers, is there any function module to do the same.
I have my output data in the internal table,all I want to pass this data to multiple printers (printers will be determined at runtime, I have logic for that).
GET_PRINT_PARAMETERS - is used to send the data to spool only?
I will appreciate if some one can let me know.
Thanks!
Thiru
Edited by: Thiru Reddy on May 8, 2008 4:21 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |