Application Development 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: 

Submit to Spool Line size Truncation...Urgent

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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.

0 Kudos

No Timo,

If I run the report individually, it is giving me the output without truncation...

Rgs

Jiku

0 Kudos

If any one can help me out...immediate points will be rewarded

Rgs

Jiku

0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

No Tripat,

It is not working....

Rgs

Jiku