cancel
Showing results for 
Search instead for 
Did you mean: 

New-page for each invoice number

Former Member
0 Kudos

Hi,

My requirement is to get invoice details based on the invoice number entered on the selection screen. In my selection screen i have used select-options for invoice number. But when i specify a range i am getting the output for only one (last) invoice number's details.But i want the details of each invoice in new page. Can anyone help me regarding this?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Swathi!

I hope it'll work.

just try n reply.

CALL FUNCTION 'OPEN_FORM'

....

....

....

LOOP AT <ITAB> // ITAB should contain all the invoice numbers

AT NEW <INVOICE NO>.

CALL FUNCTION 'START_FORM'

EXPORTING

  • ARCHIVE_INDEX =

FORM = <form name>

.....

.....

ENDAT.

CALL FUNCTION 'WRITE_FORM'

....

.....

CALL FUNCTION 'END_FORM'

....

.....

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'

....

.....

Reward points if it works.

Regards,

Neha Bansal.

Former Member
0 Kudos

loop the INVOICE table and call the smartform Inside the loop.

Former Member
0 Kudos

Hi,

i think u neeed to change the code in WHERE clause...if it isa report

Former Member
0 Kudos

Hi!

Check out the mass print for invoices, transaction VF31.

Regards

Tamá

former_member181962
Active Contributor
0 Kudos

Hi Swathi,

In the driver program, pool the invoice numbers into an internal table. say ITAB.

*write logic to get all the invoice numbers using the select statement

loop at itab.

  • existing code...

endloop.