Application Development and Automation 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: 
Read only

Direct Invoice Printing

Former Member
0 Likes
935

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
852

Hi,

Check the routine you are aclling, is it Z_ROUT_NAME or Z_ROUT_NAME1 ?

Regards ,

Varun .

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.

5 REPLIES 5
Read only

Former Member
0 Likes
853

Hi,

Check the routine you are aclling, is it Z_ROUT_NAME or Z_ROUT_NAME1 ?

Regards ,

Varun .

Read only

0 Likes
852

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.

Read only

0 Likes
852

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

Read only

Former Member
0 Likes
852

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

Read only

Former Member
0 Likes
852

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