cancel
Showing results for 
Search instead for 
Did you mean: 

Spool not triggering in Production client

jogeswararao_kavala
Active Contributor
0 Kudos

Dear Experts,

I have creted a smartform in ABAP client, which is working OK in 220 and 100 Dev clients.

But the same after transporting to Quality and Production the spool is not triggering.

i.e., After clicking on the Print or Print Preview buttons of the Print pop-up, the transaction aborts and comes back to the selection screen.

(This is happening in both Quality, Production clients. This is the case with only this program. All other smartforms developed these days are working fine.)

This is to request you to help me solve this problem.

kind regards

Jogeswara Rao

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you post the code which you had used in the report

jogeswararao_kavala
Active Contributor
0 Kudos

I found the solution.

In fact I did not transport a graphic used in the smartform.

After transporitng the graphic, the spool is triggering and the display is appearing.

Regards

Jogeswara Rao

Edited by: K Jogeswara Rao on Feb 16, 2012 3:06 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Yes You Have to Use in Driver Program,

I had Asked the Call Function used for printer settings not to call Smartform.

Use this way

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

in_parameters = lwa_params

layout = 'X_65_132'

line_count = 65

line_size = 132

no_dialog = 'X'

IMPORTING

out_parameters = lwa_params

valid = lv_valid

EXCEPTIONS

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

OTHERS = 4.

MOVE-CORRESPONDING lwa_params TO w_print-print_ctrl-pri_params.

w_print-print_ctrl-pri_params-pdest = 'LP01'. " your printr device

NEW-PAGE PRINT ON PARAMETERS lwa_params NO DIALOG.

if any issue kindly intimate

Edited by: gop4sap11 on Feb 16, 2012 8:23 AM

jogeswararao_kavala
Active Contributor
0 Kudos

1.I did not get where to use the code suggested by you.

2. I use only smartform fm in the driver program, no other call function for pronter setting used in any of the smartforms.

3. To remind again that this code is fine in Dev clients.

Thank you

Jogeswara Rao

Former Member
0 Kudos

hi,

this it will help you

IF SY-BATCH EQ 'X' OR

SY-BINPT EQ 'X'.

<.....WRITE UR CODE HERE......>

ENDIF.

Edited by: gop4sap11 on Feb 16, 2012 7:53 AM

jogeswararao_kavala
Active Contributor
0 Kudos

Thank you for responding.

Where exactly in the driver program I have to add this IF syntax.

(I am using SSF_FUNCTION_MODULE_NAME fm for smartform, I would like to remind that the exisitng code is working fine in Dev clients).

kind regards

Jogeswara Rao

Edited by: K Jogeswara Rao on Feb 16, 2012 12:45 PM

Edited by: K Jogeswara Rao on Feb 16, 2012 12:48 PM