Skip to Content
avatar image
Former Member

Smartform Problem

Hi All,

I have an urgent requirment in smartform. I am having two pages in smartform, one is normal layout page and other is terms and conditions for invoice.In first page multiple items will be there so at the bottom of the main window i have to display the Total amount due window with totals and currency . but this total window has to display at the end of main window .but it displaying on every page. For example iam having 5 pages totally on the last page iam having terms and conditions, first four pages iam having the items and header part , but i kept command in first main window to trigger the second page due to this i am unable to print the total amount due window at the end of main window . ie on 4th page but here its displaying on each and every page expect terms and condiitons but i want to display this on 4th page ie last before. Please give the solution for the above query and in that i need to display the terms and conditions as the second page.

Get more rewards.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Mar 15, 2007 at 07:26 AM

    Hi Satheesh,

    In that Window, you will get an option to Print after the main window, so it will print after the main window, there will be a check box in that window parameters. select that checkbox

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2007 at 07:28 AM

    Hi,

    You can do the following:

    LAST_PAGE is the terms & conditions pag. So, create one text element LAST like the following.

    <b>/: LAST

    /: NEW-PAGE LAST_PAGE</b>

    And in the driver program .

    inside loop at itab write the following:

    AT LAST.

    CALL FUNCTION 'WRITE_FORM'

    EXPORTING

    ELEMENT = 'LAST'

    FUNCTION = 'SET'

    TYPE = 'BODY'

    WINDOW = 'MAIN'

    EXCEPTIONS

    ELEMENT = 1

    FUNCTION = 2

    TYPE = 3

    UNOPENED = 4

    UNSTARTED = 5

    WINDOW = 6

    BAD_PAGEFORMAT_FOR_PRINT = 7

    SPOOL_ERROR = 8

    CODEPAGE = 9

    OTHERS = 10

    .

    ENDAT. " AT LAST.

    I think this resolves your problem.

    Regards,

    Sandhya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2007 at 08:11 AM

    hi Satheesh,

    i think u r printing total and term and condiotions on the same page. wht you have to do is.. display the total in the table FOOTER area. and if u want the total to be printed only at the 4th page not in the every page then in the output options of the <b>tabel-->FOOTER... tick the "at End of the table", and untick the "at page break</b>".

    fot the terms and condtion you don't have any problem am i correct!!.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2007 at 08:54 AM

    Hi,

    Another way of solutions is. create one window below your main window and keep totals in that window not in the main window. In the conditions tab click the condition after main window.

    For the terms and conditons also do the same thing if it is not printing just keep a click on the check box in the conditions tab of the TEXT element.

    Br,

    Laxmi.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2007 at 10:16 AM

    First select the total window,

    go to ---> Conditions tab

    select Only after the main window.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 15, 2007 at 04:27 PM

    Hello Satheesh,

    You can create an new window to print the Total Amout due and make it trigger in the end of main window.

    Use <b>collect command</b> in the main window ( inside main area of table ) for the total amount due.

    Use command in the main area table and make sure it prints (Terms and Cond) after the main window.

    refer ex: SF_EXAMPLE_01

    Add comment
    10|10000 characters needed characters exceeded