07-03-2007 9:08 AM
Hi Guys/Gals,
I have to submit the output to spool...(FROM MODULE POOL TO REPORT)
I've written the coding as follows...
w_prntparam-pdest = 'LP01'.
w_prntparam-prcop = '001'.
w_prntparam-plist = 'ZXXX'. "sy-repid.
w_prntparam-prnew = 'X'.
w_prntparam-pexpi = 8.
w_prntparam-linct = 65.
w_prntparam-linsz = 255.
w_prntparam-paart = 'X_65_255'. "'X_65_80'.
w_prntparam-prsap = 'D'.
w_prntparam-prrec = sy-uname.
w_prntparam-prdsn = 'LIST1S'.
w_prntparam-ptype = 'TEXT'.
w_prntparam-armod = 1.
w_prntparam-priot = 5.
w_prntparam-prunx = 'D'.
w_prntparam-prkeyext = 2.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IN_PARAMETERS = w_prntparam
LINE_SIZE = 255
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = w_prntparam
VALID = W_VALID_FLAG
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
SUBMIT ZXXX
TO SAP-SPOOL
SPOOL PARAMETERS w_prntparam
WITHOUT SPOOL DYNPRO
AND RETURN.
Here the output is not extending beyond 80 chars.....
Can anyone help me in this???
Regards
Jiku
07-03-2007 12:18 PM
Just after u have called GET_PRINT_PARAMETERS insert the code as given
if w_prntparam-PAART is initial.
w_prntparam-PAART = 'X_65_255'.
endif.
SUBMIT ZXXX
TO SAP-SPOOL
SPOOL PARAMETERS w_prntparam
WITHOUT SPOOL DYNPRO
AND RETURN.
07-03-2007 9:56 AM
Hi Jiku.
Did you specify the line size or check the list output in your report ZXXX.
Maybe truncation is happening there already.
Regards,
Timo.
07-03-2007 10:29 AM
No Timo,
If I run the report individually, it is giving me the output without truncation...
Rgs
Jiku
07-03-2007 10:52 AM
If any one can help me out...immediate points will be rewarded
Rgs
Jiku
07-03-2007 12:06 PM
Hi.
Did you try to debug the parameters before submitting them to the report.
Especially the parameters w_prntparam-linsz and w_prntparam-paart.
Maybe they changed after the function module GET_PRINT_PARAMETERS.
Otherwise I have also no idea what is happening.
Timo.
07-03-2007 12:18 PM
Just after u have called GET_PRINT_PARAMETERS insert the code as given
if w_prntparam-PAART is initial.
w_prntparam-PAART = 'X_65_255'.
endif.
SUBMIT ZXXX
TO SAP-SPOOL
SPOOL PARAMETERS w_prntparam
WITHOUT SPOOL DYNPRO
AND RETURN.
07-03-2007 1:44 PM