2014 Jan 17 11:35 AM
Hi all,
this is naresh.
i have displayed my table of data in ALV using set_table_for_first_display method.
but i could not add any header to that.
does reuse_commentary_write works in OOPs ALV?
in which parameter we need to pass it.
please share it.
thanks,
naresh.
Hi,
Please go this
Class Name | Parent Class | Method | Description |
|---|---|---|---|
CL_SALV_TABLE | FACTORY | To Create the Instance of ALV Table Object | |
CL_SALV_TABLE | CL_SALV_MODEL_LIST | GET_LAYOUT | Layout Object with Current Settings |
CL_SALV_TABLE | GET_FUNCTIONS | Returns Object to Define the functions of the ALV Table | |
CL_SALV_TABLE | CL_SALV_MODEL_LIST | GET_DISPLAY_SETTINGS | Returns Global Settings for ALV Display |
CL_SALV_TABLE | GET_AGGREGATIONS | Return Object to Edit Aggregation Functions Settings | |
CL_SALV_TABLE | GET_SORTS | Return Object to Set all Sort Information | |
CL_SALV_TABLE | GET_SELECTIONS | Return Object to do Settings for Selection pattern for Row(s) and Column(s) | |
CL_SALV_TABLE | CL_SALV_MODEL_BASE | SET_TOP_OF_LIST | Set the Contents in Top of List in ALV Display |
CL_SALV_TABLE | GET_EVENT | Return the Object to manage existing events | |
CL_SALV_TABLE | GET_COLUMNS | Return individual column objects of Output table | |
CL_SALV_LAYOUT | SET_KEY | Set Layout Key for Layouts in Report | |
CL_SALV_LAYOUT | GET_LAYOUTS | Returns all layouts defined for the report | |
CL_SALV_LAYOUT | F4_LAYOUTS | F4 Help to Display Existing Layouts of the Report | |
CL_SALV_LAYOUT | SET_SAVE_RESTRICTION | Restriction Methods while saving the Layout | |
CL_SALV_LAYOUT | SET_DEFAULT | Activate the Default Layout | |
CL_SALV_LAYOUT | SET_INITIAL_LAYOUT | Set specific Layout as Initial layout while starting ALV Display | |
CL_SALV_FUNCTIONS_LIST | CL_SALV_FUNCTIONS | SET_ALL | Activate all Internal Functions of ALV |
CL_SALV_DISPLAY_SETTINGS | SET_STRIPPED_PATTERN | Set ALV Display in Stripped Pattern | |
CL_SALV_DISPLAY_SETTINGS | SET_LIST_HEADER | Set Title of the ALV Display | |
CL_SALV_SORTS | ADD_SORT | Define Sort for a Specific Column | |
CL_SALV_SELECTIONS | SET_SELECTION_MODE | Set the Selection Methods | |
CL_SALV_AGGREGATIONS | ADD_AGGREGATION | Add Aggregation function of a Table column | |
CL_SALV_FORM_LAYOUT_GRID | CREATE_HEADER_INFORMATION | Create Header Information in the Cell | |
CL_SALV_FORM_LAYOUT_GRID | CL_SALV_FORM_UIE_LAYOUT_GRID | ADD_ROW | Add New row in the Grid |
CL_SALV_FORM_LAYOUT_GRID | CREATE_LABEL | Create Label in Grid Cell | |
CL_SALV_FORM_LAYOUT_GRID | CREATE_TEXT | Create Text in Grid Cell | |
CL_SALV_FORM_LABEL | CL_SALV_FORM_UIE_TEXT_VIEW | SET_TEXT | Assign Text to the Label in Grid Cell |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | GET | Get the list of Columns of output table |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | SET_OPTIMIZE | Optimize the width of columns |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | SET_KEY_FIXATION | Fix the Key columns while Vertical Scrolling |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS_LIST | SET_COLOR_COLUMN | Assign colors to the columns in output table |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | GET_COLUMN | Get Properties of Single Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | GET_DDIC_DATATYPE | Get data type of Selected column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | SET_TECHNICAL | Set column as Technical (Invisible) |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | GET_DDIC_INITTYPE | Returns Internal ABAP Data Type |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | GET_DDIC_DOMAIN | Get the Domain Name of Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN_LIST | SET_CELL_TYPE | Set Cell type of Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN_LIST | SET_COLOR | Set the color of Single Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN_LIST | SET_KEY | Set the column as Key column |
|
2014 Jan 17 11:59 AM
Hi naresh,
You could not create header with the help of reuse_alv_commentary_write as because it is a function module . and you r doing the different approach by calling method.... Set_table_for_first_display
Alv header will be achieved by using splitter container please google it U will find ready code....
2014 Jan 17 12:02 PM
Top of Page in ALV(OOPS) - Code Gallery - SCN Wiki
Pls go through this link..........
2014 Jan 17 12:02 PM
Hi Soumik,
can u provide code?
because i know only core abap not OO Abap.
thanks,
naresh.
2014 Jan 17 12:31 PM
Hi Naresh,
CALL METHOD cl_gui_alv_grid->set_table_for_first_display
EXPORTING
is_layout =
CHANGING
it_outtab =
* it_fieldcatalog =
* it_sort =
* it_filter =
* EXCEPTIONS
* invalid_parameter_combination = 1
* program_error = 2
* too_many_lines = 3
* others = 4
.
Fill the field GRID_TITLE in the ALV Layout Structure - LVC_S_LAYO.
Note: Search forum before posting or moderators may remove repeated queries.
With Regards,
Giriesh M
2014 Jan 17 12:31 PM
Hi,
Please go this
Class Name | Parent Class | Method | Description |
|---|---|---|---|
CL_SALV_TABLE | FACTORY | To Create the Instance of ALV Table Object | |
CL_SALV_TABLE | CL_SALV_MODEL_LIST | GET_LAYOUT | Layout Object with Current Settings |
CL_SALV_TABLE | GET_FUNCTIONS | Returns Object to Define the functions of the ALV Table | |
CL_SALV_TABLE | CL_SALV_MODEL_LIST | GET_DISPLAY_SETTINGS | Returns Global Settings for ALV Display |
CL_SALV_TABLE | GET_AGGREGATIONS | Return Object to Edit Aggregation Functions Settings | |
CL_SALV_TABLE | GET_SORTS | Return Object to Set all Sort Information | |
CL_SALV_TABLE | GET_SELECTIONS | Return Object to do Settings for Selection pattern for Row(s) and Column(s) | |
CL_SALV_TABLE | CL_SALV_MODEL_BASE | SET_TOP_OF_LIST | Set the Contents in Top of List in ALV Display |
CL_SALV_TABLE | GET_EVENT | Return the Object to manage existing events | |
CL_SALV_TABLE | GET_COLUMNS | Return individual column objects of Output table | |
CL_SALV_LAYOUT | SET_KEY | Set Layout Key for Layouts in Report | |
CL_SALV_LAYOUT | GET_LAYOUTS | Returns all layouts defined for the report | |
CL_SALV_LAYOUT | F4_LAYOUTS | F4 Help to Display Existing Layouts of the Report | |
CL_SALV_LAYOUT | SET_SAVE_RESTRICTION | Restriction Methods while saving the Layout | |
CL_SALV_LAYOUT | SET_DEFAULT | Activate the Default Layout | |
CL_SALV_LAYOUT | SET_INITIAL_LAYOUT | Set specific Layout as Initial layout while starting ALV Display | |
CL_SALV_FUNCTIONS_LIST | CL_SALV_FUNCTIONS | SET_ALL | Activate all Internal Functions of ALV |
CL_SALV_DISPLAY_SETTINGS | SET_STRIPPED_PATTERN | Set ALV Display in Stripped Pattern | |
CL_SALV_DISPLAY_SETTINGS | SET_LIST_HEADER | Set Title of the ALV Display | |
CL_SALV_SORTS | ADD_SORT | Define Sort for a Specific Column | |
CL_SALV_SELECTIONS | SET_SELECTION_MODE | Set the Selection Methods | |
CL_SALV_AGGREGATIONS | ADD_AGGREGATION | Add Aggregation function of a Table column | |
CL_SALV_FORM_LAYOUT_GRID | CREATE_HEADER_INFORMATION | Create Header Information in the Cell | |
CL_SALV_FORM_LAYOUT_GRID | CL_SALV_FORM_UIE_LAYOUT_GRID | ADD_ROW | Add New row in the Grid |
CL_SALV_FORM_LAYOUT_GRID | CREATE_LABEL | Create Label in Grid Cell | |
CL_SALV_FORM_LAYOUT_GRID | CREATE_TEXT | Create Text in Grid Cell | |
CL_SALV_FORM_LABEL | CL_SALV_FORM_UIE_TEXT_VIEW | SET_TEXT | Assign Text to the Label in Grid Cell |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | GET | Get the list of Columns of output table |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | SET_OPTIMIZE | Optimize the width of columns |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | SET_KEY_FIXATION | Fix the Key columns while Vertical Scrolling |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS_LIST | SET_COLOR_COLUMN | Assign colors to the columns in output table |
CL_SALV_COLUMNS_TABLE | CL_SALV_COLUMNS | GET_COLUMN | Get Properties of Single Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | GET_DDIC_DATATYPE | Get data type of Selected column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | SET_TECHNICAL | Set column as Technical (Invisible) |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | GET_DDIC_INITTYPE | Returns Internal ABAP Data Type |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN | GET_DDIC_DOMAIN | Get the Domain Name of Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN_LIST | SET_CELL_TYPE | Set Cell type of Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN_LIST | SET_COLOR | Set the color of Single Column |
CL_SALV_COLUMN_TABLE | CL_SALV_COLUMN_LIST | SET_KEY | Set the column as Key column |
|
2022 Oct 21 10:33 AM
2024 Aug 20 8:09 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |