Skip to Content
avatar image
Former Member

Form printing

Hi ,

I am developing a customized smartform. There in the end of main window , I have to display total for field netwr, which is the last column in the table. For this what to do?

Rgds,

khadeer.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 12, 2008 at 09:45 AM

    Hi,

    use program lines and pass the field which has to be added and use a new variable declared in the Global Definitions of the same type as of the field.

    then display the field after the loop wherever required.

    Regards,

    Ram

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 12, 2008 at 09:53 AM

    Hi Khadeer,

    search for SF_EXAMPLE_* in Transaction Code SMARTFORMS . these will helps u lot in Becoming familiar with Smartforms.

    check this link ..

    http://saptechnical.com/Tutorials/Smartforms/Loop/Create.htm

    Reagrds.

    Eshwar.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 12, 2008 at 10:22 AM

    hi,

    you have to create in main window table type

    this is for PAGE total

    in that table you options like TABLE

    DATA

    CALCULATIONS

    OUTPUT OPTIONS

    CONDITIONS

    in CACULATIONS tab u need to give

    operation--->total

    Field name-->wa_final-total_amt

    Target field name-->l_total_amt

    Time--->afterloop.

    l_total_amt declared in global declarations

    For total amount

    in FOOTER window you create program lines

    give input parameters and output parameters

    L_TOTAL_AMT V_TOT_EXCL

    L_CONS_AMT V_TOT_CONS

    L_TOTAL_AMT V_TOT_TOTAL

    in total cell create pragram lines in that give like

    V_TOT_EXCL = V_TOT_EXCL + L_EXCL_AMT.

    V_TOT_CONS = V_TOT_CONS + L_CONS_AMT.

    V_TOT_TOTAL = V_TOT_TOTAL + L_TOTAL_AMT.

    CLEAR:L_EXCL_AMT,

    L_CONS_AMT,

    L_TOTAL_AMT.

    in text generak attributes

    give v_tot_excl like same another two

    Regards,

    Bhupal.

    Add comment
    10|10000 characters needed characters exceeded