2006 Jul 27 4:38 PM
Hi Gurus,
I Have got a problem in Invoice Printing.I had attached a Pgm Name say <b>Z_PGM_NAME</b>, Form Name <b>Z_ROUT_NAME1</b> And Smartform say SF_NAME1.The Invoice No I used to pick from NAST-OBJKY.Also the NAST Table entries were used to get the NO OF MESSAGES , PROCESSING STATUS to print multiple copies.Everything was fine when I was taking the printout from VF02,VF03. But now we have set that the printouts will be automatically created once the Invoice is saved.
Now the problem is I save the invoice but no printout comes.Then in VF02 when I check the Header-Output, In processing Log , I get the error message <b>The Routine Z_ROUT_NAME in program Z_PGM_NAME does not exist</b>'for that output type.
What scan be the problem.I checked the Program Name And Routine.In VF02 if I use the same output Type it gives the Print.
2006 Jul 27 4:45 PM
Hi,
Check the routine you are aclling, is it Z_ROUT_NAME or Z_ROUT_NAME1 ?
Regards ,
Varun .
2006 Jul 27 4:45 PM
Hi,
Check the routine you are aclling, is it Z_ROUT_NAME or Z_ROUT_NAME1 ?
Regards ,
Varun .
2006 Jul 27 4:49 PM
Hi Varun,
Here I typed my mistake.I checked the Program And Form NAme.Its right.When I use the same output type with vf02,vf03 for the same invoice it gives the right data.
Now I am using GET PARAMETER ID 'VF' the it creates the printout but the Data is blank.Is the VBELN not available in the report output driver program.
2006 Jul 27 5:05 PM
DO you have TABLES NAST declared in your print program?
Donot use get parameter id to get VBELN, NAST-OBJKY is the invoice number
Regards
Sridhar
2006 Jul 28 7:44 AM
Hi Sridhar,
Yeah I have declared NAST in my program.Else it wouldnt have been activated.
ANyway what I felt was that in the program I was not able to get the VBELN value neither from NAST structure nor from the Parameter ID.
Hence it was giving the error message earlier.
Any thing that is missed???
Regards,
Samson
2006 Jul 28 7:49 AM
Hello Moses,
Please check the attributes of the output type.
There will be a option like this :
Print immediately while saving
Send to spool
Choose the relevant options for the output type.
Hope this will help you.
Reward points if helps.
Best Regards,
krishnakumar