11-27-2013 7:54 AM
Is there any online tutorial on how to display the data in DDIC in ALV ?
11-27-2013 7:55 AM
11-27-2013 7:59 AM
I have DDIC structure that are filled from internal table. how to show (pass) the structure data into the SALV ?
11-27-2013 8:01 AM
Hi Adham,
sorry i am not clear with your question, but i can give u a suggestion.
You can try to search it at "sap*technical.com" (without " and *)
sorry if thats not too help you. But i wil ltry to help you more
11-27-2013 8:02 AM
That depends, what did you use to display ALV ? Oo / FM ? what kind of class, function ...
if you need simple example, have a look to the transaction DWDM
11-27-2013 8:18 AM
Hi Adham Enaya
Simple try like this
REPORT yram_SALV.
DATA: it_sflight TYPE TABLE OF sflight.
DATA: gr_table TYPE REF TO cl_salv_table.
DATA: gr_functions TYPE REF TO cl_salv_functions.
START-OF-SELECTION.
SELECT * INTO TABLE it_sflight FROM sflight up to 10 rows.
cl_salv_table=>factory( IMPORTING r_salv_table = gr_table CHANGING t_table = it_sflight ).
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
gr_table->display( ).
11-27-2013 8:01 AM
Hi Adham,
Try SE38 -> SALV_DEMO* in your system.
You should have around 40 demo programs that show how to use SALV class to display data.
Kind regards,
Bruno
12-06-2013 7:32 AM
Hi,
Use CL_SALV_TABLE and forget about all your issues - no field catalog definition, no macros. Search for the excellent blogs of Rich Heilman or other sources on ALV object model.
For dynamic internal tables, search for RTTS.
Note: You never need a TABLES statement. You need no BOX_FIELDNAME and field for this if you use CL_SALV_TABLE and set selection mode (ROW_COLUMN or CELL) and you have what you need.
Regards,
Chintan