on 08-23-2010 7:06 AM
Hi Experts,
I have a problem with smartforms.
I pass two internal table to smartform like it_kna1 and it_vbrk.
now i create a loop on internal table it_kna1 and within the it_kna1 i create a loop on it_vbrk.
on the top of page i want to pring customer details and below customer's Invoice details.
when the customer change i create page break with a command.
Now i want to Print page number on every page with reset page number on customer.
if customer X invoice details cover 3 pages and then customer Y invoice details.
so the page number appear like :
Customer = X
Page: 1 of 3/ Page: 2 of 3/ Page: 3 of 3.
Customer = Y
Page: 1 of 2/ Page 1 of 2.
and so on.
anyone can solve my problem.
self solved by change requirement
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of expecting a Smartforms solution it is probably easier to code your own logic to solve this problem:
First determine how many pages, i.e. total pages, will be created for each customer and store the value in your customer itab. This can be done in Global Definitions u2013 Initialisation.
Then at each control break at customer level set your page count to 0 and use the already determined value for your new total pages value. Increment page count before first/new customer output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
help
???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.