cancel
Showing results for 
Search instead for 
Did you mean: 

how to Increment pages

Former Member
0 Kudos

i have created a script in smart form .. regarding provident fund and loans its working alright once i select single pernr ... i want that if i select more than one pernr.. the report may print all the data on diffrent pages .. with respect to the pernr

kindly help me in this regard

Amamd

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If u want the New Page for every pennr in Scripts, Just use Function Module CONTROL_FORM and command NEW-PAGE in the loop of the internal table. also define PERNR as ur first field in ur internal table & SORT ur internal table with PERNR.

Eg:

SORT it_pa001 by pernr.

LOOP AT it_pa001.

at end of pernr.

call function 'CONTROL_FORM'

exporting

command = 'NEW-PAGE'.

endat.

endloop.

If u want New Page in Smartform, Just create a COMMAND (just right click on TEXT and select COMMAND) 'Go to New Page' and give the first page name.

Hope it helps!!

Rgds,

Pavan

Former Member
0 Kudos

where should i call this function module ??

Former Member
0 Kudos

Hi,

U should call in ur driver program in the LOOP of the internal table. use control break events (AT END OF FNAME) to generate it for every new value.

Rgds,

Pavan