Quantcast
Viewing all articles
Browse latest Browse all 9052

Re: Create Grand total in smartform

Hi Snehashis,

 

It will be difficult to visualize your situation .

But see the following pictures, where Grand Total was computed.

 

 

Individual totals

Image may be NSFW.
Clik here to view.
0.JPG

 

 

For Grand Total calculation, Program lines was created as under, where you want this Grand Total.

Image may be NSFW.
Clik here to view.
fl.jpg

 

Then

Image may be NSFW.
Clik here to view.
test.jpg

Obviously SUM1 is flown from another field.  (Calculation filed)

SUM1, GTOT will be Global Variables. and S_TPREV will be from interface. (s_tprev can be in the form wa_ekpo-ebeln )

I hope you've understood that, SUM1 will be GTOT will be equal to S_TPREV in the first run of loop and as the loop runs the GTOT will be incremented by the S_TPREV value of respective line item, until the internal table ends.

 

 

Hope you get some clues from this.

 

 

Jogeswara Rao K


Viewing all articles
Browse latest Browse all 9052

Trending Articles