on 05-14-2008 1:27 PM
Hi
I have created one smartform, the requirement is to create one form for each order in a period(month).
This form has 4 pages. for eg. i have three orders for the month of may. So three forms should be created, each having 4 pages.so in total there should be 12 pages(3 forms X 4pages each).
the problem i am facing is that an extra page is created(13th). so how to avoid that extra page which is not required.
Please help me..
Hi,
Along with that define the two variables in the global definition as
g_cnt type sy-tabix.
g_flg type c .
->in the initialization tab
g_cnt = lines( the table name which you are using in the main
window to display sales order).
Now you have the total no of lines in the g_cnt.
in the loop which is in main window write the program line pass the output parameter as g_flg.
in the condions tab give the condition as g_cnt = sy-tabix.
in the source code of that program lines
g_flg = 'X'.
now for the command node in the codition tab give the condition as g_flg ne 'X'.
Now you will not get the extra page.
Thanks,
NN.
Edited by: Nethaji babu on May 15, 2008 8:05 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Where are you printing the orders in the first page or in the remianing three pages.
If you are printing the orders in the first page you might have
been looping the internal table and you might be using the command node you have to apply previously reply logic in here.
What is for the text elements you have created will that contain any data or it is empty.
Thanks,
NN.
Hi,
I am not printing any orders. But i am picking the details based on the sales order and printing that details.There i am looping the internal table. So if there is no details then also it is printing the first page. That page is not empty also. Like it is having so many text elements so it is printing all the text elements.
Hi,
In that loop ar you using the event node If you are using it should be end of event node not at begin of node.
If you are printinig the sales order details that means you might be writing the driver program in that driver program itself you have to stop like
After select statement in the driver program we have to check the sales order internal table if that table is empty it we have to give error message and stop the processing there itself in the driver program.
Thanks,
NN.
I want to know to things
1).Whether any new lines/ empty lines are there in your main window check all the text elements by click the text elements edit icon.
2).want to know the pages you define in your
form & its sequence
i.e. Page & its Next Page
& any command nodes are used for any page
please let us know all this.
Thanks,
Phani.
in your 4th page do you use any table? cuz sometimes if you had created a table which is nearly the size of the page, then there is a possibility that with some data being displayed this table can grow bigger and move to next page, there by creating a blank page. Mostly this problem is due to design issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.