cancel
Showing results for 
Search instead for 
Did you mean: 

multiple invoice print

Former Member
0 Kudos

Hi,

User want to take print out of all the invoice generated for the whole month for a plant by giving print command just once.Is there any functionality in SAP which can use to get print out of multiple invoice in one go.If yes then please let me know and if no then please tell me how should i go about it?

I am functional consultant what is my role in it and if it is an abaper job then how should he go about it?

Thanx in advance.

Regards,

Satya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The method mentioned above is right but the coding for sapscript smartforms or pdf is different. Please provide more details.

Former Member
0 Kudos

Use std SAP transaction "VF31" to print multiple invoices in one go

Rgds

Rajeev

Former Member
0 Kudos

While executing T-Code VF31 with processing mode 1 we are getting this message "No message for initial processing exist" ,for processing mode 2 the message comes "No messages for repeat processing exist" and for processing mode 3 the message comes "No messages for error processing exist".

What does all this messages meant for and when this messages comes means in which scenario ?. When i put the existing billing document numbers i am getting this messages but when i put the newly created invoice number it get executed.

Please tell ME wherei am doin wrong.I am using sort order 1,processing mode 1, order related,delivery related,billing plan box are checked and just entering billing document numbers in from and to field.

Am i missing something or doing something wrong.

Regards,

Satya

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi sathya moorthy,

Multiple Invoice using SMART FORMS.

Just get the input from the user and put it into a

internal table.

Loop the function module using that internal table.

eg:

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'SMARTFORMS_NAME'

VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = FM_NAME

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

LOOP AT IT_VBELN.

CALL FUNCTION FM_NAME

EXPORTING

IT_VBRK = IT_VBELN

ENDLOOP.

Regards,

Ragu

Edited by: Ragu Prasad on Aug 20, 2008 11:46 AM

Former Member
0 Kudos

Hi,

Processing mode 1 is to print newly generated invoices through VF31.

Processing mode 2 is to print existing invoices through VF31.

Apart from the other 'Message Data' , 'Output Device' parameters, additionally in the billing data section you need to check other check boxes too ...like Delivery Related, Order Related, Invoice Lists and Billing Pland related...

Moreover in the last section 'Selection Sequence' you choose the radio button ' First Read Billing Documents'...

Hope this is clear.

Regards,

Ram

Former Member
0 Kudos

Hi,

In yur Driver Program.....

Call function 'OPEN_FORM'.

Loop at itab. "

CALL FUNCTION 'START_FORM'

EXPORTING

language = sy-langu

startpage = 'PAGE1'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'MAIN'

function = 'SET'

window = 'INVOICE'

EXCEPTIONS

element = 1

function = 2

type = 3

unopened = 4

unstarted = 5

window = 6

bad_pageformat_for_print = 7

spool_error = 8

OTHERS = 9.

IF sy-subrc 0.

ENDIF.

CALL FUNCTION 'END_FORM'.

Endloop.

CALL FUNCTION 'CLOSE_FORM'.

U do like that.... Ur probelm will solve.....

Thanks,

Durai.V

Former Member
0 Kudos

Hi,

when you are calling the form in between loop of internal table. then all the records in that table will be printed in that form.

ex:-...

loop at itab.

call function write_form.

........

call functionend_form.

endloop.

regards,

venkat

Former Member
0 Kudos

Hi,

This can be done by an abaper,Like In the Driver Program,By looping the Function Module'SSF_FUNCTION_MODULE _NAME ' through the internal table which contains all the Invoices in a given period .