cancel
Showing results for 
Search instead for 
Did you mean: 

totals in table node

Former Member
0 Kudos

in table node im printing item ,amount etc

for eg: item amount

A 1000

B 2000

_________

3000

if there are only two items for that invoice no,total amount should get after the two items.If there are three items,total amount should get after the three items immediatly.how can i do that using CALCULATIONS option in table node.what are the parameters i should give?please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi srinivas,

try this,

in loop at the calculation tab define like this

Operation Field Name Target Field Name Time

Total L_WA_ITAB-FKIMG L_WA_TOT After Loop

this l_wa_tot u can define in global definations like this at the global data tab for the target field name,

Variable Name Type assignment Associated Type

L_WA_TOT TYPE FKIMG

and at the currency/quntity tab you should define like this for the itab filed,

Field Name Reference Field Data Type

L_WA_ITAB-FKIMG VRKME QUAN

just do this carefuly then your problem get solved,

reward points if helpful.

regards,

seshu.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Srinivas,

First use Footer area in the Table for Printing Total, so that it displays aftet all

the line items.

To get totals using Calculation option,

In CALCULATIONS Tab,

select "TOTAL" under Operation ,

Give the Internal field name (for which u want to find the Total) under Field name.

Give the Variable name )in which ur storing the value) under Target Field Name.

Under Time, U can select at which point the operation should be executed,

depends on ur requirement.

See the F1 help for more clarification..

Thanks

Dinakar.

arul_murugan
Active Participant
0 Kudos

hi,

The best way is to calculate the total amount in the print program itself then append the field to the final table and move it to the smart form table.

regards

arul

Former Member
0 Kudos

thanku for ur reply.i did in the same manner.but for passing the value from printprogram to smartform i declared a variable in IMPORT option.but for that field it's displaying warning message 'field xxxx has no defined value'.even i gave the default value as 0.but it's displaying the same message.

thanks&regards

srinivas k