on 07-15-2009 8:34 AM
Hi Experts,
I have created a smartform where i need to display the line items based on the customer data.
I have created a command at the end of the loop. For every new customer it has to go to new page. After the completion of the report i'm getting a blank page at the end.
If i take a single customer or multiple customer, I'm getting a blank page at the end. I need to avoid this.
Please let me know the procedure to avoid it.
Thanks and Regards,
Abdur Rafique
Hi Guys,
If i use the conditions which you people have mentioned, I'm not getting the end page.
But my requirement is to display new customer details in new page. This is effecting if use the commands which you people have mentioned.
Regards,
Abdur Rafique
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this logic
In the "Initialization" tab of global definitions
DESCRIBE TABLE IT_TAB LINES W_COUNT.
Here IT_TAB contains all the customers
While looping IT_TAB count the records into W_COUNT_CURRENT " Current record count
In the COMMAND give the condition
W_COUNT_CURRENT <> W_COUNT (Go to new page as long as current customer is not the last customer)
For the last customer both variable will be equal and there will not be a new page.
Note that the COMMAND must be at the end of the LOOP for this logic to work
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check at the end loop if it is the last one. If it isthe last then no commandline.
Gr., Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think after printing all the cusotmer the COMMAND window excuted and prints the empty page. Check the customer is not empty.
Edited by: Alexander on Jul 15, 2009 9:46 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
give if not customer is initial also and check.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.