Skip to Content
avatar image
Former Member

Main window of second page not coming while taking more than two order no.

Hi All,

I have a problem while printing the smartform. I have to print order data, notification data, confirmation data and operation details according to order number AUFK-AUFNR. I have declared two pages as page1 and lastpage. Page1 consist of main window and in next page secondary window of same size. Need is like that after selecting order details from output it has to print the same no. of order details in every single page.

Just before the end of main window in page1 i put the logic to change the pages and then commands for both the pages.

CLEAR : g_newpage, g_lastpage.

g_tabix = g_tabix + 1.

IF g_tabix = g_tblcnt.

g_lastpage = 'X'.

ELSEIF g_tabix < g_tblcnt.

g_newpage = 'X'.


In Initialization of smartform i have put g_tabix = 1. and DESCRIBE TABLE IT_ORDER LINES G_TBLCNT.

Everything is fine while i am selecting 2 order numbers from the output list but when i increse the selected order count to more than 2, it is printing just first order detail and the header for second order but nothing is present in the main window of second page.

Really need the help ASAP.

Thanks in advance.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 24, 2011 at 12:51 PM

    Solved by friends help.


    Add comment
    10|10000 characters needed characters exceeded