Want to Display only Subtotals
Hi All,
I Have report which Dispays Segment wise in that currency wise totals.
I want to Display only Subtotals in the Report currency wise.
Not to Display grand Total and each line items.
Can any help me how to go ahead.
Points will be rewarded
Thanks in advacnce
Ramesh
in the layout click on the layout symbol and check the subtotal checkbox for the filed you want to display the subtotals.. sort as per the sequence you want and save the layout...
this can be done if the field catalog is defined to do sum for that fields..
Similar Messages
-
ALV: how to display only subtotals and total rows in the output
ALV: how to display only subtotals and total rows in the output
i am getting output
i am getting subtotals for respective fields
but i want to display only subtotals and totals rows in the output
i have tried the
totals_only parameter in slis_layout_alv
but it is not working.hi,
For TOTAL
For the amount field / quantity field in the field catalog give DO_SUM = 'X' for WHOLE total
For SUBTOTAL
For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
DATA: lt_sort type SLIS_T_SORTINFO_ALV,
ls_sort type slis_sortinfo_alv.
CLEAR ls_sort.
ls_sort-spos = 1.
ls_sort-fieldname = 'Give the field name that you do the sum'.
ls_sort-up = 'X'.
ls_sort-subtot = 'X'.
APPEND ls_sort TO lt_sort.
fieldcatalog-do_dum = 'X'.
for subtotals
WA_SORT-FIELDNAME = 'ERSDA'.
WA_SORT-SPOS = '2'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOTAL = 'X'.
APPEND WA_SORT TO IT_SORT.
Refer
http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
regards,
Prabhu
reward if it is helpful -
ALV: how to display only subtotals lines in theoutput
hi
in the alv list output
if we display subtotals based on 3 feilds out of 10
we see subtotals (sum) based on the end of each field
now i want to display only the lines which are displayed as subtotals in the output
we have parameter
totals_only(1) type c, " show only totals
in the structrure slis_layout_alv
i have used it but i can see no change in the outputhai
data : GT_SORT TYPE SLIS_T_SORTINFO_ALV,
ABAP List Viewer
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME = 'ITAB1'
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = GT_SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = GT_EVENTS[]
IT_EVENT_EXIT =
IS_PRINT = GS_PRINT
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = ITAB1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM.
DATA SORTING AND SUBTOTAL
DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD1'.
GS_SORT-SPOS = 1.
GS_SORT-UP = 'X'.
GS_SORT-SUBTOT = 'X'.
APPEND GS_SORT TO GT_SORT.
CLEAR GS_SORT.
GS_SORT-FIELDNAME = 'FIELD2'.
GS_SORT-SPOS = 2.
GS_SORT-UP = 'X'.
*GS_SORT-SUBTOT = 'X'.
APPEND GS_SORT TO GT_SORT.
ENDFORM.
regard
nawa -
I HAVE A 4 QUARTERS , I WANT TO DISPLAY ONLY 1 QUARTER.
Hi Guru's
i have 4 quarters in my query , but i want to display only one quarter, can u explain the detaile scienario?
Thanks & Regards,
NanduHi,
If you have Infoprovider in BW with data, then you can build a query, based on that infoprovider you can build Query in Query Designer.
TCode is RRMX..in BW or you directly access from Start from Desktop -->All Programs --> Business Explorer.
Coming to Quarter you can hide them in Query , selecting option as hide in Query Designer.
Hope it helps you....
Reg
Pra
Edited by: prakash satya on Feb 11, 2008 12:55 PM -
I need to display only subtotals in the ALV and not the details.
Hi,
I have an ALV report . I have totals and subtotals in the same with details.
My requirement is to have only subtotals and totals in my output. I do not want the details of all the items. I want only the subtotals row.
Pls advice on this.Hi Shweta,
FOR TOTAL:
there is a property of fieldcatalog, that is do_sum.
USE COED LIKE:
PERFORM fieldcat USING:
'1' 'KUNNR' 'I_MARD' 'CUSTOMER NO' ,
'2' 'DMBTR' 'I_MARD' 'CURRENCY' ,
FORM fieldcat USING value(p_0029)
value(p_0030)
value(p_0031)
value(p_0032)
wa_fieldcat-col_pos = p_0029.
wa_fieldcat-fieldname = p_0030.
wa_fieldcat-tabname = p_0031.
wa_fieldcat-reptext = p_0032.
wa_fieldcat-do_sum = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
clear wa_fieldcat.
ENDFORM. " FIELDCAT
in final output you will get the total of currency field.
FOR SUB TOTAL:
decleare: i_sort type standard table of slis_sortinfo_alv,
wa_sort type slis_t_sortinfo_alv.
wa_sort-spos = '1'.
wa_sort-fieldname = 'field1'.
wa_sort-tablename = 'i_final'
wa_sort-subtot = 'X'.
wa_sort-group = 'X'.
append wa_sort to i_sort.
clear: wa_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = it_fieldcat
it_sort = i_sort
Hope this can solve your pbs.
Regards,
Tutun -
Want to display only certain manully created master data in F4 help?
Hello all,
We have created a Z infoobject (Char 10) and included in our cube. This Infoobject is mapped directly from DSO from another infoobject which has dates, when I see the data in the cube it looks good for this infoobject.
Now my requirement is, I have created a variable on this IO in the query and I want the users to see in the F4 help only the values that I manually maintain in the master data (I am creating master data records)
In the Bex Explorer tab of RSD1, I have selected "Values in Master Data table" and it shows me the values that I have created manually and also the values that got loaded in the cube from transaction data.
What is the setting I can use so the F4 shows only the values that I want users to see.
Any suggestions.
Thank you for your help in advance.Hi Kiran,
Are you using 3.5 or 7.0 query designer?
If it is 7.0 query designer then you can see the option "refresh variable as designed"
But if you choose this option "values from the master data" it should work.
I've used in my projects this option verymuch. it worked.
Other than that you may change the query generated program in SE38, to select the F4 options in the Variable.
OR
You can keep Default values in the variable for the User.
Regards,
Ravi Kanth -
How can I display only one value of a field with two or more values?
Post Author: skiabox
CA Forum: Crystal Reports
I have a field in my report with 2 or more values (depending of another field id).For example for id = 1 the report gives me 2 names in that field.For id = 3 the report gives me 3 names in that field.I want to display only one of these names in the id row.The selection of name is random.Thanks!Hello Tim, would barely fit in this situation since this code resides on the client’s interaction side of things. I’d recommend using JavaScript for this matter, e.g. var Data_FName1 = document.getElementById(‘Data_FName1’).value;. If you still opt for using CFML, then you’d go for proxying your JavaScript code to a CFC.
-
Display only positive values for a particular Keyfigure
Hi..
(Sorry, I accidentally posted this also in Datawarehousing forum, actually it related to BeX forum).
For a particular column(keyfigure) in my report, the user wants to display only positive values.
I used the formula from the one of the forums
(Keyfig > 0)* Keyfig.
This displays only positive values in the column as required. But, the result for this column is also affected. As the result is negative, it shows, zero in the result for this column.
Is there a way in which the result will not be affected by the formula?
I went into the properties of the particular keyfigure and chose Calculate Result as -> Summation.
It throws out the following error message
'Calculating result as...' was not executed
Message no. BRAIN141
Diagnosis
The function 'Calculate Results as ...' could not be used in all
instances.
The recalculation of a result cell always occurs based on the set of
detailed cells subordinated to this cell. This is the most detailed
level of the drilldown. Therefore it is not posible to recalculate in
hierarchical lists. The calculation of a results cell is not performed
if a cell or column with an expand symbol is assigned beneath it.
Otherwise the newly calculated result is changed every time one of its
lower-level nodes is expanded. This is not supported for technical
reasons and would also only confuse users.
Note, however, that calculating with "Suppress Results" is always
executed because the restriction described above does not apply in this
case.
NOTE:
The query shows the keyfigure values for a selected title, for profit center and territory hierarchies.
Any suggestions would be greatly appreciated.
Thanks,
Sai.Hi Deepu,
Thanks for the reply. I tried with ur formula.
LEAF(keyfig) gives all values "zero" for that particular column including the result.
NOT LEAF(keyfig) gives all values "one" for that particular column including the result.
So, ur formula gives the same values as of the present column values.
I tried condition, but it's not working...it says the following errors...
There is a condit. on Title, results row suppress. active on Profit Center
(conditional
Message no. BRAIN144
Diagnosis
Characteristic Title has an output condition and the 'Suppress Results
Cells' property is active for Profit Center. This generally leads to an
incomprehensible output list.
System response
As soon as an output condition is defined for a characteristic (here
Title), the system calculates the corresponding result cells and applies
the output condition. If a result cell of this type is later deleted by
the condition, all the lower-level detail and result cells in its
drilldown are suppressed. Because the result cell is suppressed the
Title rows are then omitted from Profit Center.
In extreme cases this can lead to an entirely empty list being
displayed, although the single rows or columns would be displayed if the
condition were deactivated.
Procedure
Check the query settings, especially results row suppression and the
output conditions.
Procedure for System Administration
You can deactivate this message Brain 144 with transaction RSRT1.
There is a condit. on Profit Center, results row suppress. active on
Territory as in SPL (conditional
Message no. BRAIN144
Diagnosis
Characteristic Profit Center has an output condition and the 'Suppress
Results Cells' property is active for Territory as in SPL. This
generally leads to an incomprehensible output list.
System response
As soon as an output condition is defined for a characteristic (here
Profit Center), the system calculates the corresponding result cells and
applies the output condition. If a result cell of this type is later
deleted by the condition, all the lower-level detail and result cells in
its drilldown are suppressed. Because the result cell is suppressed the
Profit Center rows are then omitted from Territory as in SPL.
In extreme cases this can lead to an entirely empty list being
displayed, although the single rows or columns would be displayed if the
condition were deactivated.
Procedure
Check the query settings, especially results row suppression and the
output conditions.
Procedure for System Administration
You can deactivate this message Brain 144 with transaction RSRT1.
Thank you very much.
Regards,
Sai. -
Displaying only mm/yyyy of dd/mm/yyyy in a query.
I have a date characteristic in my query, zstdate. Is it possible to display just the mm/yyyy and not dd/mm/yyyy? Say there is a value 01/01/2007 for this characteristic, I want to display only 01/2007 in my query result. Is this possible?
Hello Uday,
Its not duplicating the data. You are actually looking at the fiscal year period and not the date. If you don't really need the date & if you really want to see only fiscal year/period, then replace date char. with fiscal year/period char. If you still want the date and if you have an ODS in the data model, then date char. can be included in the ODS to look for the details.
I hope that helps. -
CM21 - How to display only released orders in CM21
Hi,
I want to display only released orders in trasaction CM21. Currently it is displaying both created and released orders.
could you please guide me how to proceed?
BR/
Laxmikant LandeHi lax,
By the way this problem is solved by assigning set for released order to the filter set in selection profile.
That's great. Taking a cue from you i also tried that but could not find that appropriate set name/identification which i may assign to the filter set to get only the released orders by default in CM21. Can you share your experience?
On CM21 Filter screen, there is no std field to control order status ...
You're right. Actually what i meant was that in the filter screen you get the order number as an input field. If you press f4 you will have the different matchcodes available to choose the order. If you select the order information system as the input help you will arrive at the standard COOIS or COOISPI screen where you can choose the released orders by giving REL as the input in sys status. This will pick up all the released orders.
Regards
Sm.
Edited by: Sm on Sep 2, 2010 12:27 PM -
Can we display only the required columns dynamically?
Hi All,
I have a scenario where in I have 30 columns in the rtf template. All the columns will never be displayed, only a select few will be available for display. So the output file is show blank columns. Now I want to display only the columns which contain data.
FYI- We cannot know which columns consist data until we run the report.
Any Advice.
Thanks in advance.
Madhav.Hi,
You can use the following:
Column header:
<?if@column:/node/child_node="PUBLIC"?>My label<?end if?>
Column data:
<?if:/node/child_node="PUBLIC"?>My data<?end if?>
The @column will tell XMLP wheater or not the column shall be shown.
I hope this helps you.
BR Kenneth -
How to display only Negative values in the report.....
Hi,
I want to display only negative values for one particular column.
Any suggestions ?
Thanks,
JeetuHi,
define a condition for all characteristics and for specially the keyfigure. Set it to < 0. That should do the trick.
regards
Siggi -
How to display only the description of a combobox.
Hi All,
I have a combobox on a grid.
The value of it, is the adresses of BP.
Example :
string sQuery = "SELECT CRD1.Address FROM CRD1 WHERE CRD1.AdresType='S' AND CRD1.CardCode='" + oGrid.DataTable.Columns.Item("U_IFC_PP").Cells.Item(pVal.Row).Value.ToString() + "'";
SAPbobsCOM.Recordset oRec;
oRec = (SAPbobsCOM.Recordset)SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
oRec.DoQuery(sQuery);
SAPbouiCOM.ComboBoxColumn oCBB;
oCBB = (SAPbouiCOM.ComboBoxColumn)oGrid.Columns.Item("U_IFC_ADR");
while (!oRec.EoF)
oCBB.ValidValues.Add(oRec.Fields.Item("Address").Value.ToString(), "");//, oRec.Fields.Item("Address").Value.ToString());
oRec.MoveNext();
When i click on the combobox, it's display the value and the description like this :
value1 - Adr1
value2 - Adr2
i want to display only the description like the field "Ship To" in the folder "Logistics" in the Sales Order form.
It is possible ?
And what is the size limit of the parameter oCombobox.ValidValues.Add(ByVal Value As String, _
ByVal Description As String _)
Thanks for your response.
Best Regards.
MichaelHi Michael,
actually you can't show only the description when you click into it.
the lenght of the description is usually around 50.
(but it depends also how long you made the value.)
the best is to do it so:
keep the value short with numbers
and cut the description at 42 (to be on the safe side)
lg David -
Displaying only cost center groups
Hi BW Gurus!
There's a standard cost center group and cost center hierarchy in the source system that I was able to extract. My cost center infoobject (0COSTCENTER) had that hierarchy data. My question is, in the instance that I want to display only the cost center groups with its corresponding summation results, how will I able to go about it without having to display the whole hierarchy? Is that possible?
Thanks in advance,
MaanHi Arun!
Yes, the hierarchy would be cost center - cost center group.
Thanks for the suggestions..
1) The first option seems ideal with a structured hierarchy. The hierarchy I'm dealing with seems very complicated. The cost center group that I need to report on does not necessarily reside on level one of the hierarchy.
2) It's quite embarrassing to ask but, I've really looked at the standard infoobjects and I haven't seen any that handles cost center group. Any ideas? Or, did you mean that I should create my own?
Thank you so much again!
Maan -
Displaying only the updated contents
i am working with jsp ,is there any way i can display only the updated contents of a form ie suppose a user updated 2 fields out of possible 10 fields i want to display only those 2 fields not all the 10,i am using mysql data base,can any one give a reply
Compare the new value with the old value. If it differs, then it is changed. For primitives you can use == to compare and for objects you can use Object#equals() to compare.
Maybe you are looking for
-
could anybody plz forward me the step-by-step config for "TAX ON SALES AND PURCHASE"- i am facing problem as my config could not calculate taxes thanq
-
Intermittent black border around windows
I've noticed this fault, as have others in relation to a graphics problem that seems to crop up after the machine comes out of sleep. http://homepage.mac.com/douglasm/.Pictures/frame.jpg Shows an example of the fault. This isn't the Voice over box, a
-
My computer doesn't recognize my SD card! what can I do?
When I insert my SD card from my camera, the computer doesn't recognizes it. What can I do? thnx
-
(Un-) Displaying Values of an COMPOUND InfoObjects in BEX
Hello, I have a Mastadata InfoObject with one Attribute and one Compound: <b>Masterdata - InfoObject:</b> IO_MASTER, with masterdata, CHAR(30) <b>Attribute:</b> IO_ATTRIBUTE, CHAR(29), ... <b>Compound:</b> IO_COMPOUND, CHAR(29), ... ...which means lo
-
IMovie 09 spinning wheel, never completes startup
I shot a few videos (short, perhaps 15 seconds total) and imported them to aperture 3. When I started imovie, it scanned my aperture library as expected but never completes - after the progress bar vanishes it sits at this screen: http://dl.dropbox.c