Unable to calculate the Sub totals
Hi,
Currently we are in BI7. I had created a query based on aging buckets. it has all the calculations in the columns section. I have to calculate the sub totoals based on a particular info object Customer. For that I made the Result rows of the reamining info objects in the query to Always supress and for the info object Customer (based on which I have to show subtotals) I made it as Always Display.
When I execute the query, I get 0 in the subtotals. Can any one let me know how do I get the sub totals correctly instead of 0's.
Thanks in Advance
Hi Kartikey,
Thanks for the response. I am not calculating the subtotals at the in the query definition and the sub totals are based on the info object 0customer's setting in the query designer to suppress the result rows. In RSRT also I am unable to get the sub totals.
If I remove the calculations (aging buckets) and display direct key figure in the columns, I am able to get the sub totals.
Is there any specific reason why the sub totals can not be calculated if the columns are calculated key figures/new formula.
Can any one let me know how to fix the sub totals.
Thanks
Similar Messages
-
Hide grand total field on ALV report, But keep the sub total fields
Dear Experts,
1) How to hide grand total field on ALV report, But keep the sub total fields.
2) How to populate rate per ton & calculate total price according to the qty in delivering document.Dear Experts,
1) How to hide grand total field on ALV report, But keep the sub total fields.
2) How to populate rate per ton & calculate total price according to the qty in delivering document. -
Problem with printing the sub totals
Hi,
I am having a problem with smart forms in printing the line items of invoice.
I need to print the sub total of each page and need to display the sub total in the footer, with the caption 'Balance C f/w'. It works fine in some cases.
In some cases, the sub total is getting printed wrongly, because its adding the amount of the next page's first line item also. I checked the form page by printing SFSY-PAGE along with the line item's text. It's observed that, the vlaue of SFSY-PAGE for the first line item's displayed in the second page is '1'. Due to this, the amount for this line item also is getting calculated with the sub total of the previous page.
Could you please suggest a solution for this problem?
Thanks & Regards,
JohnHi,
In smartforms, in the general attributes of the FIRST page the Mode for the page counter should be 'Initialize counter' and for the NEXT page it should be 'Increase counter'.
Please check this in your smartform.
Regards,
Ram -
How to calculate the Page total in Excel format
Hai all,
How can we calculate the page total in Excel format, directly in RTF without using the summary column in the RDF.
Regards<?add-page-total:TotalFieldName;’element’?>
where
TotalFieldName is the name you assign to your total (to reference later) and
’element’ is the XML element field to be totaled.
You can add this syntax to as many fields as you want to total.
Then when you want to display the total field, enter the following syntax:
<?show-page-total:TotalFieldName;’Oracle-number-format’?>
Pls refer XML Publisher user guide for more info on this.
Kiran -
Hi To All,
In scripts i need to calculate the page totals.that means for a customer i have lot of invoices for example my line items has been displayed in three pages, then in 1st and 2nd page i need to calculate the page total.and then for 3rd page i need to calculate the total.(but i don't that for a customer how many invoices are there).very urgent........
U can check the standard form : f140_acc_stat_01
correspondence type is:sap06
For the above form i made modifications as well here i need to get the valuse for due now, due later and past due.can any one provide me the logic or field mappings.
<REMOVED BY MODERATOR>
Thanx and regards,
loki
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 11:37 AMhmmm ok, i dont aks why you need that
ok in your SAP-SCRIPT form there is a text element called "ITEM_LINE".
this is beeing called once for every ITEM you print.
in this text element make a external perform.
like:
/E ITEM_LINE
/: DEFINE &ITEM_COUNT& = ' '
/: perform calculate_item_count in program YOUR_PROGRAM
/: changing &ITEM_COUNT&
/: endperform
your external perform shoulöd then look like:
form calculate_item_count tables in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
statics: lv_count type i.
lv_count = lv_count +1.
read table out_tab
with key name = 'ITEM_COUNT'.
if sy-subrc = 0.
out_tab-value = lv_count.
modify out_tab index sy-tabix.
endif.
endform.
well the variable ITEM_COUNT you defined in your form is now accesible throughout the whole form, and can be printed, like other variables.
i hope i got you right this time
Edited by: Florian Kemmer on Feb 19, 2008 4:59 PM -
Just the sub totals in ALV ... is it possible
Report RCATS_APPROVE_ACTIVITIES
transaction called cats_appr_lite that displays a ALV report output
This report displayes the employees entered times in CATS and can be used by HR admins or managers for approval.
When the manager executes the report shows the times for each day
like it will show
PERN Date Time Unit
1000 1st jan monday 8 hours
1000 2nd jan monday 8 hours
1000 3rd jan monday 8 hours
1000 4th jan monday 8 hours
1000 5th jan monday 8 hours
And after i set the totals / sub totals for PERNR it also shows me another line
1000 40 hours
In this ALV report I just want to see the totals line like
1000 40 hours
and not the line items.
Idela scenario is I want to see the line items when clicked on the Totals line
1000 40 hours
Like i double click on the totals and see
1000 1st jan monday 8 hours
1000 2nd jan monday 8 hours
1000 3rd jan monday 8 hours
1000 4th jan monday 8 hours
1000 5th jan monday 8 hours
and from there on I can further navigate as required and currently avialable.
IS this something thatsome has every worked on. IS it technicallyfeasible with ALV reporting to show just the sub totals on the first page ( that is by not modifying the program but by just changing the layouts).You can achieve this with the layouts:
First run your ALV.. now do the subtotal based on your employe... you will have
new line with * in front of it.
1000 1st jan monday 8 hours
1000 2nd jan monday 8 hours
1000 3rd jan monday 8 hours
1000 4th jan monday 8 hours
1000 5th jan monday 8 hours
*1000 40 hours
Click on this astrick ... it will collepse the line items...
Now, save you layout by pressing the "Save layout" button.
Next time run your report with this newly crated layout.
Regards,
Naimesh Patel -
Color the sub-total row in an alv-grid
Hi all.
I work on SAP 4.7 WAS6.20 and output a table with the cl_gui_alv_grid. I´m able to color special rows (or columns) in the alv grid. But I want to color individually the sub-total lines (like the lines before) and don´t want the yellow color for all of the sub-total lines.
Do you know how to color the sub-total-lines?
Thanks a lot.
MichaelHi,
U can color an individula row see the link below
Color a line
The steps for coloring a line i the grid is much the same as making a traffic light.
* To color a line the structure of the table must include a Char 4 field for color properties
TYPES: BEGIN OF st_sflight.
INCLUDE STRUCTURE zsflight.
* Field for line color
types: line_color(4) type c.
TYPES: END OF st_sflight.
TYPES: tt_sflight TYPE STANDARD TABLE OF st_sflight.
DATA: gi_sflight TYPE tt_sflight.
* Loop trough the table to set the color properties of each line. The color properties field is
* Char 4 and the characters is set as follows:
* Char 1 = C = This is a color property
* Char 2 = 6 = Color code (1 - 7)
* Char 3 = Intensified on/of = 1 = on
* Char 4 = Inverse display = 0 = of
LOOP AT gi_sflight INTO g_wa_sflight.
IF g_wa_sflight-paymentsum < 100000.
g_wa_sflight-line_color = 'C610'.
ENDIF.
MODIFY gi_sflight FROM g_wa_sflight.
ENDLOOP.
* Name of the color field
gs_layout-info_fname = 'LINE_COLOR'.
* Grid setup for first display
CALL METHOD go_grid->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_layout = gs_layout
CHANGING it_outtab = gi_sflight
see the link
http://www.sapgenie.com/abap/controls/alvgrid.htm -
Unable to calculate the price using the bapi BAPI_SALESDOCU_CREATEFROMDATA
hi guys,
i am able to create a sales order using the bapi BAPI_SALESDOCU_CREATEFROMDATA1' .
the problem is that we are unable to calculate the price the amount column in the sales order is showing 00000 even though the condition has been taken from condition master.
thanks.
Edited by: nishant patel on Jul 21, 2008 9:59 AM
Edited by: nishant patel on Jul 21, 2008 10:00 AMHi,
You need not pass the condition records for filling the pricing records in the sales order. The functional consultant will maintain all the necessary pricing procedure and the condition records and it will flow from there.
May the pricing procedure is not correctly defined for that particular soldto party in the system, once that is maitained then everything will flow correctly.
Thanks,
Mahesh. -
Can I create order forms that calculate the exact total with taxes?
Can I create order forms that calculate the exact total with taxes?
The customer needs to know exactly how much everything will cost before submitting. I can handle the actual payment portion manually.thanks for the info;
I'll inform the admin dude that they need an upgraded acrobat to do forms. -
Document Settings - Calculate the row total using the unit price
Hi All,
I'm using SAP2007A PL37, the option "Calculate the row total using the unit price" in Document Settings is no longer available. Is there any updates on this issue?
Thank you,Hi Marlon,
In 2007A, by default, new database would be created without this
checkbox activated.
However, there is a way to bring this checkbox back to the configuration
screen, even if it is a DB newly created in 2007A. In order to do so it
is necessary to do as follows:
1) Open B1 2007A
2) Go to Help -> Support Desk -> Activation Request
3) Copy the ASCII string that appears in the top textbox ("Customer
Request Code").
4) Open a Support ticket stating that you want the "Calculate Row Total
by Unit Price" checkbox activated for the specified system (Copy the
string in the step 2) into a text file and attach it to the message).
5) VERY IMPORTANT: State in the message also the Business Impact leading to this request. In your case you should just say that your AddOn needs this option changed in order to work correctly.
6) You will receive a reply from B1 Support with a number to be entered
in the "SAP Support Code" textbox in Help -> Support Desk -> Activation
Request
7) Click on OK and the checkbox will be displayed thereafter.
Hope this can be helpful.
Best Regards
Helen Sun -
How to calculate the Grand total
Hi all,
I have a table that has three column as Instrument_Name, Instrument_Currency , Value.
I am using the "table view" to show the data on dashboard.The table shows instrument name , its currency and a value(in that currency).
Could it be possible that while displaying the grand total of "Value", i should convert the value in a single base currency as USD.
ThanksHi,
Well you can and should create a total on the calculation of the Margin%
But you have to define the calculation correctly, for example if you will use in the calculation the fields without aggregation
you will get wrong output but if you'll define the calculation as something like:
CASE WHEN ( SUM(Revenue)+SUM(Cost)) = 0 THEN 0 ELSE SUM(Margin)/( SUM(Revenue)+SUM(Cost)) END
and then create a total with SUM Aggregation I think you'll get what you asked for -
Unable to calculate the -ve overhead on WBS in CJ44
Hi All
I need your help for the below scenario with respect to OH calculation, please advise me
Post journal against network 100$
Settle to WBSE 100$
Post OH calculation 5$
Post reversal journal -100$
settle to WBSE -100$
My expectation when I run CJ44 is -5$
But this is not happening
could someone help me what could be the casue?
Thanks in advance
NNHi Naresh,
if I have understood correctly..
You had posted $100 toNWA and settled this to WBS and then ran CJ44 at the WBS level and it added $5 as an OH.
Now you have posted a Journal entry of -$100 to negate the value at the WBS level and re-run the CJ44 and want to see a negative -5 to be added..
Is my understanding correct here?
for this to happen you need to run the reversal in CJ44 to reduce the already added $5 in the OH for the WBS..
If you are saying that while doing a Journal entry for -$100 you want system to calculate negative OH Please confirm what's the minimum amount you have choosen for OH to be calculated in the OH settings?
Regards
Sammar -
Please resolve the maps issue on iO6 as it is not working properly resolution is very bad not getting correct locations direction are not available appears while calculating route
Please resolve the maps issue on iO6 as it is not working properly resolution is very bad not getting correct locations direction are not available appears while calculating route
-
How do u calculate the thd ( total harmonic distortion) and the power factor using 5922
are they basic labview vi that does this? is any one willing to share idea with me ...
Double post.
Please refer to this thread:
http://forums.ni.com/ni/board/message?board.id=170&message.id=203504 -
Sub-totals and Totals calculations....?
How to Calculate the Sub-totals and Grand totals in ABAP Programs.
Hi Bhaskar,
In my opinion this can be acheived in two ways:
1. Using ALV GRID DISPLAY
2. Using AT NEW , ON CHANGE OF , etc events.
1. In the ALV field catalogue u create entries for all the fileds to b
displayed in the output list.
Here, we need to put DO_SUM = 'X' .
eg
****************fieldcatalog*********************
data:anytab type slis_t_fieldcat_alv with header line.
**************pgm name**********************
data:anypgnm type sy-repid.
**************events*************************
anytab-fieldname = 'MATNR'.
anytab-seltext_m = 'Material Number'.
anytab-col_pos = 0.
anytab-outputlen = 20.
anytab-emphasize = 'X'.
anytab-do_sum = 'X' . <----
here it is.
append anytab to anytab .
clear anytab .
Now wen u call the fm REUSE_ALV_GRID_DISPLAY , plz pass anytab ie fieldcatalog and the tabel with records to b displayed .
this would sum the fields at the end.
2. Alternately ....for SUb-totals ;
Sort itab in an ascending manner.
Data : wa_itab like line of itab,
wa_subtotal type i.
" fieldname1 in itab is the key field
" fieldname2 is the value field
LOOP at itab into wa_itab .
wa_subtotal = wa-subtotal + itab-<fieldname2>.
AT END OF <fieldname1> .
" your programming logic for subtotal
Write :/ wa_itab-fieldname1 , wa_subtotal.
Clear wa_subtotal.
ENDAT.
" write :/ ....if u need to write any lofgic values ....
ENDLOOP .
Note : plz sc if a field in itab that is left of fieldname1 changes
the AT END OF event is triggered.
Therefoe , see that pur key fields towards left in itab.
FYI : u can try ON CHANGE OF....ENDON....
AT NEW .....ENDAT
AT LAST....ENDAT
AT FIRST ......ENDAT events for ur own understanding
i hope this helps u.
Regards
panakj
Maybe you are looking for
-
Copy Control For Individual Purchase Order
Hi, experts, can you explain to me concretly how to customize the copy control for individual purchase order? We have of course the item category TAB (billing relevance: delivery-related billing) and Sales Order (delivery related billing type: F2). H
-
Adobe PDF Document in Safari not working
Hello, Recently put Abobe Creative Suite on my MacBook Pro - which is working fine. But when I go to view a PDF online with Safari it brings up this message: Tried reinstalling Adobe Reader and Adobe Acrobat works fine generally opening PDFs so not s
-
Hi, Can anyone help me how to create a process where a column date automatically fill by sysdate
-
I have an MSI MS-6334 (815M Pro) M/B with a Celeron 366.Currently my BIOS shows that the highest Multiplier Setting supported by it is 8.But in the CPU support page of my M/B in the MSI website shows that my M/B can support upto PIII 1G (10x100 Mhz.)
-
Hi Experts, Here is our question related to PIP4A3 in Rosettanet. Please help We have configured 2 Scenario's. One with Sender as HTTP Adapter and Receiver as RNIF2.0 Adapter. Another Scenario RNIF2.0 as Sender and RFC adapter as receiver. Both these