cancel
Showing results for 
Search instead for 
Did you mean: 

No spool-job

Former Member
0 Kudos

LS,

Using a function module a programm is archiving documents. Every time the programm have run a spool-job is created but I don't want this. I tried some ITCPO settings but non of them worked. Can someone help me?

Best Regards

Rob Bijsterveld

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Rob,

i think it is not related to function module what ever calling but after this function module u r program may generating the spool request check the code once other wise just doble click on the function module and check the code in it whis is generating this spool request

if u find the code just comment those lines of code and activate it again

Regards

naveen

former_member181962
Active Contributor
0 Kudos

Hi Rob,

What is the Fm you are using?

I think one of the FM interface parameters will have a parameter for your requirement.

REgards,

Ravi

Former Member
0 Kudos

The first one is:

CALL FUNCTION 'OPEN_FI_PERFORM_00002310_P'

EXPORTING

I_BKORM = T_BKORM

I_KOART = 'D'

I_KNA1 = KNA1

I_KNB1 = T_KNB1

I_LFA1 = LFA1

I_LFB1 = LFB1

TABLES

T_FIMSG = t_fimsg

CHANGING

C_FINAA = finaa

C_ITCPO = itcpo

C_ARCHIVE_INDEX = h_archive_index

C_ARCHIVE_PARAMS = h_archive_params.

The second is:

call function 'OPEN_FORM'

exporting

application = 'TX'

archive_index = H_ARCHIVE_INDEX "RTB-08072005+

archive_params = H_ARCHIVE_PARAMS "RTB-08072005+

device = 'PRINTER'

dialog = ' '

form = wk_form

language = he_langu

options = itcpo "functie voor direct printen

IMPORTING

  • LANGUAGE =

  • NEW_ARCHIVE_PARAMS =

RESULT = ITCPP "RTB-08072005+

exceptions

canceled = 01

device = 02

form = 03

options = 04

unclosed = 05.

Kind regards,

Rob

former_member188685
Active Contributor
0 Kudos

Hi Rob,

what are you filling in ITCPO

can you show me that also.

you need to pass some params here also...

Regards

vijay

Former Member
0 Kudos

Hello,

you could try to set ITCPO-TDARMOD = '2' (only archive),

but i guess you'll get the spool-request anyway. Where should the system print the form if not to spool ?

Regards Wolfgang

Former Member
0 Kudos

FORM FILL_ITCPO.

clear itcpo.

itcpo-tdimmed = rimmd. "parameters voor direct printen

itcpo-tddelete = '*'.

itcpo-tddest = 'P942'.

  • Controle on-line of achtergrond verwerking

if sy-batch is initial.

  • Indien on-line, alleen printen met print preview

itcpo-tdarmod = '1'.

itcpo-tdpreview = 'X'.

else.

  • Indien achtergrond verwerking alleen archiveren

itcpo-tdarmod = '2'.

itcpo-tdpreview = ' '.

itcpo-tdnoprint = 'X'.

endif.

itcpo-tdcopies = '1'.

itcpo-tdnewid = ' '.

itcpo-tddataset = 'Z_F01'.

itcpo-tdsuffix1 = 'P942'.

itcpo-tdsuffix2 = t_knb1-bukrs.

itcpo-tdlifetime = '7'.

itcpo-tdcover = 'D'.

ENDFORM.

former_member188685
Active Contributor
0 Kudos

are you sure all these settings are valid. is P942 is valid.

some thing wrong in this form only.

Regards

vijay

Former Member
0 Kudos

Hi Vijay,

P942 is their printer. I tried to set the printer to initial or 'NULL' but both options disabled archiving so this is not a valid options.

Do you have any suggestions?

Rob

former_member188685
Active Contributor
0 Kudos

Hi,

try to check all ITCPO parameters , may be you can get some hints.

Regards

vijay