cancel
Showing results for 
Search instead for 
Did you mean: 

problem in giving page break in smartform

Former Member
0 Kudos

hi all,

i need to print a smartform on a preprinted paper..so the area where i have to print the totals is fixed on the paper..not like ordinary paper where the footer gets printed at the end of main window

now i have to print the line itemd ata in the main window..there can be maxm 44 lines to print this data ..form 45th line the area for printing the totals begins..i need to give a page break as posting date(budat) field changesand also the totals will be printed on the last page of each budat..say if the data for a posting date in the main continues in 3 pages then the totals will be printed in the 3rd page...now for page break i have given command node in the sort end event of budat..but teh problem is that the new page will be triggred as the poosting date changes and then the totalls will not get printed as the totals are in diffrent temp[late in a secondary window...Can u suggest a method in which the totals will get printed at the last page of a particular date and then the new page will be triggered..Please help me as this is very urgent...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi vijaya,

put a text node (which displays the total rather than putting it in a separate window) under the 'sort end of budat' node before the command node.

Regards,

Vidya.

Former Member
0 Kudos

hi ,

Include one more field in the internal table at which you are looping to give the display .ie flag type c .

sort internal table by budat .

Loop at internal table .

at new budat set flag = 'x' .

endloop .

clear flag for the first row in internal table .

Now pass the itab to smartform and in command give the condition flag = 'x' .

Regards