Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 09, 2007 at 06:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09, 2007 at 06:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 09, 2007 at 06:38 AM

    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

    Add comment
    10|10000 characters needed characters exceeded