cancel
Showing results for 
Search instead for 
Did you mean: 

how to display pages depending on records.....

former_member193357
Participant
0 Kudos

hiii

iam new in smartforms so pls help....In smartfoms iam getting 10 records as o/p depending on kunnr in 1 page ,but now i want all this 15 records in a new page i.e each record in 1 page i.e 15 record in 15 pages.... how to do that...

i think we have to use loop but don't know how to do it...

thanks.....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi when u r looping the ITAb call the COMMAND node to Goto NEWPAGE and call the SAME page agian.

eg. u r in PAGE1 then inside the loop call the PAGE1 using the COMMAND node

Answers (2)

Answers (2)

former_member533584
Contributor
0 Kudos

Hi,

In loop use <b>'CONTROL_FORM'</b> fm

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

COMMAND = 'NEW-PAGE'

EXCEPTIONS

UNOPENED = 1

UNSTARTED = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF. " IF SY-SUBRC <> 0

Regards,

ananth

Former Member
0 Kudos

HI Hemant,

we can mention condition like LOOP UPTO 15 records.

Print all these 15 records in one window and remainng loop from 15 to 25.

mention other window.

Hope this helps you, reply for queries, Shall post you the updates.

Regards.

Kumar