2009 Jan 21 3:40 AM
Hi,
I have developed a report which displays bar graph as the output. It is working fine.
But when I include the same code in the interactive report , just an empty container is being displayed.
Can any one help regarding this issue.
Thanks and Regards,
Indira
Hi,
I have developed a report which displays bar graph as the output. It is working fine.
But when I include the same code in the interactive report , just an empty container is being displayed.
Can any one help regarding this issue.
Thanks and Regards,
Indira
2009 Jan 21 3:42 AM
Some mistake you are doing. Are you using any class(CLIGS) for displaying the graph.
2009 Jan 21 3:43 AM
Hi,
I have used the function module gfw_pres_show.
Here is a part of my coding.
FORM user_command TABLES pt_nodes STRUCTURE seucomm
USING pv_command TYPE c
CHANGING pv_exit TYPE c
pv_list_refresh TYPE c.
CASE pv_command.
expand list
IF pt_nodes-selfield = 'PLUS'.
CALL FUNCTION 'RS_TREE_EXPAND'
EXPORTING
node_id = pt_nodes-id.
compress list
ELSEIF pt_nodes-selfield = 'MINUS'.
CALL FUNCTION 'RS_TREE_COMPRESS'
EXPORTING
node_id = pt_nodes-id.
ENDIF.
WHEN 'ESTIMATION'.
write
WHEN 'GRAPH'.
CALL SCREEN 100.
ENDCASE.
ENDFORM. "USER_COMMAND
Edited by: Parvatha Reddy Indira Priyadarshini on Jan 21, 2009 4:44 AM
2009 Jan 21 3:47 AM
what is there in screen 100...? i mean what are you doing in 100 screen.
2009 Jan 21 3:49 AM
Hi,
I have a container in the 100 screen . The graph has to be displayed in this container.
In my report output an empty container is being displayed.
I haved checked it by debugging. All the values are passing correctly but the graph is not displaying
2009 Jan 21 3:53 AM
you might be using some wrong container name. in that case you will get empty container. check it once in screen 100, for the custom control name.
Edited by: Vijay Babu Dudla on Jan 20, 2009 10:53 PM
2009 Jan 21 3:54 AM
2009 Jan 21 3:55 AM
2009 Jan 21 3:59 AM
Hi,
This is my pbo code.
MODULE pbo_0100 OUTPUT.
SET PF-STATUS '100'.
IF first_call IS INITIAL.
display graphic
REFRESH values.
REFRESH column_texts.
LOOP AT t_final_output INTO w_final_output.
IF w_final_output-category = 'STANDARDOBJECTS'.
values-rowtxt = co_gfw_prog_sobj.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'TABL'.
values-rowtxt = co_gfw_prog_tables.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'STRU'.
values-rowtxt = co_gfw_prog_structures.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'DTEL'.
values-rowtxt = co_gfw_prog_dataelements.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'DOMA'.
values-rowtxt = co_gfw_prog_domains.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'VIEW'.
values-rowtxt = co_gfw_prog_views.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'SHLD'.
values-rowtxt = co_gfw_prog_helps.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'ENQU'.
values-rowtxt = co_gfw_prog_lockobjects.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'TTYD'.
values-rowtxt = co_gfw_prog_tabletypes.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'TYPD'.
values-rowtxt = co_gfw_prog_typegroups.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'AQQU'.
values-rowtxt = co_gfw_prog_abapquery.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'VARI'.
values-rowtxt = co_gfw_prog_variants.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'AREA'.
values-rowtxt = co_gfw_prog_areamenu.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'MSCL'.
values-rowtxt = co_gfw_prog_messageclasses.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'INCL'.
values-rowtxt = co_gfw_prog_includes.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'MODU'.
values-rowtxt = co_gfw_prog_modulepool.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'SUBP'.
values-rowtxt = co_gfw_prog_subroutine.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'USEX'.
values-rowtxt = co_gfw_prog_userexit.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'BADI'.
values-rowtxt = co_gfw_prog_badis.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'WFLO'.
values-rowtxt = co_gfw_prog_workflow.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'LSMW'.
values-rowtxt = co_gfw_prog_lsmw.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'BDCP'.
values-rowtxt = co_gfw_prog_bdc.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'SFRP'.
values-rowtxt = co_gfw_prog_smartform.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'SCRP'.
values-rowtxt = co_gfw_prog_scripts.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'OTHR'.
values-rowtxt = co_gfw_prog_other.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'FUNC'.
values-rowtxt = co_gfw_prog_functionmodules.
values-val1 = w_final_output-tot_obj.
APPEND values.
ELSEIF w_final_output-category = 'CLAS'.
values-rowtxt = co_gfw_prog_classes.
values-val1 = w_final_output-tot_obj.
APPEND values.
ENDIF.
CLEAR values.
ENDLOOP.
column_texts-coltxt = co_gfw_prog_sap.
APPEND column_texts.
IF r1 = 'X'.
CALL FUNCTION 'GFW_PRES_SHOW'
EXPORTING
container = 'CONTAINER'
PRESENTATION_TYPE = GFW_PRESTYPE_LINES
presentation_type = gfw_prestype_pie_chart
orientation = gfw_orient_columns
TABLES
values = values
column_texts = column_texts
EXCEPTIONS
error_occurred = 1
OTHERS = 2.
IF sy-subrc <> 0.
LEAVE PROGRAM.
ENDIF.
ELSEIF r2 = 'X'.
CALL FUNCTION 'GFW_PRES_SHOW'
EXPORTING
container = 'CONTAINER'
PRESENTATION_TYPE = GFW_PRESTYPE_LINES
presentation_type = gfw_prestype_vertical_bars
orientation = gfw_orient_columns
TABLES
values = values
column_texts = column_texts
EXCEPTIONS
error_occurred = 1
OTHERS = 2.
IF sy-subrc <> 0.
LEAVE PROGRAM.
ENDIF.
ENDIF.
first_call = 1.
ENDIF.
PERFORM auto_test_pbo USING 'EXIT'.
ENDMODULE. " PBO_0100 OUTPUT
2009 Jan 21 4:04 AM
use parent
create the parent object(CL_GUI_CONTAINER) based on the Custom control , then pass it to parent.
CALL FUNCTION 'GFW_PRES_SHOW'
EXPORTING
container = 'CONTAINER'
PRESENTATION_TYPE = GFW_PRESTYPE_LINES
presentation_type = gfw_prestype_vertical_bars
orientation = gfw_orient_columns
PARENT = g_container "<------Pass here
TABLES
values = values
column_texts = column_texts
EXCEPTIONS
error_occurred = 1
OTHERS = 2.
2009 Jan 21 4:18 AM
Hi,
I have tried using the below code. But still no output
create object custom_container exporting
container_name = 'CONTAINER'.
create object gp_inst.
call method gp_inst->if_graphic_proxy~init
exporting parent = custom_container
dc = dc_inst
prod_id = cl_gui_gp_pres=>co_prod_chart
force_prod = gfw_true
importing retval = retval.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |