on 2007 Mar 06 12:05 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
loop the INVOICE table and call the smartform Inside the loop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i think u neeed to change the code in WHERE clause...if it isa report
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Check out the mass print for invoices, transaction VF31.
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.