Cant we do group and subtotal on a column which is having Go-URL in OBIEE
Hi,
I have a scenario that a report should show subtotal on amount column for different sales reps. At the same time, I have used GO URL for that sales rep column.
In the GO URL Code, I have passed 4 columns as parameters. So the report is doing grouping on those columns also and showing subtotals at those column levels.
Please help me out.
Thanks,
Siri
Try these:
SUM(SUM("Activity Metrics"."# of Closed Activities" by Employee."Employee Name") by task result)
or
SUM("Activity Metrics"."# of Closed Activities" by Employee."Employee Name"||task result)
Mike L
Similar Messages
-
Have a column which is having comma seperated values.. and i am trying to s
Have a column which is having comma seperated values.. and i am trying to seperate it.
I am trying to create a stored procedure ..Version 11g xe. .and apex version 4..
Here is the part of code..I cant make a procedure. .cause my statement consist with clause..
create or replace procedure ins_adv_invoice
(mmagazine_no number,madvtno number,missueno number,msection varchar2,mpagenumber varchar2,msalesman_code varchar2)
is
cursor cx is with testa as
(select pagenumber name from advertiser)
select regexp_substr(pagenumber, '[^,]+', 1, rownum) result
from advertiser
connect by level <= length(regexp_replace(pagenumber, '[^,]+')) + 1
where advt_no = madvtno;
begin
for xxx in cx
loop
insert into adv_invoice (magazine_no,advtno,adissue,section,page_number,salesman_code)
values (mmagazine_no,madvtno,missueno,msection,xxx.result,msalesman_code);
end loop;
end;
But when i run this .. it doesnt create procedure. .I get he following error..
LINE/COL ERROR
5/14 PL/SQL: SQL Statement ignored
9/69 PL/SQL: ORA-00933: SQL command not properly ended
SQL>
Still not able to figure it out..Can any one help..
ThanksChange the query to swap the last two lines:
cursor cx is with testa as
(select pagenumber name from advertiser)
select regexp_substr(pagenumber, '[^,]+', 1, rownum) result
from advertiser
where advt_no = madvtno
connect by level <= length(regexp_replace(pagenumber, '[^,]+')) + 1;
... -
Can i use adobe form to produce a report with grouping and subtotal?
Hi,
i need to produce a report that allows me to group against a field and do a subtotal for the group, then finally a total for the whole report.
i m using web dynpro java, i can do grouping in the table component, but i have no idea how to do subtotal for the group.
is there any built-in function in adobe form that i can produce this kind of report relatively easily?
thank you.Hi,
go throught this link
check the tutorials.
saptechnical -> tutorials -> Adobe forms ->Calculating Page-wise Sub-Totals and Grand Total in Adobe forms
Regards,
sandeep -
Field over flow can not display the total and subtotal in ALV
hi
i am running a z report with huge data in quality system.
in 2 columns and not able to show the total and subtotal in 2 columns
it says field overflow and cannot be dispayed.
value is around 20character integer.You can create a domains with 20 positions and 2 decimal, for example.
Than, associate this domain a data element.
To finish assign that data element to the column you wanna sum.
I hope help. -
Hi Team,
We have a requirement to add SupportGroup and Classification as a column in the "List of Incidents" report. WE know that we need to modify the stored procedure to make these columns available in the Dataset. Or can we link 2 dataset in the tablix
in SSRS.
Regards,
Dinesh
Thanks & Regards, DineshI have solved it myself by adding few lines in stored procedure. Would like to share the solution, so that it will be helpful for others.
Open the stored procedure which we are using for the default "List of Incidents" reports.
Add the below under SELECT
SupportGroup = ISNULL(TierQueuesDS.DisplayName, TierQueuesEnum.IncidentTierQueuesValue),
TierQueuesEnum.IncidentTierQueuesId AS TierQueuesId,
Classification = ISNULL(ClassificationDS.DisplayName, ClassificationEnum.IncidentClassificationValue),
ClassificationEnum.IncidentClassificationId AS ClassificationId,
Add the below under FROM
LEFT OUTER JOIN
dbo.IncidentTierQueuesvw AS TierQueuesEnum
ON TierQueuesEnum.IncidentTierQueuesId = I.TierQueue_IncidentTierQueuesId
LEFT OUTER JOIN
dbo.DisplayStringDimvw TierQueuesDS
ON TierQueuesEnum.EnumTypeId=TierQueuesDS.BaseManagedEntityId
AND TierQueuesDS.LanguageCode = @LanguageCode
LEFT OUTER JOIN
dbo.IncidentClassificationvw AS ClassificationEnum
ON ClassificationEnum.IncidentClassificationId = I.Classification_IncidentClassificationId
LEFT OUTER JOIN
dbo.DisplayStringDimvw ClassificationDS
ON ClassificationEnum.EnumTypeId=ClassificationDS.BaseManagedEntityId
AND ClassificationDS.LanguageCode = @LanguageCode
Then open the report from Report Builder and add new column in the design. Add Support Group and Classification as a column in the report.
Thanks & Regards, Dinesh -
Hi frnds, I just purchased Ip4 and upgraded to ios 7 but it become slow and i cant find any group sms option.
Thanks so much for your reply, yes I did and that has not worked either . A friend has suggested re installing upgrade, so may try that .
-
Cant change COST CENTER GROUPS and/or Standard Hierarchy
Hello all,
im facing some problems during change of COST CENTER GROUPS and/or Standard hierarchy.
When im trying to select im getting following error Value maintenance not allowed ->Standard Hierarchy
When i do get the selection of the cost center that i want to remove from the hierarchy im getting this error Function is not supported in the standard hierarchy.
I dont know anymore what to do.
ive searched in forum and google but still didnt find enything usefull.
Regards
Laurynas PrikockisHello,
There is no word called removal in SAP. It would have been properly pronounced if say "Delete".
In case of delete, I do accept, there should not be any planned or actual line items during the fiscal year. If there are any actual or planned lines items you cannot delete the cost center during that period.
However, you can still delete the cost center in the next fiscal year if there are no actual or planned line items.
Hope this makes clear.
Regards,
Ravi -
hi,
i have an ALV REPORT,displaying the fields such as po item(ekpo-menge).the data type is qunt.
but i am unable to perform total and sub total,it gives me a information message 'total cannot b performed'.
even i tried with X_FIELDCAT-DO_SUM = 'X',
can any one help me, how to total and subtotal.HI
GOOD
CHECK WITH THIS EXAMPLES
data: begin of output_tab occurs 0,
total_field_hidden(1) type c,
sortfield1(3) type c,
sortfield1_hidden(3) type c,
numerator type p,
denominator type p,
perc type p decimals 2,
percentage type p decimals 2, "(7) type c,
end of output_tab.
data: abaplist type standard table of abaplist.
type-pools: slis.
data: g_repid like sy-repid.
data: gt_events type slis_t_event.
parameters: p_grid radiobutton group g1,
p_list radiobutton group g1.
initialization.
*This is necessary so that the ALV_GRID knows where to
find the form
g_repid = sy-repid.
start-of-selection.
perform fill_output_tab.
perform output_alv.
*& Form FILL_OUTPUT_TAB
form fill_output_tab.
output_tab-total_field_hidden = '1'.
output_tab-sortfield1 = output_tab-sortfield1_hidden
= 'AAA'.
output_tab-numerator = 1.
output_tab-denominator = 2.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
output_tab-numerator = 1.
output_tab-denominator = 3.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
output_tab-numerator = 1.
output_tab-denominator = 5.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
output_tab-numerator = 1.
output_tab-denominator = 5.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
output_tab-sortfield1 = output_tab-sortfield1_hidden
= 'BBB'.
output_tab-numerator = 1.
output_tab-denominator = 2.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
output_tab-numerator = 1.
output_tab-denominator = 2.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
output_tab-numerator = 1.
output_tab-denominator = 3.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
output_tab-numerator = 1.
output_tab-denominator = 5.
output_tab-perc = output_tab-numerator /
output_tab-denominator
100.
output_tab-percentage = output_tab-perc .
write output_tab-perc to output_tab-percentage.
append output_tab.
endform. " FILL_OUTPUT_TAB
*& Form output_alv
output the list in an ALV Grid
form output_alv.
data: ls_layo type slis_layout_alv,
lt_fcat type slis_t_fieldcat_alv,
lt_sort type slis_t_sortinfo_alv.
perform f01_set_sort changing lt_sort.
perform f01_set_layo changing ls_layo.
perform f01_set_fcat changing lt_fcat.
perform eventtab_build using gt_events[].
g_repid = sy-repid.
clear output_tab.
case 'X'.
when p_list.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
I_INTERFACE_CHECK = 'X'
i_callback_program = g_repid
is_layout = ls_layo
it_fieldcat = lt_fcat
it_events = gt_events[]
it_sort = lt_sort
tables
t_outtab = output_tab
exceptions
program_error = 1
others = 2.
when p_grid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
is_layout = ls_layo
it_fieldcat = lt_fcat
it_events = gt_events[]
it_sort = lt_sort
tables
t_outtab = output_tab
exceptions
program_error = 1
others = 2.
endcase.
endform. " output_alv
Sets the Events the ALV Grid needs to react to for
the Overall Output.
-->RT_EVENTS[] A table of events and the forms
that must be
performed for each one.
form eventtab_build using rt_events type slis_t_event.
*"Registration of events to happen during list display
data: ls_event type slis_alv_event.
refresh rt_events.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = rt_events.
Subtotal
read table rt_events with key name =
slis_ev_subtotal_text
into ls_event.
if sy-subrc = 0.
move 'SUBTOTAL_TEXT' to ls_event-form.
append ls_event to rt_events.
endif.
endform. " EVENTTAB_BUILD2
*& Form f01_set_sort
form f01_set_sort changing p_lt_sort type
slis_t_sortinfo_alv.
data: ls_sort type slis_sortinfo_alv.
clear ls_sort.
ls_sort-spos = 1.
ls_sort-fieldname = 'TOTAL_FIELD_HIDDEN'.
ls_sort-subtot = 'X'.
append ls_sort to p_lt_sort.
clear ls_sort.
ls_sort-spos = 2.
ls_sort-fieldname = 'SORTFIELD1_HIDDEN'.
ls_sort-subtot = 'X'.
append ls_sort to p_lt_sort.
endform. " f01_set_sort
*& Form f01_set_layo
Sets layout options
form f01_set_layo changing p_ls_layo type
slis_layout_alv.
p_ls_layo-no_totalline = 'X'.
endform. " f01_set_layo
*& Form f01_set_fcat
Sets the columns and texts for the ALV Grid
<--P_LT_FCAT text
form f01_set_fcat changing ct_fcat type
slis_t_fieldcat_alv.
data: ls_fcat type slis_fieldcat_alv.
ls_fcat-tabname = 'OUTPUT_TAB'.
ls_fcat-fieldname = 'TOTAL_FIELD_HIDDEN'.
ls_fcat-no_out = 'X'.
ls_fcat-col_pos = 1.
append ls_fcat to ct_fcat.
clear ls_fcat.
ls_fcat-tabname = 'OUTPUT_TAB'.
ls_fcat-fieldname = 'SORTFIELD1_HIDDEN'.
ls_fcat-no_out = 'X'.
ls_fcat-col_pos = 2.
append ls_fcat to ct_fcat.
clear ls_fcat.
ls_fcat-seltext_m = 'SORT'.
ls_fcat-tabname = 'OUTPUT_TAB'.
ls_fcat-fieldname = 'SORTFIELD1'.
ls_fcat-col_pos = 3.
append ls_fcat to ct_fcat.
clear ls_fcat.
ls_fcat-seltext_m = 'SALES'.
ls_fcat-tabname = 'OUTPUT_TAB'.
ls_fcat-fieldname = 'NUMERATOR'.
ls_fcat-col_pos = 4.
ls_fcat-datatype = 'CURR'.
ls_fcat-do_sum = 'X'.
append ls_fcat to ct_fcat.
clear ls_fcat.
ls_fcat-seltext_m = 'COST'.
ls_fcat-tabname = 'OUTPUT_TAB'.
ls_fcat-fieldname = 'DENOMINATOR'.
ls_fcat-datatype = 'CURR'.
ls_fcat-col_pos = 5.
ls_fcat-do_sum = 'X'.
append ls_fcat to ct_fcat.
clear ls_fcat.
ls_fcat-seltext_m = 'MARGIN'.
ls_fcat-tabname = 'OUTPUT_TAB'.
ls_fcat-fieldname = 'PERCENTAGE'.
ls_fcat-datatype = 'CHAR'.
ls_fcat-do_sum = 'X'.
ls_fcat-col_pos = 6.
append ls_fcat to ct_fcat.
endform.
*& Form subtotal_text
Manipulate the subtotal line in the ALV to
recalculate eficiency at
total level.
form subtotal_text using ep_subtot_line like
output_tab
es_subtottxt type
slis_subtot_text.
if es_subtottxt-criteria = 'TOTAL_FIELD_HIDDEN'.
es_subtottxt-display_text_for_subtotal = 'Final
Total'.
endif.
ep_subtot_line-percentage = ep_subtot_line-numerator
/ ep_subtot_line-denominator
100.
ep_subtot_line-perc = ep_subtot_line-percentage.
endform.
total_field_hidden(1) type c,
> sortfield1(3) type c,
> sortfield1_hidden(3) type c,
> numerator type p,
> denominator type p,
> perc type p decimals 2,
> percentage type p decimals 2, "(7) type c, end of output_tab.
>
>data: abaplist type standard table of abaplist.
>
>type-pools: slis.
>data: g_repid like sy-repid.
>data: gt_events type slis_t_event.
>*----
>parameters: p_grid radiobutton group g1,
> p_list radiobutton group g1.
>
>initialization.
>*This is necessary so that the ALV_GRID knows where to
>find the form
> g_repid = sy-repid.
>
>start-of-selection.
> perform fill_output_tab.
>
> perform output_alv. &---- *& Form FILL_OUTPUT_TAB &---- form fill_output_tab.
> output_tab-total_field_hidden = '1'.
> output_tab-sortfield1 = output_tab-sortfield1_hidden = 'AAA'.
> output_tab-numerator = 1.
> output_tab-denominator = 2.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
> output_tab-numerator = 1.
> output_tab-denominator = 3.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
> output_tab-numerator = 1.
> output_tab-denominator = 5.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
> output_tab-numerator = 1.
> output_tab-denominator = 5.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
> output_tab-sortfield1 = output_tab-sortfield1_hidden = 'BBB'.
> output_tab-numerator = 1.
> output_tab-denominator = 2.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
> output_tab-numerator = 1.
> output_tab-denominator = 2.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
> output_tab-numerator = 1.
> output_tab-denominator = 3.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
> output_tab-numerator = 1.
> output_tab-denominator = 5.
> output_tab-perc = output_tab-numerator / output_tab-denominator
> * 100. output_tab-percentage = output_tab-perc . * write output_tab-perc to output_tab-percentage. append output_tab.
>
>endform. " FILL_OUTPUT_TAB
>&----
>*& Form output_alv
>&----
>* output the list in an ALV Grid
>----
>form output_alv.
> data: ls_layo type slis_layout_alv,
> lt_fcat type slis_t_fieldcat_alv,
> lt_sort type slis_t_sortinfo_alv.
>
> perform f01_set_sort changing lt_sort.
> perform f01_set_layo changing ls_layo.
> perform f01_set_fcat changing lt_fcat.
> perform eventtab_build using gt_events[].
> g_repid = sy-repid.
> clear output_tab.
> case 'X'.
> when p_list.
> call function 'REUSE_ALV_LIST_DISPLAY'
> exporting * I_INTERFACE_CHECK = 'X'
> i_callback_program = g_repid
> is_layout = ls_layo
> it_fieldcat = lt_fcat
> it_events = gt_events[]
> it_sort = lt_sort tables
> t_outtab = output_tab exceptions
> program_error = 1
> others = 2. when p_grid. call function 'REUSE_ALV_GRID_DISPLAY' exporting
> i_callback_program = g_repid
> is_layout = ls_layo
> it_fieldcat = lt_fcat
> it_events = gt_events[]
> it_sort = lt_sort tables
> t_outtab = output_tab exceptions
> program_error = 1
> others = 2. endcase.
>
>endform. " output_alv
>
>&----
>* Sets the Events the ALV Grid needs to react to for
>the Overall Output.
>----
>* -->RT_EVENTS[] A table of events and the forms
>that must be
>* performed for each one.
>----
>form eventtab_build using rt_events type slis_t_event.
>*"Registration of events to happen during list display
> data: ls_event type slis_alv_event.
>*
> refresh rt_events.
> call function 'REUSE_ALV_EVENTS_GET'
> exporting
> i_list_type = 0 importing
> et_events = rt_events.
>
>* Subtotal
> read table rt_events with key name = slis_ev_subtotal_text
> into ls_event. if sy-subrc = 0. move 'SUBTOTAL_TEXT' to ls_event-form. append ls_event to rt_events. endif.
>
>endform. " EVENTTAB_BUILD2
>&----
>*& Form f01_set_sort
>&----
>form f01_set_sort changing p_lt_sort type
>slis_t_sortinfo_alv.
>
> data: ls_sort type slis_sortinfo_alv.
>
> clear ls_sort.
> ls_sort-spos = 1.
> ls_sort-fieldname = 'TOTAL_FIELD_HIDDEN'.
> ls_sort-subtot = 'X'.
> append ls_sort to p_lt_sort.
>
> clear ls_sort.
> ls_sort-spos = 2.
> ls_sort-fieldname = 'SORTFIELD1_HIDDEN'.
> ls_sort-subtot = 'X'.
> append ls_sort to p_lt_sort.
>
>endform. " f01_set_sort
>&----
>*& Form f01_set_layo
>&----
>* Sets layout options
>----
>form f01_set_layo changing p_ls_layo type
>slis_layout_alv.
>
> p_ls_layo-no_totalline = 'X'.
>
>endform. " f01_set_layo
>&----
>*& Form f01_set_fcat
>&----
>* Sets the columns and texts for the ALV Grid
>----
>* <--P_LT_FCAT text
>----
>form f01_set_fcat changing ct_fcat type
>slis_t_fieldcat_alv.
>
> data: ls_fcat type slis_fieldcat_alv.
>
> ls_fcat-tabname = 'OUTPUT_TAB'.
> ls_fcat-fieldname = 'TOTAL_FIELD_HIDDEN'.
> ls_fcat-no_out = 'X'.
> ls_fcat-col_pos = 1.
> append ls_fcat to ct_fcat.
>
> clear ls_fcat.
> ls_fcat-tabname = 'OUTPUT_TAB'.
> ls_fcat-fieldname = 'SORTFIELD1_HIDDEN'.
> ls_fcat-no_out = 'X'.
> ls_fcat-col_pos = 2.
> append ls_fcat to ct_fcat.
>
> clear ls_fcat.
> ls_fcat-seltext_m = 'SORT'.
> ls_fcat-tabname = 'OUTPUT_TAB'.
> ls_fcat-fieldname = 'SORTFIELD1'.
> ls_fcat-col_pos = 3.
> append ls_fcat to ct_fcat.
>
> clear ls_fcat.
> ls_fcat-seltext_m = 'SALES'.
> ls_fcat-tabname = 'OUTPUT_TAB'.
> ls_fcat-fieldname = 'NUMERATOR'.
> ls_fcat-col_pos = 4.
> ls_fcat-datatype = 'CURR'.
> ls_fcat-do_sum = 'X'.
> append ls_fcat to ct_fcat.
>
> clear ls_fcat.
> ls_fcat-seltext_m = 'COST'.
> ls_fcat-tabname = 'OUTPUT_TAB'.
> ls_fcat-fieldname = 'DENOMINATOR'.
> ls_fcat-datatype = 'CURR'.
> ls_fcat-col_pos = 5.
> ls_fcat-do_sum = 'X'.
> append ls_fcat to ct_fcat.
>
> clear ls_fcat.
> ls_fcat-seltext_m = 'MARGIN'.
> ls_fcat-tabname = 'OUTPUT_TAB'.
> ls_fcat-fieldname = 'PERCENTAGE'. * ls_fcat-datatype = 'CHAR'.
> ls_fcat-do_sum = 'X'.
> ls_fcat-col_pos = 6.
> append ls_fcat to ct_fcat.
>
>endform.
>&----
>*& Form subtotal_text
>&----
>* Manipulate the subtotal line in the ALV to
>recalculate eficiency at
>* total level.
>----
>form subtotal_text using ep_subtot_line like
>output_tab
> es_subtottxt type slis_subtot_text.
>
> if es_subtottxt-criteria = 'TOTAL_FIELD_HIDDEN'.
> es_subtottxt-display_text_for_subtotal = 'Final Total'. endif.
>
> ep_subtot_line-percentage = ep_subtot_line-numerator
> / ep_subtot_line-denominator
> * 100.
>
> ep_subtot_line-perc = ep_subtot_line-percentage. endform.
>
THANKS
MRUTYUN -
Total and Subtotal for set_table_for_first_display
Hello,
I am displaying data in ALV by using set_table_for_first_display , i want to do_sum for
10-15 columns starting from the column index 11.. and i have also passed the value in internal table of type LVC_T_SORT and in the fieldcatlog this fields are checked for DO_SUM but sum is not coming in the final output even summation button is disabled and subtotal is also getting reflected.
Is it i need to do extra to do this when i am displaying data by using the OOPS methos?
Please sugggest what could be the reason..
Thanks
PrinceHi,
Try the below code.
TABLES: mara.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
types: begin of ty_marc,
matnr type marc-matnr,
werks type marc-werks,
count type i,
end of ty_marc.
data: it_marc type standard table of ty_marc with header line.
START-OF-SELECTION.
SELECT matnr werks FROM marc INTO TABLE it_marc WHERE matnr IN s_matnr and werks in ('0888', '0811').
loop at it_marc.
it_marc-count = 1.
modify it_marc transporting count.
endloop.
"* Definition for Object Oriented ALV
DATA: gr_table TYPE REF TO cl_salv_table.
DATA: gr_sorts TYPE REF TO cl_salv_sorts.
DATA: gr_agg TYPE REF TO cl_salv_aggregations.
DATA: gr_agg2 TYPE REF TO cl_salv_aggregation.
DATA: gr_display TYPE REF TO cl_salv_display_settings.
DATA: gr_layout TYPE REF TO cl_salv_layout.
DATA: ls_key TYPE salv_s_layout_key.
"* Display ALV as a Grid
TRY.
cl_salv_table=>factory( IMPORTING r_salv_table = gr_table
CHANGING t_table = it_marc[] ).
CATCH cx_salv_msg.
ENDTRY.
TRY.
gr_agg = gr_table->get_aggregations( ).
CALL METHOD gr_agg->add_aggregation
EXPORTING
columnname = 'COUNT'
aggregation = if_salv_c_aggregation=>total
RECEIVING
value = gr_agg2.
CATCH cx_salv_data_error .
CATCH cx_salv_not_found .
CATCH cx_salv_existing .
ENDTRY.
"* Set up Sorts
TRY.
gr_sorts = gr_table->get_sorts( ).
CALL METHOD gr_sorts->add_sort
EXPORTING
columnname = 'MATNR'
position = 1
sequence = if_salv_c_sort=>sort_up
subtotal = if_salv_c_bool_sap=>true
group = if_salv_c_sort=>group_none
obligatory = if_salv_c_bool_sap=>false.
CATCH cx_salv_data_error .
CATCH cx_salv_not_found .
CATCH cx_salv_existing .
ENDTRY.
"* Add layout variants in report
TRY.
gr_layout = gr_table->get_layout( ).
"*... set the Layout Key
ls_key-report = sy-repid.
gr_layout->set_key( ls_key ).
"*... set usage of default Layouts
gr_layout->set_default( abap_true ).
"*... set Layout save restriction
gr_layout->set_save_restriction( if_salv_c_layout=>restrict_none ).
ENDTRY.
TRY.
"* Display ALV
gr_table->display( ).
ENDTRY.
Hope it helps.
Thanks,
Balaji -
Default excise group and series group issue
Hi Gurus
I have a doubt. Is it possible to maintain the default excise group and series group in this order
sales org dis chnl division ship pt plant excise group series group
1000 EX CD 1000 1000 10 A1
1000 EX CD 1000 2000 20 A2
i tried this combination, but getting the error message that a key already exists....The header data sales area and shipping point already exists.... I cant understand why we cant give the same sales area and shipping point for a new plant combination
Thanks in advance
MathanHi Mathan,
When we say Excise group then it is maintained for the plant as it is maintained with Excise authorities. We can have same shipping point for 2 different plants but the possibilities are less and when 2 plants share the resources and facilities then those plants are registered as a single excise entity with the authorities. That is the reason that the option of having the same sales area and shipping point as header data is not allowed for more than one excise group. This is more business related than SAP.
Hope this clarifies the doubt.
Regards,
Antima -
Authorisation group and document type
Dear Experts
I want our users who are using transaction F.14 to be able to process document type ZF only. I have created a role and in the authorisation object F_BKPF_BLA
i can see field authorisation group and activity. What value i should put in the authorizatuion group object which will allow me to restrict users to work in document type ZF only
<removed_by_moderator>
Edited by: Julius Bussche on Apr 30, 2008 4:53 PMHi All,
Didnt know whether to start a new post or continue this one. Basically I have the same problem but I seem to be missing something fundamental (and I think it must be obvious!).
Dev Team:-
1) New transaction code created ZF10 by which amongst other things should only process the newly created document type ZF.
Myself (Security Team):-
1) All of our document types are defined in OBA7.
2) The specific document type is ZF that we want to restrict access to.
3) In V_TBRG I have defined the custom authorisation group ZDTF against object F_BKPF_BLA.
4) In SU24 I have defined against the custom transaction code ZF10 the authorisation object F_BKPF_BLA to be inserted with Activity values 01, 02, 03; and Authorisation Group ZDTF.
5) Create new role and add ZF10 which then populates the auth object and values above.
What I cant see / understand is how the document type is then restricted to ZF in the role as it isnt defined anywhere that the authorisation group ZDTF only allows access to document type ZF.
Any help on this will be greatly appreciated. PS Should I have created a new thread for this ?
Cheers
Steve -
Catalogs, code groups and codes not available in service order in Web UI
Hi,
I have created and maintained a subject profile for the service orders that i am using for my business scenarios. The same is visible under the objects tab in transaction data of the service order business transaction in the SAP GUI.
However the same are not visible anywhere in the Web UI (they are not available in the list of available fields as well in BSP_WD_CMPWB for BT116H_SRVO).
Can some1 pls advice me with the steps so as to make the catalogs, code groups and codes in my service orders available in the Web UI screen as well.
Will really appreciate if detailed steps are provided since I am new to Web UI technology.
Warm regards,
DPDeepak,
I'm 99% sure (although dont quote me as I dont have a developer key so I cant finish my testing) that you're missing the context Nodes - so although you have the assignment block yuo have no link between the code set and the service order header. You havent referenced them in your comments on this post in any case.
Try this:
Go into BSP_WD_CMPWB
In the Browser component Structure open folder Component > Views
Double-click BT116H_SRVO/DetailsOV and in the structure expand to BT116H_SRVO/DetailsOV > BT116H_SRVO/DetailsOV > View Controller > DetailsOV.do > Context
Right-click on folder Context Node and click Create
Follow through the wizard defining a Z context Node (e.g. ZBTSubject) and a Model Node of BOL Entity BTSubject
Define any Dependencies etc you may wish to have and so on (most of the wizard is optional)
Repeat the same for the BOL Entity BTSubjectSet
Now go back in and see if your values are populating. I'm not a developer (and never have been), so I cant guarantee this will work as I dont have a developer key to test this, but I am quite sure that this needs to be done for you to get your values populating.
Good luck, Merry Christmas and a Happy New Year (& please award points if useful!)
Andrew Griffin. -
Wsus query needed - get WSUS-Computers, belonging WSUS-Group and Not Installed Count
Hi,
i try to find a way by using basic WSUS powershell cmds in combination with piping in Server 2012 R2 to get all registered computers in WSUS plus belonging WSUS-Group and Update "Not Installed Count" as output.
Is that possible?
I tried multiple times and enden up in using posh - is there no way based on standard powershell commandlets.
Thank you
PeterHi Michael,
it seems that you are right :(. I tried out a few things with powershell (source
http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/19/use-powershell-to-find-missing-updates-on-wsus-client-computers.aspx) - big problem is that i actually cant get belonging WSUS Group to Server object. I only are able to get all WSUS Groups
but cant find the right sytax to get only belonging ones.
Any ideas?
Thanks
Peter
#Load assemblies
[void][system.reflection.assembly]::LoadWithPartialName('Microsoft.UpdateServices.Administration')
#Create Scope objects
$computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope
$updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
#Gather only servers
$ServersId = @($wsus.GetComputerTargets($computerscope) | Where {
$_.OSDescription -like "*Server*"
} | Select -expand Id)
#Get Update Summary
$wsus.GetSummariesPerComputerTarget($updatescope,$computerscope) | Where {
#Filter out non servers
$ServersId -Contains $_.ComputerTargetID
} | ForEach {
New-Object PSObject -Property @{
ComputerTarget = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).FullDomainName
ComputerTargetGroupIDs = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).ComputerTargetGroupIds
ComputerTargetGroupNames = ($wsus.GetComputerTargetGroups())
NeededCount = ($_.DownloadedCount + $_.NotInstalledCount)
#DownloadedCount = $_.DownloadedCount
NotInstalledCount = $_.NotInstalledCount
#InstalledCount = $_.InstalledCount -
Hi,
I have a group filter set dynamically using bind variables; it shows the X first records in each group and a subtotal that shows the sums for this X first records, but I need a subtotal for all records in that group too. Anybody knows how can I do that?
Thanks,
Rodrigo.Andrew,
Sorry, but your sugestion didn't work. When I get the filter out of the data model and put it in the repeating frame in layout model, it appears as the same thing in my object navigator. Here's my problem: I have two groups: PRODUCTS and SECTIONS. The SECTION group is parent to the PRODUCTS group. I have to show the X better sold PRODUCTS per SECTION, a subtotal showing the amount of sales of these X PRODUCTS, another subtotal showing the amount of sales of all products of the SECTION and a grandtotal to all the SECTIONS. When I use the PL/SQL group filter, it sums only the X top records, instead of ALL records like you said. Any idea ?
Thanks in advance,
Rodrigo.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Andrew Tselischev ([email protected]):
Hi
As far as I understand you use group filter in data model.
I recommend use of group filter in Layout Model. I.e. for appopriate Repeating Frame:
1. Set the 'Filter Type' property to 'PL/SQL'.
2. Remove code from your group filter in data model to 'PL/SQL Filter' of Repeating Frame.
After that you will have X first records in each group and a subtotal for ALL records in that group. Now you need the subtotals for the first X records. This may be done, for example, by the following way:
1. Create the formula field <new_value> in main group:
BEGIN
IF <true_filter_condition> THEN
RETURN <your_value>;
ELSE
RETURN 0;
END IF;
END;
2. Create desired summary field on basis of <new_value>.
I hope it will help you.
Andrew<HR></BLOCKQUOTE>
null -
Crm tables for sales group and sales office
Hello CRM Experts,
Can any one plz. help me to find Tables for Sales Group and Sales office.
It will be really helpful if the above fields have relation to the Business Partner.
Thanks in Advance,
Regards,
Bharat.Hi Radek,
I feel the table which you have given is the right table but in my scenario we have created sales office and sales group(in org structure) independently in CRM, so now we need to find these values from the table independently as well as with relation to BP the table which you have provided can be used for second scenario but if we want to fetch the values of all sales office and sales group which table i have to use.
One more problem for second scenario is in BP we cant able to see the sales ofice & group values which we defined in CRM, if we can save BP with sales office and group values then only we can use the table which you have given
Highly appreciable for your replies.
Thanks,
Bharat.
Maybe you are looking for
-
I can hear a childrens show playing whenever I go online, how to stop this please.
My grandchildren go to pbs.org and and play games and watch videos on my computer. Now one of the shows keeps playing in the background whenever I go online. I have no idea how to delete it from the system. FIrefox is the only browser I have this iss
-
We are receiving the below error on the screen: Cannot display view CRM_BT_TRANSINB/ResultView of UI Component CRM_BT_TRANSINB An exception has occurred Exception Class CX_BSP_DLC_CONFIG_GENERAL_ERR - Error creating configuration model Method: CL_
-
Import java class from model package
I have a java class in model package.I create a managed bean in the view package and I want to import the first java class with "import model.class1" but this error "import model.class1 not found" is shown.What should I do?
-
Accessing Object Clusters From non-web applications
Say I have a three-tiered WebLogic cluster (web proxy, servlet, EJB). I have an application that wants to access the EJBs directly from the object cluster via RMI or Corba. If I'm correct, the only load balanci
-
BB playbook Bridge message app won't open.
I updated my OS today and after that the BB Playbook Bridge message app, when trying to open, just blinks like constant rápid reloading and does not open even after restarting the playbook. Other bb Bridge apps work fine. How to fix this?