cancel
Showing results for 
Search instead for 
Did you mean: 

To get total of vbap-netwr

Former Member
0 Kudos

Hi,

I have just learnt Smartforms.

I want to print the Total of Vbap-Netwr at the end of the table in the main window - footer.

The problem i have is that i cannot define and initialize the varaiable of total (tot) and also how to apply the logic to get the total in the footer.

Please help me out.

Thanks,

Darpana.

Edited by: Darpana Ahire on Aug 29, 2008 11:50 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

please create Programe lines above the main window, and declare varaible in programe lines. and In main window in main window > calculation tab>in Operations: Total>Filed name: VBAP-netwr->Target Field Name: varaible declared in programe lines-->Time :After Loop.

display that varaible in window after printing that window clear that avaribale.

regards

Jana

Former Member
0 Kudos

Hi,

I tried the steps u suggested.

It shows an error : Field "TOT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . . . .

Do we have to declare it in global data.

if yes then please guide me with the steps.

Thanx,

Darpana.

former_member181995
Active Contributor
0 Kudos
Do we have to declare it in global data.
if yes then please guide me with the steps

if you are using TOT variable in some other window also than you need to declear in global data also else you can define it in program line code also by simply data statements.

Amit.

Former Member
0 Kudos

Thank you so much i have got it.

Regards,

Darpana.

Former Member
0 Kudos

Hi,

Yes Please Declare in the Global data Tot type NETWR.

Foloow below procedure:

In main window > calculation tab>

in Operations: Total>Filed name:netwr->Target Field Name: TOT-->Time :After Loop.

display that varaible in window after printing that window.

Clear:TOT.

Regards

Jana