on 09-13-2011 7:13 AM
Dear All,
In smartform when my line items are more than 6. then only 6 line items are i want to print on Page1 and remaining part i want to print on page2.
please give me code hint.
create a 2nd page, with just the main window.
Assign this page as next page to your first page.Data would automatically flow to it, once pag1 is full.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi amolban ,
Try to keep command node in main window ,before that count the no.of line items in the internal table and check the condition in command node like
say total no.of items is 10(LV_tot)
and increase a variable(LV_Cont) each time in main window
LV_COnt = lv_cont + 1.
and keep a condition lv_cont > 6.
Skip second page .
in command node goto next page as second page.
Thanks
Surendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in the table main area write create the program lines and write the code like
if flag = 'X'.
clear flag.
endif.
line = line + 1.
if line GT 6.
flag = 'X'.
endif.
after that create the command window in the condition tab give flag EQ X
and in the general Attributes check the check box for goto new page and give the 2nd page.
Regards,
Dhina..
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.