on 04-29-2009 6:48 AM
hi all,
I designed one smartform for Multiple Range.
I need Output for each number in new page. For this i given command window at the end of loop.
I am getting output but last page is coming blank. I need to remove that blank page.
How can i do that one.
Please suggest.
Regards
Rami
Hi Ramireddy,
This is a logical error more than a SmartForm error. The idea is that when you get to the last line in the loop, there is a new page created at the end. But there is nothing to be printed there.
What I suggest is the following:
- remember the total lines of the table with DESCRIBE TABLE <table> LINES <total_lines> .
- move the sy-tabix value at the beginning of the loop in a new variable(maybe it gets changed along the way with READ TABLE statements or something) .
- make an IF <total_lines> NE <current_line> before executing the command
Regards,
George
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii,
The condition which you are maintaining in the condition tab of "at command" is not triggering whn you required.Just check the logic for that condition.Debug the code and you will be able to solve the query.
Regards,
Nicklas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there might be 2 possibilites for this:
1. Check ur internal table, if any blank record appended at last.
2. May be u called the COMMAND 'Go to New Page' at end of printing the MAIN WINDOW.
if 2nd is the case, try to call the COMMAND 'Go to New Page' before the MAIN WINDOW, and give condition for COMMAND in CONDITIONS tab 'sy-tabix NE 1'.
Hope its clear, let me know if its not clear!!
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
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.