Hello everybody,
i´ve got a problem with one of our web dynpro applications.
In our application users have to print some lists. We do this by calling a Fuba:
*"---------------------------------------------------------------------- *"*"Lokale Schnittstelle: *" IMPORTING *" VALUE(P_BEST) TYPE CHAR20 OPTIONAL *" VALUE(P_MATNR) TYPE MATNR OPTIONAL *" VALUE(P_MAKTX) TYPE MAKTX OPTIONAL *" VALUE(P_LGORT) TYPE LGORT_D OPTIONAL *" VALUE(P_MENG1) TYPE CHAR15 OPTIONAL *" VALUE(P_LIEF) TYPE CACS_DESC_COND OPTIONAL *" VALUE(P_AGP) TYPE CHAR15 OPTIONAL *" VALUE(P_MHD) TYPE CHAR10 OPTIONAL *" VALUE(P_CHARG) TYPE CHARG_D OPTIONAL *" VALUE(P_BRGEW) TYPE CHAR15 OPTIONAL *" VALUE(P_EAN) TYPE CHAR13 OPTIONAL *" VALUE(I_PDEST) TYPE SYPDEST OPTIONAL *" VALUE(P_LGPLA) TYPE LGPLA OPTIONAL *"---------------------------------------------------------------------- DATA: number TYPE tbtcjob-jobcount, name TYPE tbtcjob-jobname VALUE 'JOB_TEST', print_parameters TYPE pri_params, valid type string. print_parameters-PRIMM = '1'. CALL FUNCTION 'GET_PRINT_PARAMETERS' "Beschaffen von EXPORTING NO_DIALOG = 'X' "Druckparametern IMPORTING OUT_PARAMETERS = print_parameters. print_parameters-primm = 'X'. *print_parameters-pdest = i_pdest. print_parameters-PRTXT = 'WE-ETIKETT'.. *clear print_parameters-prnew. p_agp = '64'. p_meng1 = '16 St'. SUBMIT ZETIKETT_WE_Z_BEST TO SAP-SPOOL SPOOL PARAMETERS print_parameters WITHOUT Spool DYNPRO AND RETURN with p_lief = p_lief "Lieferantenname with p_wedat = SY-datum with p_best = p_best with p_matnr = p_matnr with p_maktx = p_maktx with p_lgort = p_lgpla with p_meng1 = p_meng1 with p_ean = p_ean with p_agp = p_agp with p_mhd = p_mhd with p_charg = p_charg with p_brgew = p_brgew. ENDFUNCTION.
This Fuba calls a report "ZETIKETT_WE_Z_BEST" which should be printed immediatelly on the local printer of the user.
So far it´s ok. The fuba get called, the rebot is made and a spool job is created.
But...
The spool job doesn´t print. In "my spool jobs" it´s marked as "done".
Now another strange thing. If we debugg the appliacation (don´t change anything only pressing F5) the SAPLPD is called an the report is printed perfekt. Can someone help me?
Points guaranteed....