02-04-2014 3:24 PM
Hi All ;
I want to create new page in smartforms for each vbeln in the itab.
For examp; I have 3 records in itab.I want to see different 3 pages ,
the output is 4 pages the last page is free.
The screenshot of th smartforms ;
Thanks for your help.
Regards
Fırtına
02-04-2014 3:38 PM
Hi Yigit,
You should try to control if you are at the last entrie of the table, because if you are at this case you don't have to create another page.
For example you can get the number of lines of your Internal table and then add a new condition to check if you are at the last one.
Best Regards.
02-04-2014 3:43 PM
02-04-2014 4:05 PM
You have to get the number of lines of your Internal table (DESCRIBE TABLE it_data LINES l_lines) and then in the condition of your command you have to add another one which check if your counter is the same as the number of lines (at this time you are at the last entrie).
02-05-2014 5:07 AM
Hi Firtina,
Have you defined any table in the TABLE loop? I would like to know whether you are looping internal table in the TABLE element or in LOOP element inside the table.
You have defined COMMAND element in main area of a table, that's fine. But that should be in loop of internal table.
So, if you are looping internal table in LOOP, then place that COMMAND in that loop. Otherwise define the internal table in TABLE for looping.
Regards,
Vijay
02-05-2014 7:59 AM
Hi Yagit,
yeah i have faced same problem before.. i did some condition .. please follow below screen shots
Regards,
Thangam.P
02-05-2014 1:05 PM
hi ;
Is there anyother screenshot , i didnt understand; describe table ok but what we have to define in the command ?
Regards
Fırtına
02-05-2014 1:07 PM
Yigit
first is Describe table GT_PO lines GV_LINES--> Total number of lines.
Then inside the loop have another vairable GV_CURR_LINE and increment it by 1 in each iteration. Put a condition on new page command if gv_curr_line lt gv_lines then only it will work.
Nabheet
02-05-2014 8:04 AM
Hi Yigit
Please check number of lines in internal table. On each loop iteration increment another variable by 1. Put condition on page break command do only if current count is less than initial total line
Nabheet
02-05-2014 1:14 PM
Hi Yigit,
before your main window data ends, create a command lines and in the conditions tab
put condition as shown in screenshot,
where counter is the no of your records to be displayed
02-05-2014 1:18 PM
Hi yigit,
sorry for mistake. actually i posted near four screen shots but it loaded only one.. i didnt noticed that.