2014 Jan 27 10:32 AM
Hi Experts,
as below, I have this smartforms organization. I would like to put a break page in the table TABLEKOND contained in the MAIN Window.
My table is always displayed in 2 pages ....
Unfortunately, I can't put any break page. Do you have any idea to perform my need ?
Thx you very much.
Rachid.
2014 Jan 27 10:41 AM
Hi
If you want to move to next page,
the point where you want .
Right click -> create-> flow logic -> command .
Then in command 'Go to new Page' and mention the the page name.
2014 Jan 27 10:41 AM
Hi
If you want to move to next page,
the point where you want .
Right click -> create-> flow logic -> command .
Then in command 'Go to new Page' and mention the the page name.
2014 Jan 27 10:47 AM
Thank you Atul,
but I have a dynamic table just above. I cannot use this way.
Rachid.
2014 Jan 27 10:58 AM
Hi Rachid -
Do you want a page break or break point to debug (as few of our member is answering on break point? Please confirm .
2014 Jan 27 11:40 AM
2014 Jan 27 12:08 PM
Hi Rachid -
Thanks for clarifying its a page break.
You wrote 'but I have a dynamic table just above. I cannot use this way.' . I believe dynamic table you mean is here that the record number number in the table is dynamic.
If you want a page break after certain records. You can put a counter with code (example you can create a counter after each row is printed) with Right click -> create-> flow logic -> Program Lines
Every time a row is processed you need to increment it. Supoose you want to print only 5 lines on first page and then want to print rest in next page.
Then what you need is to do is create is create the command
Right click -> create-> flow logic -> command .
Then in command 'Go to new Page' and mention the the page name
Also 'condition' tab of the command you can set the counter (example i_cnt > 5).
Hope it helps you.
Regards,
Atul Mohanty
2014 Jan 27 2:09 PM
Thx again Atul for you help,
You wrote 'but I have a dynamic table just above. I cannot use this way.' . I believe dynamic table you mean is here that the record number number in the table is dynamic.
Exactly !
If you want a page break after certain records. You can put a counter with code (example you can create a counter after each row is printed) with Right click -> create-> flow logic -> Program Lines
in fact, I can't count the records because each records contains many variable lines under each record. Then, It's impossible for me to process like that.
To sum up basically, my need concerns a static table. And I don't want to see this table displayed in 2 pages as below:
I want to force the smartform to display my table in a new page if the table is divided in 2 pages as above ...
Thx.
Rachid.
2014 Jan 27 3:28 PM
Hi Rachid -
I understand you need the table to be printed in one page. If the table is getting printed 5 rows in 1st page and 5 page in 2nd page, you want to print them in 2nd page.
In that case, first check how many rows of a table can be accomodated on page says 15 rows and if you have only 5 rows that can be accomodated in the 1st page then you can put the command very begining of the table based on the total records of the table.
As per the screen shot you provided in your 1st post, add 'Program Lines' after the Text element 'DIVIDER_HD_COND' to determine how many lines you in the table 'TABLEKOND'.
Use - Describe table TABLEKOND lines tb_cnt.
Then after KBETR_BTRMW Code, you can put 'command'.
Also 'Condition' tab of the command you can set the counter (example tb_cnt > 5) .
Note here I assumed 5 lines can be accomodated in 1st page. if u have 10 lines that can be accomodated then you can put the condition as tb_cnt > 10.
Also please note if your 2nd page can maximum 20 lines and TABLEKOND has 21 lines. then it will be printed in 2nd and 3rd page.
Let us know, in case any further issues.
Regards,
Atul Mohanty
2014 Jan 27 4:16 PM
Ok, I will go ahead in that way Atul ... I have searched many others ways, in conclusion it's not possible to manage the break page with the graphic interface for a loop statement. 'will let you know.
2014 Jan 27 10:47 AM
Hello,
Please place your break point in internal table which use in the table ,in source code.F8 copy search the itab by naim in main programe
Thanks
Sam
2024 Jun 20 1:56 PM
2014 Jan 27 10:49 AM
Hi,
Kindly search the forum before asking questions -
Refer Sandra Rossi's thread on Smartforms- FAQ
Smart Forms FAQ - ABAP Development - SCN Wiki
Regards,
DPM
2014 Jan 27 10:50 AM
Hi Rachid,
You can debug smart forms , from environment > function module name.
the go to se37 > enter that fm name.
then go to attributes >program name > User-defined Include-files ,then your table part _within some form) ..
First few line will be system generated & then you can check your table part,
Then you put break point & check.
For example I am attaching one screenshot also.
Hope it helps you.
Thanks
Gourav.
2014 Jan 27 11:42 AM
thx. but I am asking about "page break", not a "break point" ...
2014 Jan 27 10:54 AM
Hi Rachid,
not sure that it will work for you or not, but please see there is an option in the table node (where we put length of table), please check it and see.
Otherwise please see this help, which might help you
Page breaks in Smart Forms with Condition - ABAP Development - SCN Wiki
Page Protection for Tables (SAP Library - Smart Forms)
Actually i am not getting your question properly.
2014 Jan 27 10:54 AM
Hi Rachid Roughi,
First take the Function module generated by Smartform.or Just follow this path to put break point.
In main of you smartform Goto --> Envirment-->Function module name-->copy the fucntion module name .-->got se37 give copied Fm name and press display---->then go to Attributes tab and Double click on Program name -->Doble click on last include--->there you can search your main window table or internel table name ,and put break point .
start debugging the smart form.
Regards,
Hiriyappa.
2014 Jan 27 11:42 AM
thx. but I am asking about "page break", not a "break point" ...
2014 Jan 27 11:43 AM
Page break you can do as mentioned by others above do a right click create command page break
Nabheet
2014 Jan 27 3:34 PM
Hello Rachid,
Have you tryied to putting the line in a folder and having a page protection checkbox checked ?
2014 Jan 27 4:25 PM
Hi Anup,
Yes! We've got the same idea !
Well, I finally took the snake by the tail.
I created a New Folder and I ticked the checkbox "Page Protection". Afterwards, I have dragged and dropped the Table in the folder and I had this popup information:
In conclusion,
it is not possible to manage the "break page" for a Table directly with the Graphic Interface.
The Atul solution is the only one.
Best regards.
Rachid.
2014 Jan 27 5:00 PM
Hi.. Rachid,
Ooops.. din't thought of that...! Sorry... ! I guess a program logic would resolve it.. .!
please to post your final solution .
Thanks And Regards,
Anup D.
2014 Jan 27 11:05 AM