cancel
Showing results for 
Search instead for 
Did you mean: 

Form printing

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.