Subtotal Calculation
Is there any way to show the subtotals in front of the section cell, not at the end of section. I have a section within a section. Clients want subtotals in front of both section cells. I have over thirty columns in my report and three of them are measures. I think I should insert a free standing cell in front of the section cell and use the ForEach() function. Do you think it will work:
=[Dimension]ForEach[Measure]
You can insert the formula inside each section. Make sure that for the top section you are putting in the First section and calculation for the Second section should e in the Second Section.
Use the Formula =Sum ([Measure]) In Section
Similar Messages
-
Problem with subtotal calculation in ALV reports
Hi All,
I am doing one program for calculating subtoals in ALV . For this i want to display subtotal text at each envey subtotal 's row.
For that i have created one form 'SUB_SUBTOT_TEXT' and it has given to IT_EVENTS-FORM. But SUB_SUBTOT_TEXT Form is not called by IT_EVENTS event.
what are all the mandatories for displaying subtotal text.
Can any one please help me.
Thanks in Advance.Hi Sree,
*& Table declaration
&----TABLES: ekko.&----
*& Type pool declaration
TYPE-POOLS: slis. " Type pool for ALV&----
*& Selection screen
SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.&----
*& Type declaration
&----* Type declaration for internal table to store EKPO data
TYPES: BEGIN OF x_data,
ebeln TYPE char30, " Document no.
ebelp TYPE ebelp, " Item no
matnr TYPE matnr, " Material no
matnr1 TYPE matnr, " Material no
werks TYPE werks_d, " Plant
werks1 TYPE werks_d, " Plant
ntgew TYPE entge, " Net weight
gewe TYPE egewe, " Unit of weight
END OF x_data.&----
*& Internal table declaration
DATA:* Internal table to store EKPO data
i_ekpo TYPE STANDARD TABLE OF x_data INITIAL SIZE 0,
Internal table for storing field catalog information
i_fieldcat TYPE slis_t_fieldcat_alv,
Internal table for Top of Page info. in ALV Display
i_alv_top_of_page TYPE slis_t_listheader,
Internal table for ALV Display events
i_events TYPE slis_t_event,
Internal table for storing ALV sort information
i_sort TYPE slis_t_sortinfo_alv,
i_event TYPE slis_t_event.&----
*& Work area declaration
&----DATA:
wa_ekko TYPE x_data,
wa_layout TYPE slis_layout_alv,
wa_events TYPE slis_alv_event,
wa_sort TYPE slis_sortinfo_alv.&----
*& Constant declaration
&----CONSTANTS:
c_header TYPE char1
VALUE 'H', "Header in ALV
c_item TYPE char1
VALUE 'S'.&----
*& Start-of-selection event
&----START-OF-SELECTION.* Select data from ekpo
SELECT ebeln " Doc no
ebelp " Item
matnr " Material
matnr " Material
werks " Plant
werks " Plant
ntgew " Quantity
gewei " Unit
FROM ekpo
INTO TABLE i_ekpo
WHERE ebeln IN s_ebeln
AND ntgew NE '0.00'. IF sy-subrc = 0.
SORT i_ekpo BY ebeln ebelp matnr .
ENDIF.* To build the Page header
PERFORM sub_build_header.* To prepare field catalog
PERFORM sub_field_catalog.* Perform to populate the layout structure
PERFORM sub_populate_layout.* Perform to populate the sort table.
PERFORM sub_populate_sort.* Perform to populate ALV event
PERFORM sub_get_event.END-OF-SELECTION.* Perform to display ALV report
PERFORM sub_alv_report_display.
*& Form sub_build_header
To build the header
No Parameter
FORM sub_build_header .* Local data declaration
DATA: l_system TYPE char10 , "System id
l_r_line TYPE slis_listheader, "Hold list header
l_date TYPE char10, "Date
l_time TYPE char10, "Time
l_success_records TYPE i, "No of success records
l_title(300) TYPE c. " Title
Title Display
l_r_line-typ = c_header. " header
l_title = 'Test report'(001).
l_r_line-info = l_title.
APPEND l_r_line TO i_alv_top_of_page.
CLEAR l_r_line.* Run date Display
CLEAR l_date.
l_r_line-typ = c_item. " Item
WRITE: sy-datum TO l_date MM/DD/YYYY.
l_r_line-key = 'Run Date :'(002).
l_r_line-info = l_date.
APPEND l_r_line TO i_alv_top_of_page.
CLEAR: l_r_line,
l_date.ENDFORM. " sub_build_header
*& Form sub_field_catalog
Build Field Catalog
No Parameter
FORM sub_field_catalog .* Build Field Catalog
PERFORM sub_fill_alv_field_catalog USING: '01' '01' 'EBELN' 'I_EKPO' 'L'
'Doc No'(003) ' ' ' ' ' ' ' ', '01' '02' 'EBELP' 'I_EKPO' 'L'
'Item No'(004) 'X' 'X' ' ' ' ', '01' '03' 'MATNR' 'I_EKPO' 'L'
'Material No'(005) 'X' 'X' ' ' ' ', '01' '03' 'MATNR1' 'I_EKPO' 'L'
'Material No'(005) ' ' ' ' ' ' ' ',
'01' '04' 'WERKS' 'I_EKPO' 'L'
'Plant'(006) 'X' 'X' ' ' ' ', '01' '04' 'WERKS1' 'I_EKPO' 'L'
'Plant'(006) ' ' ' ' ' ' ' ', '01' '05' 'NTGEW' 'I_EKPO' 'R'
'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.ENDFORM. " sub_field_catalog&----
*& Form sub_fill_alv_field_catalog
*& For building Field Catalog
*& p_rowpos Row position
*& p_colpos Col position
*& p_fldnam Fldname
*& p_tabnam Tabname
*& p_justif Justification
*& p_seltext Seltext
*& p_out no out
*& p_tech Technical field
*& p_qfield Quantity field
*& p_qtab Quantity table
FORM sub_fill_alv_field_catalog USING p_rowpos TYPE sycurow
p_colpos TYPE sycucol
p_fldnam TYPE fieldname
p_tabnam TYPE tabname
p_justif TYPE char1
p_seltext TYPE dd03p-scrtext_l
p_out TYPE char1
p_tech TYPE char1
p_qfield TYPE slis_fieldname
p_qtab TYPE slis_tabname.* Local declaration for field catalog
DATA: wa_lfl_fcat TYPE slis_fieldcat_alv. wa_lfl_fcat-row_pos = p_rowpos. "Row
wa_lfl_fcat-col_pos = p_colpos. "Column
wa_lfl_fcat-fieldname = p_fldnam. "Field Name
wa_lfl_fcat-tabname = p_tabnam. "Internal Table Name
wa_lfl_fcat-just = p_justif. "Screen Justified
wa_lfl_fcat-seltext_l = p_seltext. "Field Text
wa_lfl_fcat-no_out = p_out. "No output
wa_lfl_fcat-tech = p_tech. "Technical field
wa_lfl_fcat-qfieldname = p_qfield. "Quantity unit
wa_lfl_fcat-qtabname = p_qtab . "Quantity table IF p_fldnam = 'NTGEW'.
wa_lfl_fcat-do_sum = 'X'.
ENDIF.
APPEND wa_lfl_fcat TO i_fieldcat.
CLEAR wa_lfl_fcat.
ENDFORM. " sub_fill_alv_field_catalog&----
*& Form sub_populate_layout
Populate ALV layout
No Parameter
FORM sub_populate_layout . CLEAR wa_layout.
wa_layout-colwidth_optimize = 'X'." Optimization of Col widthENDFORM. " sub_populate_layout&----
*& Form sub_populate_sort
Populate ALV sort table
No Parameter
FORM sub_populate_sort .* Sort on material
wa_sort-spos = '01' .
wa_sort-fieldname = 'MATNR'.
wa_sort-tabname = 'I_EKPO'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO i_sort .
CLEAR wa_sort.* Sort on plant
wa_sort-spos = '02'.
wa_sort-fieldname = 'WERKS'.
wa_sort-tabname = 'I_EKPO'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO i_sort .
CLEAR wa_sort.
ENDFORM. " sub_populate_sort&----
*& Form sub_get_event
Get ALV grid event and pass the form name to subtotal_text
event
No Parameter
FORM sub_get_event .
CONSTANTS : c_formname_subtotal_text TYPE slis_formname VALUE
'SUBTOTAL_TEXT'. DATA: l_s_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 4
IMPORTING
et_events = i_event
EXCEPTIONS
list_type_wrong = 0
OTHERS = 0.* Subtotal
READ TABLE i_event INTO l_s_event
WITH KEY name = slis_ev_subtotal_text.
IF sy-subrc = 0.
MOVE c_formname_subtotal_text TO l_s_event-form.
MODIFY i_event FROM l_s_event INDEX sy-tabix.
ENDIF.ENDFORM. " sub_get_event&----
*& Form sub_alv_report_display
For ALV Report Display
No Parameter
FORM sub_alv_report_display .
DATA: l_repid TYPE syrepid .
l_repid = sy-repid .* This function module for displaying the ALV report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_top_of_page = 'SUB_ALV_TOP_OF_PAGE'
is_layout = wa_layout
it_fieldcat = i_fieldcat
it_sort = i_sort
it_events = i_event
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = i_ekpo
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE i000 WITH 'Error in ALV report display'(055).
ENDIF.ENDFORM. " sub_alv_report_display&----
FORM sub_alv_top_of_page
Call ALV top of page
No parameter
----FORM sub_alv_top_of_page. "#EC CALLED* To write header for the ALV
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_alv_top_of_page.
ENDFORM. "alv_top_of_page&----
*& Form subtotal_text
Build subtotal text
P_total Total
p_subtot_text Subtotal text info
FORM subtotal_text CHANGING
p_total TYPE any
p_subtot_text TYPE slis_subtot_text.
Material level sub total
IF p_subtot_text-criteria = 'MATNR'.
p_subtot_text-display_text_for_subtotal
= 'Material level total'(009).
ENDIF.* Plant level sub total
IF p_subtot_text-criteria = 'WERKS'.
p_subtot_text-display_text_for_subtotal = 'Plant level total'(010).
ENDIF.
ENDFORM. "subtotal_text
Hopes its helpful.
Regards,
Raj. -
Hi,
I have a OBIEE pivot table report which shows Projects Information and it has the following fields:
1.Customer
2. Master Project
3. Child Projects under Master project
4. Task details by Child Project
5. Contract Hours (this is by Task Details(4) and Child Project (3))
6. Total Budget Hours (this is by Task Details(4) and Child Project (3))
The above 6 columns are included at the pivot table rows section.
In the measures sections, we have following fields
1. Forecast Hours,
2. Actual Hours
Both will be displayed by month as cross tab.
***now the issue is we need to do a subtotal based on Master project which will be a calculation i.e., Total Budget Hours/Contract Hours.
These two field are in the row level and cannot be included in the measures section of the pivot table.
can you please help in this?Hi,
Here the requirement is to show Subtotal values in the Pivot table on Hierarchy columns (along with other columns also in Pivot table)
Below is the sample table which shows the issue.
When I place Hierarchy column (Region) in Pivot table then "Show Subtotal" option will not comes. But for normal columns I am able to get Subtotal values.
Region (Hierarchy column)
Product Type
Amount(Measure)
Europe
A
100
B
200
Sub Total
300
Asia
A
150
B
250
Sub Total
400
Grand Total
70
Hope this clarifies my issue. Let me know if I get any help. -
hi gurus,
my query is :
i have to calculate rate per min , p3 = p1/p2 in subtotal column.but in the scenario given below it is just adding all the rpm and giving the total = 0.56 ,
but -3612/13940 = 0.26 is correct.
EX:
amt(P1) minutes (p2) rpm(rate per min)(p3)
9,500.00- 5233 1.82-
1,500.00 3235 0.46
4,388.00 5472 0.80
3,612.00- 13940 0.56- -
subtotal of above rows
so i want the subtotal value of p3 as p1/p2 and not just sum
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:47 PMThis you can do using the Subtotal_text event of alv.
Check the sample code below..
in the event you will have the SUB TOTAL ROW INFORMATION, now divide the P1/P2 and get the P3 value.
modify the P3 value with value calculated , this will show the Changed value.
For information:-
you can find 2 programs one using class, one using Grid Function.
Re: SubTotal Text in ALV? -
Subtotal calculation display in ALV report
hi,
i had made a report n alv which is almost complete but i want to add the feature that when i click on a field when output is displayed den the subtotal of all qty fields should be shown also.
plz provide me with useful example as i am using the concept of INTERNAL TABLES.
plzz reply fast as it is important to me and definately rewarded.Hi ric,
check out this code.
*& Report ZST_ALV
REPORT ZST_ALV.
type-POOLs: slis.
--ALV Related Variables--
DATA: lt_fcat TYPE slis_t_fieldcat_alv,
lw_fcat TYPE slis_fieldcat_alv,
lv_variant TYPE disvariant,
lv_layout TYPE slis_layout_alv,
lt_sort type slis_t_sortinfo_alv,
lw_sort type slis_sortinfo_alv.
types: begin of ty_vbap,
vbeln type vbap-vbeln,
posnr type vbap-posnr,
zmeng type vbap-zmeng,
end of ty_vbap.
data: lt_vbap type table of ty_vbap.
start-of-selection.
select vbeln posnr zmeng
from vbap
into table lt_vbap.
sort lt_vbap descending.
clear lw_fcat.
lw_fcat-fieldname = 'VBELN'.
lw_fcat-seltext_l = 'Sales document'.
append lw_fcat to lt_fcat.
clear lw_fcat.
lw_fcat-fieldname = 'POSNR'.
lw_fcat-seltext_l = 'Sales document'.
append lw_fcat to lt_fcat.
clear lw_fcat.
lw_fcat-fieldname = 'ZMENG'.
lw_fcat-seltext_l = 'Sales document'.
lw_fcat-do_sum = 'X'.
append lw_fcat to lt_fcat.
lw_sort-spos = 1.
lw_sort-fieldname = 'VBELN'.
LW_SORT-Up = 'X'.
append lw_sort to lt_sort.
clear lw_sort.
lw_sort-spos = 3.
lw_sort-fieldname = 'ZMENG'.
LW_SORT-Up = 'X'.
lw_sort-subtot = 'X'.
append lw_sort to lt_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = ' '
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = lt_fcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = lt_sort[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = lt_vbap
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards,
Santosh Thorat -
hi all,
i need to calculate montly subtotal value of a field in ALV ( OO),
how can i do that.
plz send the code also.
thanks in advance.
regards
sushant singhHi,
1) Create a sort internal table for you to do sub totaling based on the field change..In this example..I have created a sort internal table and it will sum for every change in the field VBELN.
data: gs_sort type lvc_s_sort.
data: gt_sort type lvc_t_sort.
gs_sort-fieldname = 'VBELN'.
gs_sort-UP = 'X'.
gs_sort-SUBTOT = 'X'.
append gs_sort to gt_sort.
Pass the internal table GT_SORT to the parameter
it_sort = gt_sort
of the method set_table_for_first_display..
2) For the field you have to do sum in the field catalog have the field DO_SUM = 'X'..
Thanks,
Naren -
ALV: conditional total / subtotal calculation
Dear colleagues,
I am using the REUSE_ALV_GRID_DISPLAY_LVC function. My ALV has character columns only. There are 5 key columns and up to 120 day columns (one per day). The day columns containing "real character" values or blank. Does anybody know if it is possible to implement the following requirement? And if yes, how?
The toolbar should contain the total and subtotal button. When (i.e.) the subtotal button is pressed, for every day column the number of cells containing "real characters" (not blank only) should be displayed grouped by the marked key col. ?
Thank you for your help,
PeterHi,
You need to have an field which is an integer type i.e. type i in the structure and make the subtotal as 'X' in the Field layout.
Thanks & Regards
Sarves Sombhatla -
Calculating subtotal in table control
Hi all my requrement is like this
I am using one tabbed screen .
in the last tabbed screen i have used table control in that
screen there is one requirement so that to calculate the subtotal as we can do in case of alv reporting by using the subtotal button .
can anybody help me how to do this .HI,
subtotal_text
Use
Output text for subtotals in the grid control if the subtotal criterion (column used by the user for calculating the subtotal) is hidden. In the default setting, the ALV Grid Control outputs the column header of the subtotal criterion and the value to which the subtotal calculated refers.
Event parameters
Meaning
ES_SUBTOTTXT_INFO
Type LVC_S_STXT
Structure with information on the subtotal criterion
EP_SUBTOT_LINE
Type Ref To DATA
Reference variable to the inserted subtotal line in the grid control. Columns for which no total was calculated remain set to their initial value.
E_EVENT_DATA
Type Ref To CL_ALV_EVENT_DATA
Attribute M_DATA of this object is a reference to the subtotal text.
For an overview, see: Events of Class CL_GUI_ALV_GRID
Example
You display a table with data of structure SFLIGHT in an ALV Grid Control. We now change the pre-set subtotal text for subtotal criterion plane type of table SFLIGHT :
Define and implement an event handler method for event subtotal_text . Register this event with SET HANDLER .
Call a subroutine within this method and pass the event parameters to that subroutine.
Event parameters ep_subtot_line and e_event_data contain reference variables to generic data type DATA . This is why you must use field symbols in the subroutine:
FORM method_subtotal_text USING es_subtottxt_info TYPE lvc_s_stxt
ep_subtot_line TYPE REF TO data
e_event_data TYPE REF TO
cl_alv_event_data.
DATA ls_sflight LIKE sflight.
FIELD-SYMBOLS: <fs1> STRUCTURE sflight DEFAULT ls_sflight,
<fs2>.
IF es_subtottxt_info-criteria = 'PLANETYPE'.
ASSIGN ep_subtot_line->* TO <fs1>.
ASSIGN e_event_data->m_data->* TO <fs2>.
CONCATENATE es_subtottxt_info-keyword ': '
<fs1>-planetype INTO <fs2>.
ENDIF.
ENDFORM. " METHOD_SUBTOTAL_TEXT
Result
Check your result as follows:
Calculate the total for a column.
Calculate subtotals for column plane type .
Hide column plane type . To do this, use either the standard context menu or a new layout.
The new text defined is displayed at the beginning of a subtotal line. -
I have a spreadsheet of approximately 2,500 rows. Each row is one expense incurred since about last September. What I'd like to do is categorize the data across the cost centers (one column) then filter them for the current quarter (a date value in another column).
If I use the subtotal calculation in the category header row, I get the subtotal for the entire category, not the category filtered for the date range.
Any thoughts?Hi Doug,
The categorize feature of Numbers 09 tables is basically a viewer with some nice features, but with limited utility beyond viewing.
My preference would be to use SUMIFS expression(s) to get just the summary I want, in a separate table where I can make Charts, do comparisons, etc. If you need some guidance setting that up, there is a Numbers User Guide and a iWork Formulas and Functions User Guide, both available from the Help menu. Plus, it's rather frequent question here, so the discussions search function should return many examples. You'll find that SUMIFS is very powerful and should do just what you need.
My thoughts,
Jerry -
How to use aggregation -Average using a class
Hi Gurus,
In my report i have used cl_salv_table and for event i have used cl_salv_events_table, now i want to calculate average for some of the fields as such subtotal calculation . In my normal alv reports i have used the class lcl_event_receiver also, but for the report which iam using a class , i d'not know how to compain both the class (i.e) cl_salv_table, class lcl_event_receiver. Help me to solve the problem.cancelled
-
How to calculate the subtotals in smartform
hi all
can any body tell me how can i display teh subtotals in smartform, please tell me the steps how to do that and aslo is there any special events in smartforms that are helpfull in getting and displaying the subtotals in smartforms
thanks in advanceHi,
For doing subtotal calculation in SMARTFORMS, do like this.
Create one "Program Lines" to your main window table row.
Already you are maintaing "Internal table" for you table in main window.
Before that, sort the particular internal table with key fields through which you want to find out the sub total, now within the program lines code, first identify how many quantity and currency fields are there.
Declare respective temporary variables for each and every quantity and currency field.
then write logic like this.
at new matnr.
v_menge = wa_out-menge + v_menge.
v_netwr = wa_out-netwr + v_netwr
end at.
Also dont forget to declare character variables for quantity and currency fields. We cannot directly display them in smartforms. we need to pass them to the respective quantity and currency fields.
After end at statement write like this,
write: / v_menge decimals 2 to v_mengetext,
v_netwr decimals 2 to v_netwrtext.
after this dont forget to clear,
clear: v_menge, v_netwr.
no populate v_mengetext and v_netwrtext in your text elements.
Regards,
Santosh Kumar M. -
Conditional Appearance of a Form Field
I'm creating a pdf order form for our products and their replacement parts. My question is that I want some columns to remain blank if an item isn't being ordered.
Here's the design:
Col. 1: Item number/details - Static (this info is typed by me in the design and isn't changeable by the user).
Col. 2: Item Price - Static.
Col. 3: Order Quantity - Dynamic (completed by the user/customer).
Col. 4: Order Subtotal - Calculated (Col. 2 x Col. 3). This is the column that I want to be blank if the customer is not ordering any of that particular item. Right now, if the customer isn't ordering any of that item, they still see a $0.00 in the column and that's what I don't want.
Is there a way to have a field conditionally appear? In other words, if Col. 3 is <1, Col. 4 should be completely empty and not even have a $0.00 in it.
Thanks in advance for any advice.I'm using the Calculate function inside the Text Field Properties window.
I'm trying to make this form as simple as possible for the customer to use, using as few keystrokes as possible. I'm also trying to make my form usable for both online ordering using the pdf and manual ordering (print it, fill it in by hand, and fax it to us). I don't want customers to do the math if I can make the software do it easily enough, plus I protect from math errors by having the software do it.
My issue is I want the Subtotal column (Col. 4 in my example above) to remain empty - completely blank - if they're not ordering that particular item. However, by making the software do a calculation, it fills in column 4 with "$0.00" even if the quantity is either zero or empty.
By putting anything in that field for an un-ordered item, it makes the form unusable for manually ordering and difficult to see the forest for the trees for online ordering. Just trying to clean it up. -
Problem with subtotals on Smartform. SRM 5.0
Hello,
Iam facing one serious problem with one smartform on SRM 5.0.
Using the automatic "calculation" of one table in main window i have set the subtotal calculation. This calculation is not working because the form is getting always the item from the next page on pagebreack moment...
How could i control this bug from sap?The reason for this is the the systematic of the form interpreter on how to check if a page break has been done.
Items and other stuff get printed in MAIN window.
So e.G. you have 4 items while 3 fit on one page. so he prints 3 items, all is fine, no page break detected so he continues with MAIN window printing.
Now he prints item 4 and WHILE printing it he detects that there is not enough space on the page to print it. Page break gets triggered, but item 4 has already been in process and so values of item 4 are added.
I never ran into this problem with the auto subtotal calculation of smartforms and i really wonder that this makes problems in Standard as well.
I suspect you can find a SAP-note on this subject, since this is the standard having issues, and i guess they are solved by now. -
Hi Experts,
I need to develop a report template for Financial Reports, I need to sort my accounts in a different way other than using the Chart of Accounts Template,I already tried creating a new template but I had some hick-ups, can any one please point me to any documentation/guide for developing report templates.
Waiting to Hear from You.
Kind Regards
Edited by: Chike Nwogu on Dec 2, 2008 1:04 PMHi
To compile financial reports, the system needs a template that specifies the structure of the report. You must define these financial report templates in advance.
For some countries SAP Business One delivers templates that you can use to create your own financial report templates. An alternative is to copy the structure of your chart of accounts and then make any necessary changes to it. You can use the financial report templates to compile balance sheets, profit and loss statements, and trial balance reports (totals and balances of G/L accounts and business partner accounts).
Balance Sheet u2013 The system proposes the accounts in the Assets group as assets (active) accounts; the system proposes the accounts in the Liabilities group and the Capital and Reserves group as liability (passive) accounts. You can change these proposals on the highest levels of your financial report template. The system automatically displays the profit or loss for the period (Profit Period).
Profit and Loss Statement u2013 The system proposes the accounts in all the other groups (Turnover, Cost of Sales, Operating Costs, Non-Operating Income and Expenditure, Taxation and Extraordinary Items) and offers the calculation of subtotals.
Trial Balance u2013 The financial report template can contain the accounts from all groups. It displays the totals of all groups but does not offer any subtotal calculation.
You can create comparison reports that compare the figures from a specific company or fiscal year with those of a different company or fiscal year.
Choose Financials Financial Reports Financial and then Balance Sheet or Trial Balance or Profit and Loss Statement to generate these financial reports.
Choose Financials Financial Report Templates to define and maintain financial report templates.
Editing a financial report template is similar, but not identical to, editing a chart of accounts.
Every financial report template has exactly five levels.
Levels one to four consist of only titles.
The G/L accounts are all located on the fifth level.
If you want the totals of the G/L accounts to be displayed on a higher level, you can make the higher titles invisible by selecting the Dummy Title indicator.
You can hide G/L accounts if you donu2019t want them to be displayed.
In a financial report template for balance sheets, you can let the system automatically transfer accounts to the other side of the balance sheet in case the account balance is negative. To do this, select the Transfer Accounts with Negative Sign indicator and specify the place where the transferred account should be.
In a financial report template for profit and loss statements, the system can insert a subtotal on every level:
Level 1 (level of account groups): Select Automatic Summary to let the system use predefined formulas for the gross profit, operating profit, profit after financing expenses, and profit period.
All levels: You can define your own formulas. Select Totals Formula and choose Formula to enter a formula based on the titles of the same level as the subtotal.
Regards
Rashid -
How can i use "GT_SORT" in alv ?
hello ,
i need to sort alv report by some fields .
i use :
GT_SORT-FIELDNAME = 'FRGGR'.
GT_SORT-TABNAME = 'G_TABNAME_ITEM'.
GT_SORT-SPOS = 1.
GT_SORT-UP = 'X'.
GT_SORT-SUBTOT = 'X'.
GT_SORT-GROUP = '*'.
APPEND GT_SORT.
the alv is "REUSE_ALV_HIERSEQ_LIST_DISPLAY"
but i don't see the change , what i doing wronge ?Hi dakota,
what are the results of the forum search you di before posting the question?
Regards,
Clemens
Expert Forums
Forum Search
Use the form below to search the forum content. You can choose to search all content or restrict it to certain forums or dates. Also, you can filter the results by a username or user ID.
Search Forum Content
Search Terms: Search Tips
Category or Forum:
Date Range:
Results Per Page:
Welcome, Clemens Li Help
Your Control Panel Your Control Panel
Your Reward Points Your Reward Points
Your Questions Your Questions
Search Results » Messages: 339 - Search Terms: GT_SORT Sort by:
Pages: 23 1 2 3 4 5 6 7 8 9 10
1. Re: how can i use "GT_SORT" in alv ?
Posted on: Jul 15, 2007 3:50 PM, by user: Kiran Sure(skk) -- Relevance: 100% -- Show all results within this thread
Hi, GT_SORT TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE, GT_SORT-FIELDNAME = 'UOM'. GT_SORT-TABNAME = '1'. GT_SORT-SPOS = 1. GT_SORT-UP = 'X'. GT_SORT-SUBTOT = 'X'.
Reward points ... 2. Re: "Totals" option in Hierarchical List
Posted on: Feb 7, 2006 8:40 PM, by user: John Jakabcsin -- Relevance: 17% -- Show all results within this thread
Vicky, The SORT table is the device that allows the ALV tree to paint in it's hierarchial fashion. Your source might look like this: FORM set_sorting TABLES gt_sort STRUCTURE lvc_s_sort. g ...
3. Re: Regarding ALV Report
Posted on: Mar 14, 2007 7:36 AM, by user: Azeem Mohammed -- Relevance: 15% -- Show all results within this thread
GT_SORT TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE, GT_SORT-FIELDNAME = 'UOM'. GT_SORT-TABNAME = '1'. GT_SORT-SPOS = 1. GT_SORT-UP = 'X'. GT_SORT-SUBTOT = 'X'. Then in FCAT use parameter do ...
4. Re: ALV display
Posted on: Aug 31, 2006 1:33 AM, by user: Kishore Maddu -- Relevance: 10% -- Show all results within this thread
in your example you can see passing sorting table GT_SORT to reuse_....grid function module... just copy that program to one z program and commet and gt_sort parameter and then check... please ...
5. Re: How to remove horizontal lines in ALV_LIST
Posted on: Feb 15, 2006 12:48 PM, by user: Hymavathi Oruganti -- Relevance: 10% -- Show all results within this thread
just check whether in gt_sort if u have mentioned gs_sort-group = 'UL'
6. Re: Problem Saving ALV Report
Posted on: Feb 7, 2007 4:12 PM, by user: Clemens Li -- Relevance: 10% -- Show all results within this thread
Hi Anwarul, parameter it_sort = gt_sort[] will overrirde the sort in the variant. Regards, Clemens ...
7. Re: Subtotals in ALV
Posted on: Dec 13, 2006 6:15 PM, by user: krk -- Relevance: 10% -- Show all results within this thread
Hi You have gs-sort and gt_sort. Make sure which one you are passing and declare the type as for that FM LIST_Display. ...
8. Re: ALG Grid Same values not grouped!
Posted on: Mar 17, 2006 11:23 AM, by user: Kumar Prashanth -- Relevance: 9% -- Show all results within this thread
set_table_for_first_display EXPORTING i_save = gv_save is_layout = gv_layout is_print = gv_print is_variant = gv_variant CH ...
9. Re: Total amount in ALV report
Posted on: Dec 12, 2005 9:41 PM, by user: Phani Kiran Nudurupati -- Relevance: 9% -- Show all results within this thread
Hi Naren, Pass it this way in the structure. DATA: GT_SORT TYPE SLIS_T_SORTINFO_ALV, DATA: GS_SORT TYPE SLIS_SORTINFO_ALV. CLEAR GS_SORT. GS_SORT-FIELDNAME = 'EBELN'. "This should be the fie ...
10. Re: ALV Subtotal
Posted on: May 2, 2007 11:29 PM, by user: Alchemi -- Relevance: 8% -- Show all results within this thread
I have this in one include program GT_SORT_OFFSET TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE, can i email u the code? ...
11. Re: ALV Tree Problem
Posted on: Mar 20, 2007 6:49 PM, by user: Christian CHOULET -- Relevance: 8% -- Show all results within this thread
Hello aRs, Yes i'm sure KOSTL is available in WT_TEST. The problem is that when i another element in GT_SORT, this error appears... Thanks anyway ...
12. Re: subtotal calculation in ALV
Posted on: Nov 14, 2006 5:35 PM, by user: Narendran Muthukumaran -- Relevance: 8% -- Show all results within this thread
Hi, 1) Create a sort internal table for you to do sub totaling based on the field change..In this example..I have created a sort internal table and it will sum for every change in the field VBELN. ...
13. Re: ALV grid sort
Posted on: Oct 4, 2006 1:22 PM, by user: sreejesh purapadiath -- Relevance: 7% -- Show all results within this thread
set_table_for_first_display EXPORTING is_layout = gs_layout it_toolbar_excluding = gt_excl_func[] CHANGING it_outtab = i_final[] ...
14. Re: ALV Print about subtotal
Posted on: Dec 17, 2005 11:35 AM, by user: max bianchi -- Relevance: 7% -- Show all results within this thread
Hi In the sort table you has to define the field for sorting and subtotal: DATA: LT_SORT TYPE LVC_S_SORT, GT_SORT TYPE LVC_T_SORT. LT_SORT-SPOS = 1. LT_SORT-FIELDNAME = . LT_SORT-UP ...
15. Re: Subtotals text in ALV
Posted on: Feb 14, 2006 11:53 AM, by user: Wenceslaus G -- Relevance: 7% -- Show all results within this thread
To display subtotal text you have to create sort interface GT_SORT TYPE SLIS_T_SORTINFO_ALV, and GS_SORT-FIELDNAME = 'FIELD1'. GS_SORT-SPOS = 1. GS_SORT-UP = 'X'. GS_S ...
Pages: 23 1 2 3 4 5 6 7 8 9 10
Maybe you are looking for
-
Hi, I wish to select rows from a database. This is the query I wrote: "SELECT * FROM opencalls WHERE ProblemDescription LIKE '*upgrade*'". When I run this query in MS Access itself, there is no problem, I get the required rows. But when I run it in m
-
File problems with Windows 7 and PS Touch on a GS4.
I'm using a Samsung GS4 and when I export a completed file from PS touch to my gallery in PNG format and then upload to my Windows 7 computer via dropbox they sometimes cannot be opened, does anyone know why? I'd be extremely grateful if anyone could
-
Regarding finding of customers list
Hi All, Can anybody tell me what is the relation between <b>non-domestic customers, sales orgs , exchange rate type, customer master extensions</b>. I need to find out Non_Domestic Customers based on other fields. Thanks in advance. Thanks and Regard
-
Can someone give me a link to documentation which will help me analyze system panics ( preferably for a sunfire 280r ).
-
New iPhone won't update new songs from library
i recently purchased an iphone 5s and now it won't sync and update changes to playlists or newly purchased songs from my macbook. i have synced the phone repeatedly. i have synced the phone through the cloud . but because of the cloud i can no longer