Classifications - Part 3 - get all objects assigned to class
i_class type klah-class -> class number
i_classtype type klah-klart -> class type
i_key_date type sy-datum default sy-datum -> key date for classification
value( et_objects ) type standard table of clobjekte -> table of objects assigned to class
et_data type ref to data -> table with characteristics data for all objects assigned to class
e_tablestr type ref to cl_abap_tabledescr -> table type structure
e_structure type ref to cl_abap_structdescr -> structure
fetch_values_error
structure_error
Classifications - Part 2 - Get Object Details
i_object type bapi1003_key-object -> key of object to be classified
i_class type klah-class -> class number
i_classtype type klah-klart -> class type
i_objecttable type bapi1003_key-objecttable optional -> name of database table for object
i_key_date type sy-datum default sy-datum -> key date for classification
i_structure type ref to cl_abap_structdescr optional -> structure
et_objvaluesnum type tt_bapi1003_alloc_values_num -> table with num characteristics
et_objvalueschar type tt_bapi1003_alloc_values_char -> table with char characteristics
et_objvaluescurr type tt_bapi1003_alloc_values_curr -> table with curr characteristics
e_data type ref to data -> filled structure for object with all characteristics
fetch_values_error -> error while trying to receive object characteristics value
structure_error -> structure has wrong fields
Classifications - Part 1 - prepare structure for class data
i_classtype klah-class-> class number
i_classtypetype klah-klart ->class type
i_key_datetype sy-datum default sy-datum-> key date for class
e_structuretype ref to cl_abap_structdescr-> structure for our class
et_datatype ref to data -> table created on a base of class structure
e_tabletype ref to cl_abap_tabledescr-> table type for our class
class_classtype_fetch_error
error_creating_table
characteristics_error
Create XLSX/MHTML file from internal table in background
So what am I doing here.... firstly I check if the fieldcatalog was passed. If not then I create it on a base of internal table with usage of cl_salv_table and cl_salv_controller_metadata=>get_lvc_fieldcatalog. After I finally have the fieldcatalog I create result table with sort and filter criteria if they were passed. To do that I use class cl_salv_ex_util. At the end result table is transformed to xstring with method cl_salv_bs_tt_util=>if_salv_bs_tt_util~transform. So you're receiving at the end of the method an xstring file so you can do what you want with it, for example send via mail to the user, or save it on local PC (like in the example found at the end). The most important is that you can use this method in a background so you can prepare some jobs for your programs and send results of them to the users!
it_fieldcat type lvc_t_fcat optional -> field catalog for list viewer control
it_sort type lvc_t_sort optional -> alv control: table of sort criteria
it_filt type lvc_t_filt optional -> alv control: table of filter conditions
is_layout type lvc_s_layo optional -> alv control: layout structure
i_xlsx type flag optional -> create xlsx file?
Create a nice looking chart with CL_GUI_CHART_ENGINE - Part 3 - Chart Data and render
In the method provided bellow I firstly create custom container object (cl_gui_custom_container) to place the chart in it, then I create chart engine (cl_gui_chart_engine), then using if_xml I create an xml data container which in fact can be written using simple concatenate statement but it's not nice to change and easy to mess.
So after we receive an xml with data then I will pass it to chart engine, then I will run the method prepared in previous part (Create a nice looking chart with CL_GUI_CHART_ENGINE - Part 2 - Customization ) to read the customization of the chart and I will pass it also to engine. Finally I will render the chart.
Create a nice looking chart with CL_GUI_CHART_ENGINE - Part 2 - Customization

Create a nice looking chart with CL_GUI_CHART_ENGINE - Part 1 - Chart Designer
So first of all we need to download chart designer from SDN so you can google "sap chart designer" to get it. After you'll have it just run one of the versions available there (640 or 700) depending on your GUI version. All files which you'll find in the package are shown below, XML Format.pdf file will tell you how to prepare chart data depending on chart type.
Load variant to single subscreen (selection screen)
i_dynnr type sy-dynnr -> subscreen number
Subtotal lines of ALV GRID OO as content separator
1st) Add empty line after each part you want to separate and color it differently;
Adding empty lines will force you to delete all of them each time you'll do changes inside table displayed in grid and you'll have to do the calculation of position again, that's why today I will show you the second option.