Skip to Content
avatar image
Former Member

dynamic next page

Hi All,

I have 2 pages in my smartform. 1st page displaying some header data and secon page displaying the item details. Now the requirement is if items are only one means I have to print that line item in first page empty window and it should not trigger the second page. if more items are there means 2 nd page should come. Please tell me if have nay idea

Thanks,

Suma.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 10, 2008 at 12:40 PM

    Hi Suma,

    This functionality can be achieved automatically,

    first and second page should be exactly same except some conditions in data display.

    and one more thing is you need to give second page as the next page option under general settings of first page.

    Hope this clue may help you

    -Sujatha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      are you printing the line items in first window?

      Suma,

      that means.. you are not all displaying (mentining) the line items in the 1st page, then it will not appear on the first page.. even it has single line item.

      You need to mention or include the line items on the 1st page to get them displayed when you have only single line item in your document.

      -Sujatha

      Edited by: Sujatha Reddy on Dec 10, 2008 2:17 PM

  • avatar image
    Former Member
    Dec 10, 2008 at 01:09 PM

    No , In 2nd page 4 window s are there in that 4th window displays the line items. Where as in 1st page I have 20 windows and they are compltely different from 2nd page windows.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      in first page alos create one MAIN window with hight of 10MM, and dispaly the itemdata.

      before MAIN window create the PORGAM LINES in that you have write below code

      DESCRIBE TABLE gt_lips LINES gv_lines.( discribe number of records on your internal tbale)

      in first page MAIN window in conditon TAB put below condition.

      if gv_lines = 1 trigeer the firstwindow otherwise it goes to NEXT PAGE.

      using comand you can call next page.