cancel
Showing results for 
Search instead for 
Did you mean: 

Lineitems in smartforms

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

I tried that , but its not workng , can u tell in detaill ...

Former Member
0 Kudos

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..

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hello Dina,

I tried that logic when i am passing line item 6 its apper fine on first page but when i want to pass line litems more than 6, that time smartforms show error like

"No table line started .output to cell not possibl

Please tell ur suggestion

Former Member
0 Kudos

Hi,

Please refer the link

before the cell only you have to create the program line and command window.

Regards,

Dhina..