on 08-02-2011 10:31 AM
Hai All,
I need logic for the following requirement in smartform,
I should print the subtotal of each group of line items that i have calculated in my report.\
for example Group-A has 1,2,3 line items.now i should print t total at the end of this particular group item in SMF.
similarly Group-B has 1,2,3,4 line items.now i should print t total at the end of this particular group item in SMF .
Hi,
Check the below link.
[http://wiki.sdn.sap.com/wiki/display/ABAP/SUBTOTALINSAP+SMARTFORMS]
Jshree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghav,
I guess you need to use Events option of table .
You could use 'Event on Sort End' followed by Command Node and 'Go to New Page' option of command node to print your data at group levels in different pages.
Regards,
Dep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
in your code , just use at end of <field name>
loop at itab."your loop.
"your write stmts
at end of <fieldname>."mention your group field name
sum.
write: wa_<yourfield>."which is used to pass into your form.
endat.
"your write stmts.
endloop.
hope this solves your problem.
regards,
kool.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you have the Driver program, then do the logic in your driver program and finally print those details in the smartform.
sort itab by group.
Loop at itab assigning <fs_tab>.
v_total = v_total + <fs_tab>-field.
at end of Group.
<fs_tab>-newfield = v_total.
clear v_total.
endat.
endloop.
Now use this new field in your smartform to print the totals.
Regards,
Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.