Hi ,
I am trying to display won and expected opportunites in the bar chart in target to date ppm. However I am unable to get any values in the bar chart.
I am not getting any values for the context node ttdquarter in the component ppm_charts.
I have used the following code in do_prepare_output.
IF NOT graph_def_xml IS BOUND.
CREATE OBJECT graph_def_xml
EXPORTING
ir_ttd_data_node = me->typed_context->ttdquarter
ir_scale = me->scale.
ENDIF.
..........
TRY.
*Use Dynamic query to get Opportunities
CALL METHOD cl_crm_bol_dquery_service=>get_instance
EXPORTING
iv_query_name = 'BTQOpp'
RECEIVING
rv_result = lr_qs.
CATCH cx_crm_unsupported_object.
ENDTRY.
IF lr_qs IS BOUND.
*Add status open
CALL METHOD lr_qs->add_selection_param
EXPORTING
iv_attr_name = 'STATUS_COMMON'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = 'M0001CRMOPPCP'
iv_high = ''.
......
IF lt_quarter IS NOT INITIAL.
*Get data from WRAPPER
me->ztyped_context->zttdquarter ?= me->ztyped_context->ttdquarter.
lr_ttdquarter = me->ztyped_context->zttdquarter->collection_wrapper.
lr_collection = lr_ttdquarter->get_copy( ).
IF lr_collection IS BOUND.
lr_entity2 ?= lr_collection->get_first( ).
Can anyone please help.
Regards
Geeth